I'm trying to install a Debian ISO image into a Luks container that I already created with the following commands:
Creating the encryption key
Code: Select all
dd if=/dev/urandom bs=512 count=8 iflag=fullblock | gpg2 -v --cipher-algo aes256 --digest-algo sha512 -c -a > vault.key
Code: Select all
dd if=/dev/zero bs=1 count=0 seek=30G of=vault.ctn
Code: Select all
gpg2 --decrypt vault.key 2>/dev/null | sudo cryptsetup -v --key-file=- -c aes-xts-plain64 -s 512 -h sha512 luksFormat vault.ctn
I tried this example from qemu manpages, but at some point, the installation says it can't find any disks and asks me the drivers for the disk and I don't know if this is supposed to happen and what then to choose in the installation window or if I'm already going wrong with the command:
Code: Select all
qemu-system-x86_64 -machine accel=kvm:tcg -m 8192 -blockdev driver=raw,node-name=disk,file.driver=file,file.filename=vault.ctn -boot d -cdrom ~/Storage/Software/Linux/LinuxIMGsPool/debian-11.1.0-amd64-netinst.iso
Thanks
Psy