Centos 7 VM hangs during boot

Issues related to applications and software problems
Posts: 2
Joined: 2018/01/05 19:39:20

Centos 7 VM hangs during boot

Postby misterguitar » 2018/01/05 20:00:06

I am running a centos 7 VM in KVM/Qemu on Fedora 27 Server.

The VM will boot. I can boot to the rescue kernel. If I try to boot the normal kernel I see a series of messages saying

dracut-initqueue[271]: Waning: dracut-initqueue timeout - starting timeout scripts

I see this over and over for a while then it hits

[OK] Started dracut initqueue hook.
[OK] Reached target Remote File Systems (Pre).
[OK] Reached target Remote File Systems.

But then it hangs
[* ] A start job is running for dev-map...device (1h 26min 28s / no limit)

I've tried everything I know after googling and checking logs and such and at a point I have to kind of throw my hands in the air? I'm not incredibly knowledgeable at debugging the centos boot process. I suspect it has something to do with storage. Which is odd because ist incredibly simple. Its just a standard KVM VM with a standard virtio disk. Which is stored on the KVM server as a qcow file.

Curious if anybody has any ideas on where to begin?

Posts: 2
Joined: 2018/01/05 19:39:20

Re: Centos 7 VM hangs during boot

Postby misterguitar » 2018/01/11 19:27:47

No ideas eh? Any words of advice for just basic boot up troubleshooting?

User avatar
Forum Moderator
Posts: 22056
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Centos 7 VM hangs during boot

Postby TrevorH » 2018/01/11 20:39:20

Boot with the rescue kernel and rebuild the initramfs for the latest installed kernel. Run rpm -q kernel to see the list of installed ones then use the latest one that's installed and then run dracut -f /boot/initramfs-3.10.0-693.11.6.el7.x86_64 3.10.0-693.11.6.el7.x86_64 using the version string from the latest kernel package that's installed. If it's easier you can ls /lib/modules and use th directory name from there as the version to the dracut command.
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke