toastie89 e952c47cf6 added commands for qemu images | vor 1 Jahr | |
---|---|---|
.gitignore | vor 1 Jahr | |
README.md | vor 1 Jahr | |
bootstrap-bullseye.sh | vor 1 Jahr | |
config.sh.template | vor 1 Jahr |
The script in this repo bootstraps Debian bullseye from a grml live environment. Design decisions and usage instructions are outlined in the beginning of the script.
img="/var/lib/libvirt/images/ts-linux-testing.qcow2"
qemu-img create -f qcow2 -o size=20G $img # create image
qemu-nbd -c /dev/nbd0 $img # create device from image
qemu-nbd -d /dev/nbd0 # release device