This USED TO WORK!
But I just upgraded my system. Now, after opening an LVM container on the host from the guest using "cryptsetup luksOpen", when I attempt to work with container (using, say, "pvdisplay"), I get the following:
Code: Select all
$ sudo pvdisplay
/dev/loop0: read failed after 0 of 4096 at 131523870720: Input/output error
/dev/loop0: read failed after 0 of 4096 at 131523928064: Input/output error
/dev/loop0: read failed after 0 of 4096 at 0: Input/output error
/dev/loop0: read failed after 0 of 4096 at 4096: Input/output error
/dev/mapper/lvm_crypt_abc: read failed after 0 of 4096 at 0: Input/output error
/dev/mapper/lvm_crypt_abc: read failed after 0 of 4096 at 131523870720: Input/output error
/dev/mapper/lvm_crypt_abc: read failed after 0 of 4096 at 131523928064: Input/output error
/dev/mapper/lvm_crypt_abc: read failed after 0 of 4096 at 4096: Input/output error
Environment:
- Host: Mint 19.2 (Kernel 4.15.0-58, based on Ubuntu 18.04 / Bionic)
- Guest: Mint 19.2 (Kernel 4.15.0-58, based on Ubuntu 18.04 / Bionic)
On the host create a container file, open the container, create a physical volume within the container, then view the physical volume, and then close the container:
Code: Select all
sudo dd if=/dev/urandom bs=1M count=20 of=./container
sudo cryptsetup -v --cipher aes-xts-plain64 --key-size 512 --hash sha512 --use-random --verify-passphrase --align-payload 0 luksFormat ./container
sudo cryptsetup luksOpen ./container lvm_crypt_abc
sudo pvcreate /dev/mapper/lvm_crypt_abc
sudo pvdisplay /dev/mapper/lvm_crypt_abc
sudo cryptsetup luksClose lvm_crypt_abc
Then, from the guest, open the container, view the physical volume, and then close the container.
Code: Select all
sudo cryptsetup luksOpen ./container lvm_crypt_abc
sudo pvdisplay /dev/mapper/lvm_crypt_abc
sudo cryptsetup luksClose lvm_crypt_abc
This used to work just fine! In fact, when I use an old version of the guest running Mint 18.1 (Kernel 4.4.0-159), I am able to access and use the exact same LVM container on the host with no problem. (Host: Mint 19.2, Guest: Mint 18.1) Works great!
However, if I install the latest Guest Additions on the Mint 18.1 guest (i.e. upgrade from 5.1.38 to 5.2.32) I start having the same problems in the 18.1 guest as I do in the 19.2 guest.
I am at a loss for debugging this. Any help would be greatly appreciated!
Thanks!