[Solved] VM with LUKS won't boot

General support questions
Post Reply
marosh
Posts: 3
Joined: 2014/12/24 08:41:53

[Solved] VM with LUKS won't boot

Post by marosh » 2014/12/24 08:58:48

If I have a LUKS partition, CentOS 7 won't boot up. Without LUKS it boots up fine.
LUKS setup during installation process.

VM has no errors or logs.

Tested setup (minimal installation from network):
1. LVM, /boot, /, /home (encrypted)
2. LVM, / (encrypted)
3. standard partitions, /boot, /, /home (encrypted)
4. standard partition, / (encrypted)

Tested on these virtualization platforms: KVM, VMware ESXi 5.5 U2.

See attached screenshots.
Attachments
kvm.png
KVM
kvm.png (2.58 KiB) Viewed 2889 times
vmware.png
VMware
vmware.png (15.41 KiB) Viewed 2889 times
Last edited by marosh on 2014/12/26 07:48:17, edited 1 time in total.

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

Re: VM with LUKS won't boot

Post by TrevorH » 2014/12/24 12:01:24

It's a known bug. It's asking for the password for the luks partition but you can't see it. Reboot and remove rhgb quiet from the kernel command line at the grub prompt and then it will work.
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

marosh
Posts: 3
Joined: 2014/12/24 08:41:53

Re: VM with LUKS won't boot

Post by marosh » 2014/12/26 07:47:49

TrevorH wrote:Reboot and remove rhgb quiet from the kernel command line
Thanks, it helped.

marosh
Posts: 3
Joined: 2014/12/24 08:41:53

Re: VM with LUKS won't boot

Post by marosh » 2014/12/26 08:27:07

TrevorH wrote:Reboot and remove rhgb quiet from the kernel command line at the grub prompt and then it will work.
To make it permanent through reboots and kernel upgrades:
1. edit /etc/default/grub and remove rhgb quiet from GRUB_CMDLINE_LINUX variable
2. run grub2-mkconfig -o /boot/grub2/grub.cfg.

Post Reply