Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save shearluck/c6a801a043a3fc5f954762b20ca1372d to your computer and use it in GitHub Desktop.
Save shearluck/c6a801a043a3fc5f954762b20ca1372d to your computer and use it in GitHub Desktop.
qemu-create-attach-disk.sh
qemu-img create -f qcow2 /mount/path/disk.qcow2 -o preallocation=metadata 20G
sudo virsh attach-disk domain --source /mnt/files/VM/work/minikube.qcow2 --target vdc --cache none --persistent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment