Error $this->_kernel = sprintf ?
-
@Tom-Elliott Thank you for your response. I have to perform what the next for fixing that error?
I will edit /var/www/fog/lib/fog/bootmenu.class.php file as following
$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’, ? -
@Tom-Elliott Hi Tom,
In attachment file0_1487750195376_boot.php , what is it wrong?
-
I don’t know. I haven’t a clue what you’re asking. There doesn’t appear to be any information as to what it is you’re looking for. WHAT is wrong? Was there an error somewhere, (please provide the appropriate error log).
-
@Tom-Elliott FWIW: This is the second post I saw with a kernel syn error on RC10. Let me see if I can find the other link.
Crosslink: https://forums.fogproject.org/topic/9581/kernel-panic-in-centos-7
-
@george1421 https://forums.fogproject.org/topic/9581/kernel-panic-in-centos-7 It’s the same person.
-
@george1421 I am sorry I thought that they are 2 error is different.
-
@todachuy2406 Which PXE file do you use? undionly.kpxe, ipxe.kpxe, ipxe.efi or even pxelinux.0???
-
i’d guess that during the upgrade the download for the kernel or the init got corrupted. easiest fix? run the installer again and it will re-download them.
-
@Sebastian-Roth Hi Sebastian, I am using default Fog configuration, I don’t know which files does it load? I guess that is pxelinux.0.
-
@todachuy2406 said in Error $this->_kernel = sprintf ?:
I guess that is pxelinux.0.
Please confirm this. Because if it is pxelinux.0, the kernel will have an error syncing and connecting to the inits (virtual hard drive). pxelinux.0 should never be used with the current version of fog.
-
@Junkhacker Thanks Junkhacker, I installed fresh FOG on new server with version 1.3.5-RC-10.
-
@todachuy2406 so, is the problem solved?
-
@george1421 Hi george1421, Could you guide me how find out which process is using a configuration file?
-
@george1421 Hi george1421, do I need to change below code?
$this->_kernel = sprintf(
'kernel %s %s initrd=%s root=/dev/ram0 rw ’
. ‘ramdisk_size=%s%sweb=%s consoleblank=0%s rootfstype=ext4%s%s’,Add more spaces in “web” and “%s%s”
$this->_kernel = sprintf(
'kernel %s %s initrd=%s root=/dev/ram0 rw ’
. ‘ramdisk_size=%s%s web=%s consoleblank=0%s rootfstype=ext4% s%s’, -
@Junkhacker I am still not find what way to solve this problems?
-
@Junkhacker, @george1421, @Tom-Elliott Thank you so much
@george1421 You are perfect, I edited DHCP configuration file from pxelinux.0 to undionly.kpxe. Then I added more spaces on below code as same here:
$this->_kernel = sprintf(
'kernel %s %s initrd=%s root=/dev/ram0 rw ’
. ‘ramdisk_size=%s%s web=%s consoleblank=0%s rootfstype=ext4% s%s’,It works for me!!
Many Thanks & Best Regards
-
@todachuy2406 The sprintf you keep referring two had nothing wrong with it.
It was simply your using pxelinux.0 that was causing the problem with the booting.