[virt-tools-list] e2fsck an encrypted LVM root partition within a virtual machine
Richard W.M. Jones
rjones at redhat.com
Fri Jul 31 11:15:18 UTC 2015
On Wed, Jul 29, 2015 at 01:12:11PM +0100, Keith Roberts wrote:
> ><rescue> cryptsetup open /dev/sda2 sysroot
> Enter passphrase for /dev/sda2:
> [ 355.726880] device-mapper: table: 253:0: crypt: unknown target type
> [ 355.727799] device-mapper: ioctl: error adding target to table
> device-mapper: reload ioctl on temporary-cryptsetup-148 failed: Invalid argument
> Failed to open temporary keystore device.
> device-mapper: remove ioctl on temporary-cryptsetup-148 failed: No such device or address
> ...
> ><rescue>
>
> Any ideas why I cannot open the LUKS encrypted partition please?
It's a good question. The error seems to indicate that the
dm-crypt.ko kernel module is not loaded, so I guess you could try
'modprobe dm-crypt' before the cryptsetup command. (Also check your
*host* kernel supports dm-crypt).
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-top is 'top' for virtual machines. Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://people.redhat.com/~rjones/virt-top
More information about the virt-tools-list
mailing list