Kernel Panic on Quick Register
-
@george1421 Yep, that’s exactly what @Zaarin noticed in his first post. Looks like a fat finger kind of thing that we all do every once in a while.
-
@Bob-Henderson Understand this is not an official comment, but if you are at a road block until the devs can resolve this issue, I have a way to hack around it.
You need to have access to the linux console and edit the following file.
/var/www/html/fog/lib/fog/bootmenu.class.php
Search for
rootfstype
There should be two in that file. The first one is what we need to edit.It should look something like this
$this->kernel = sprintf('kernel %s %s initrd=%s root=/dev/ram0 rw ramdisk_size=%s keymap=%s web=%s consoleblank=0%s rootfstype=ext4%s%s',
Just insert a space between ext4%s%s making it look like this
$this->kernel = sprintf('kernel %s %s initrd=%s root=/dev/ram0 rw ramdisk_size=%s keymap=%s web=%s consoleblank=0%s rootfstype=ext4 %s%s',
Save the file and you should now be able to boot into the FOS kernel. Of course we should wait for an official fix, but this will get you going.
-
@george1421 Confirmed, that works. Gotta love spaces!
-
This post is deleted! -
Pushed into current to have a space.
-
I ran into this same issue, just updated trunk to git 8022 (latest) and got the same kernel panic. I manually changed the file and was able to run though the host registration, but no host was registered at the server.
-
Version @ 8030 and I too receive the kernel panic when selecting from the pxe menu, deploy tasks set from the web work
-
Trunk version 8030 not solving the problem.
-
Version @ 8034 appears to be working fine now, thanks
-
8036 as well. Thank for your work. Topic can be closed.
Zaza.
-
@george1421 said in Kernel Panic on Quick Register:
@Bob-Henderson Understand this is not an official comment, but if you are at a road block until the devs can resolve this issue, I have a way to hack around it.
You need to have access to the linux console and edit the following file.
/var/www/html/fog/lib/fog/bootmenu.class.php
Search for
rootfstype
There should be two in that file. The first one is what we need to edit.It should look something like this
$this->kernel = sprintf('kernel %s %s initrd=%s root=/dev/ram0 rw ramdisk_size=%s keymap=%s web=%s consoleblank=0%s rootfstype=ext4%s%s',
Just insert a space between ext4%s%s making it look like this
$this->kernel = sprintf('kernel %s %s initrd=%s root=/dev/ram0 rw ramdisk_size=%s keymap=%s web=%s consoleblank=0%s rootfstype=ext4 %s%s',
Save the file and you should now be able to boot into the FOS kernel. Of course we should wait for an official fix, but this will get you going.
Hello new to linux here, trying to get fog up and running in my Windows environment I have came across the Kernel Panic issue after installing a newer kernel to try to get my HP 600 G2’s to register. I tried to follow this solution however when i look at the BootMenu.class.php with vi and search for rootfstype nothing comes up so I’m at a big stand still here. Any help would be much appreciated.
-
@tkindle83 Please try updating to rc-1.
-
@Tom-Elliott Thanks Tom how do I go about this? I’m very very new to Linux.
-
https://wiki.fogproject.org/wiki/index.php?title=Upgrade_to_trunk
Follow the guide for the git method, dev-branch IS currently RC-1 on it.