CentOS LiveCD boot via PXE fails with kernel panic
Posted: 2012/06/15 07:07:50
Hello,
I'm new to the forum, started using CentOS as a RH clone.
As there are some booting restrictions in my company (boot from HD or network only) I decided to boot clients from PXE server, which is Centos 6.2 :) System I want to boot via pxe is centos livecd.
DHCPD is working (set for static in order not to mess with dhcp within company network), tftpd is working. Client is given the IP, then is downloads vmlinuz and initrd files and starts booting.
Booting fails on kernel panic:
[code]dracut Warning: No root device "block:/dev/ram0" found
dracut Warning: Boot has failed. To debug this issue add "rdshell" to the kernel command line.
dracut Warning: Signal caught!
dracut Warning: Boot has failed. To debug this issue add "rdshell" to the kernel command line.
Kernel panic - not syncing: Attempted to kill init![/code]
It's obvius that there is a problem with root device that is configured not correctly. My current /tftpboot/pxelinux.cfg/default entries for CentOS:
[code]LABEL CentOS-Live
MENU LABEL CentOS Live
KERNEL images/centos_live/vmlinuz0 rdshell
APPEND initrd=images/centos_live/initrd0.img boot=live fetch=tftp://10.154.40.213/images/centos_live/squashfs.img root=/dev/ram0 ramdisk_size=9466178 ip=dhcp[/code]
Note, as instructed in kernel panic message, I added rdshell to the KERNEL command. System booted into dracut prompt, from where I found out there is no /dev/ram0 device.
My questions:
1. I'm missing something (besides /dev/ram0) in PXE default config file, can somebody point me what is missing in order to boot centos livecd ?
2. I'm able to boot Clonezilla, but this goes without root parameter. How can I determine the most suitable root device on client
Thanks in advance for tips.
BR :)
b.
I'm new to the forum, started using CentOS as a RH clone.
As there are some booting restrictions in my company (boot from HD or network only) I decided to boot clients from PXE server, which is Centos 6.2 :) System I want to boot via pxe is centos livecd.
DHCPD is working (set for static in order not to mess with dhcp within company network), tftpd is working. Client is given the IP, then is downloads vmlinuz and initrd files and starts booting.
Booting fails on kernel panic:
[code]dracut Warning: No root device "block:/dev/ram0" found
dracut Warning: Boot has failed. To debug this issue add "rdshell" to the kernel command line.
dracut Warning: Signal caught!
dracut Warning: Boot has failed. To debug this issue add "rdshell" to the kernel command line.
Kernel panic - not syncing: Attempted to kill init![/code]
It's obvius that there is a problem with root device that is configured not correctly. My current /tftpboot/pxelinux.cfg/default entries for CentOS:
[code]LABEL CentOS-Live
MENU LABEL CentOS Live
KERNEL images/centos_live/vmlinuz0 rdshell
APPEND initrd=images/centos_live/initrd0.img boot=live fetch=tftp://10.154.40.213/images/centos_live/squashfs.img root=/dev/ram0 ramdisk_size=9466178 ip=dhcp[/code]
Note, as instructed in kernel panic message, I added rdshell to the KERNEL command. System booted into dracut prompt, from where I found out there is no /dev/ram0 device.
My questions:
1. I'm missing something (besides /dev/ram0) in PXE default config file, can somebody point me what is missing in order to boot centos livecd ?
2. I'm able to boot Clonezilla, but this goes without root parameter. How can I determine the most suitable root device on client
Thanks in advance for tips.
BR :)
b.