Browse Source

added commands for qemu images

toastie89 1 year ago
parent
commit
e952c47cf6
1 changed files with 9 additions and 0 deletions
  1. 9 0
      README.md

+ 9 - 0
README.md

@@ -1,3 +1,12 @@
 # bootstrap
 
 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.
+
+
+## Prepare qemu images
+```
+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
+```