PXE boot crash

General support questions
Kenneth
Posts: 5
Joined: 2014/11/11 12:52:54

PXE boot crash

Post by Kenneth » 2014/11/11 13:02:46

Hi,

I have a Windows 2008 with WDS installed, and trying to install CentOS 7 from there.

When I select CentOS 7, it just hangs with loading vmlinuz.

Settings:
LABEL CentOS 7.0
MENU LABEL CentOS 7.0
KERNEL Images/CentOS_7.0_x64/vmlinuz
APPEND initrd=Images/CentOS_7.0_x64/initrd.img ksdevice=eth0 ip=dhcp

It never tries to load initrd.img, so first step is to get vmlinuz load. It does not show any error messages or anything.

Anyone with some ideas to try out?

I have been trying vmlinuz from RHEL7, and that makes it continue to initrd.img from CentOS 7. But when this loads, it stops with this warning:
Warning: /dev/root does not exist

CentOS 6 booting fine from this setup.

I have been going through a lot of the topics, but none of them were able to help me out.

aks
Posts: 3073
Joined: 2014/09/20 11:22:14

Re: PXE boot crash

Post by aks » 2014/11/11 17:25:44

So seemingly you boot (vmlinuz is started) but the initrd (to get the drivers etc. and to mount /) is not loaded? Yeah this kind of troubleshooting sucks (like a sucking thing on sucking day) as there's nothing to tell you what's going on.

Personally I'd take a packet dump from the PXE/TFTP server and/or hub out on the network path, then analyze with a good analyser (like Wireshark). Also logs on your TFTP server might help. Sorry I can't give more information (like type this magic command) as I'm not a windows person.

Kenneth
Posts: 5
Joined: 2014/11/11 12:52:54

Re: PXE boot crash

Post by Kenneth » 2014/11/12 08:57:23

Thanks for you answer.

I don't think it starts loading initrd, I think it stops before. It doesn't show me the loading initrd.img message.

I will try your suggestion with Wireshark.

Kenneth
Posts: 5
Joined: 2014/11/11 12:52:54

Re: PXE boot crash

Post by Kenneth » 2014/11/12 12:28:53

No luck with Wireshark. Seems to be downloading vmlinuz.

I have tried with vmlinuz from RHEL7, and this makes initrd.img from CentOS7 load. But it fails with there details:
dracut-initqueue[556]: Warning: Could not boot.
dracut-initqueue[556]: Warning: /dev/root does not exist

Any ideas?

User avatar
TrevorH
Site Admin
Posts: 33220
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: PXE boot crash

Post by TrevorH » 2014/11/12 16:37:44

This looks like https://bugs.centos.org/view.php?id=7341 where it seems the common factor in most case is the use of a Windows server as a tftp server.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

paulmuk
Posts: 3
Joined: 2014/11/18 22:09:46

Re: PXE boot crash

Post by paulmuk » 2014/11/18 22:20:45

I have a similar problem when trying to PXE install Centos 7 from a Linux TFTP server.

I've tried with and without a kickstart file, but each time the install fails at the dracut-initqueue step saying Could not boot, /dev/root does not exist.

I've downloaded the latest vmlinuz and initrd.img files to my TFTP server, and here are the relevant lines from my pxelinux.cfg/default file:

LABEL Centos-7.0-x86_64
MENU LABEL Install CentOS 7.0 x86_64
KERNEL images/centos/7.0/x86_64/vmlinuz
APPEND initrd=images/centos/7.0/x86_64/initrd.img ramdisk_size=100000 ksdevice=eth0 ip=dhcp url --url http://centos.serverspace.co.uk/centos/7/os/x86_64

It would appear that the vmlinuz and initrd files are loading fine, this failure occurs later in the boot process (I even get the Centos 7 progress bars if I switch terminals).

User avatar
TrevorH
Site Admin
Posts: 33220
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: PXE boot crash

Post by TrevorH » 2014/11/18 22:38:49

This is what I have that is working:

Code: Select all

LABEL CentOS 7 x86_64
        MENU LABEL CentOS 7.0 x86_64
        KERNEL images/centos/x86_64/7.0/vmlinuz
        APPEND initrd=images/centos/x86_64/7.0/initrd.img ramdisk_size=100000 ip=dhcp repo=http://192.168.1.7/mirrors/CentOS-7-x86_64/
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

aks
Posts: 3073
Joined: 2014/09/20 11:22:14

Re: PXE boot crash

Post by aks » 2014/11/19 18:08:10

Yeah maybe do as Trevor suggests and use a repo that's in your LAN and not out on the Internet, who knows what happens out there!

User avatar
TrevorH
Site Admin
Posts: 33220
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: PXE boot crash

Post by TrevorH » 2014/11/19 21:38:48

I'm also not entirely sure that url --url works with CentOS 7...
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Kenneth
Posts: 5
Joined: 2014/11/11 12:52:54

Re: PXE boot crash

Post by Kenneth » 2014/11/21 13:27:38

Thanks for all of your answers!

Have been trying what TrevorH suggests, and which works for him.

It seems like a local mirror makes me come a bit further. It takes a lot longer time, seems like it's loading something. But the cursor is just blinking. And then after some time (~5 minutes), I get error you can see in the attachment.
Attachments
Untitled.png
Untitled.png (61.68 KiB) Viewed 15269 times

Post Reply