[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
KVM
kvm.png (2.58 KiB) Viewed 4321 times
VMware
VMware
vmware.png (15.41 KiB) Viewed 4321 times
Last edited by marosh on 2014/12/26 07:48:17, edited 1 time in total.

User avatar
TrevorH
Site Admin
Posts: 33218
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.
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

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