CentOS7 VM crashes on boot with "can't find UUID ......"
I just downloaded a CentOS7 VM and it crashes on boot with “can’t find disk UUID ...”
Don’t panic ! Your missing a device driver module.
Why does this happen?
The "why" is easy, when the initramfs is built a default dracut flag ( -H or --hostonly) is used that says "only include modules to boot this system, no extras", so the initramfs is tied to the system the install was done on and when we move the VM to a different hypervisor we break it. Our VM’s are built using a VMware hypervisor so this should only show up when using a different hypervisor, KVM and VirtualBox are the most common.
It must be stressed, NOTHING IS BROKEN, the hypervisors are just different.
How to load the required driver modules? There are a few approaches:
• mess with the disk configuration in the hypervisor until it works
• add a bunch of modules to the original build of the VM
• re-install the kernel
• update the kernel
• run dracut in rescue mode
We are good administrators, so let’s use the cleanest method, dracut.
1. Reset/reboot your VM and stop the boot countdown timer with the space bar
2. Record the latest DISTRIBUTION kernel version.
Do NOT use the development kernel that ends in .0 (BAD = 5.4.0)
Mine is “3.10.0-1062.9.1.el7.x86_64”
3. Select and boot from the “rescue” kernel.
4. Login and open a shell
5. run the following command with your kernel version.
$ sudo dracut - -force - -kver 3.10.0.1062.9.1.el7.x86_64
6. Should be all fixed, reboot.
Regards Lee
Comments
-
I suspect this problem can be made to disappear by modification of /etc/dracut.conf on the VM and rebuilding the initramfs for both stock kernel and custom kernel before uploading. I don't know the parameters to put in there at first glance, but if we figure it out we can upload and updated CentOS7 and be done with it
I don't have access to upload bandwidth for about a week but I can take care of it then if we figure it out. Thanks for the explanation....0
Categories
- All Categories
- 177 LFX Mentorship
- 177 LFX Mentorship: Linux Kernel
- 754 Linux Foundation IT Professional Programs
- 374 Cloud Engineer IT Professional Program
- 170 Advanced Cloud Engineer IT Professional Program
- 74 DevOps IT Professional Program - Discontinued
- 5 DevOps & GitOps IT Professional Program
- 100 Cloud Native Developer IT Professional Program
- 7.6K Training Courses & Learning Paths
- 2 AI & ML Training
- 1 Blockchain & Decentralized Identity Training
- 5 Cloud & Containers Training
- 1 Cybersecurity Training
- 2 DevOps & Site-Reliability Training
- 1 Linux Kernel Development Training
- 1 Networking Training
- 2 Open Source Best Practice Training
- 2 System Administration Training
- 1 System Engineering Training
- 1 Web & Application Development Training
- 794 Hardware
- 202 Drivers
- 68 I/O Devices
- 37 Monitors
- 95 Multimedia
- 173 Networking
- 91 Printers & Scanners
- 89 Storage
- 769 Linux Distributions
- 81 Debian
- 68 Fedora
- 22 Linux Mint
- 13 Mageia
- 24 openSUSE
- 150 Red Hat Enterprise
- 31 Slackware
- 13 SUSE Enterprise
- 356 Ubuntu
- 465 Linux System Administration
- 31 Cloud Computing
- 73 Command Line/Scripting
- Github systems admin projects
- 98 Linux Security
- 78 Network Management
- 101 System Management
- 46 Web Management
- 111 Mobile Computing
- 19 Android
- 77 Development
- 1.2K New to Linux
- 1K Getting Started with Linux
- 393 Off Topic
- 121 Introductions
- 182 Small Talk
- 29 Study Material
- 976 Programming and Development
- 310 Kernel Development
- 648 Software Development
- 990 Software
- 382 Applications
- 182 Command Line
- 5 Compiling/Installing
- 68 Games
- 317 Installation
- Archived
- 2 LFD140 Class Forum
- 1.4K LFS258 Class Forum
Upcoming Training
-
August 20, 2018
Kubernetes Administration (LFS458)
-
August 20, 2018
Linux System Administration (LFS301)
-
August 27, 2018
Open Source Virtualization (LFS462)
-
August 27, 2018
Linux Kernel Debugging and Security (LFD440)
