LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 10-12-2017, 09:05 AM   #1
scheidel21
Senior Member
 
Registered: Feb 2003
Location: CT
Distribution: Debian 6+, CentOS 5+
Posts: 1,323

Rep: Reputation: 100Reputation: 100
Question Can't boot CentOS 7 Virtual Machine Dracut timeout, can't detect all drives


I was given a VMDK file with a CentOS 7 image on it for a pre-configured appliance. We do not run a VMWare shop but run Hyper-V, so I converted the VMDK to a VHDX and created a Hyper-V virtual machine attaching this VHDX virtual hard drive to it.

Upon boot the startup bar progressed until it was full and the system just sat there. pressing escape I was able to see that I was getting dracut timeouts, and finally a cannot boot message. I am able to boot into rescue mode. In rescue mode I modified the grub boot menu and disabled rhgb quiet, I basically received the same things after this except that I didn't get the loading bar splash screen. After some research I booted a live distro, mounted the drive and ran xfs_repair against the drive partition (it's xfs file format). I also verified the UUID matches what's being passed to dracut and I tried regenerating an initramfs using dracut in rescue mode.

I finally turned on rd.shell and was dropped into the emergency dracut shell shell after the timeouts. I found that there is no /dev/disk/by-uuid directory in the dracut shell, and when I exit the shell I get a warning that not all disks have been found, and that I might want to regenerate my initramfs. So I did just that, this time also making sure that the UUID's for both partitions were in the fstab file (the swap partition was not originally).

I am assuming the timeouts are dracut trying to find the disks, but I am not 100% positive.

Does anyone have any ideas how I can get this booted?
 
Old 10-12-2017, 11:02 AM   #2
scheidel21
Senior Member
 
Registered: Feb 2003
Location: CT
Distribution: Debian 6+, CentOS 5+
Posts: 1,323

Original Poster
Rep: Reputation: 100Reputation: 100
Found that the boot was detecting Hyper-V disks and ignoring them, and wasn't seeing them in the initramfs. After a little more research I saw someone said this issue was resolved in newer kernels 3.12 and up, I was on 3.10 upgraded to a newer mainline kernel and rebooted and it works wonderfully now.
 
  


Reply

Tags
disks not found, dracut initramfs, timeout



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
warning dracut-initqueue timeout - starting timout scripts Harshit_24 Linux - Newbie 1 04-06-2017 12:58 PM
LXer: How to add new drives to a VirtualBox virtual machine LXer Syndicated Linux News 0 10-27-2016 01:01 PM
cannot detect additional virtual disk on centos pedenski Linux - Newbie 1 05-22-2013 03:21 PM
[SOLVED] Samba on Centos 6 - browsing from XP Pro machine sometimes failes - semaphore timeout rylan76 Linux - Networking 1 11-05-2012 12:21 AM
Sharing drives on virtual machine casaba Linux - Networking 4 08-18-2008 11:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

All times are GMT -5. The time now is 07:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration