diff --git a/test-image.sh b/test-image.sh index d85e577..9d92b76 100755 --- a/test-image.sh +++ b/test-image.sh @@ -1,7 +1,12 @@ #!/bin/sh +KVM=kvm +if ! which $KVM 2> /dev/null ; then + KVM=qemu-kvm +fi + qemu-img create -f qcow2 -b client.qcow2 client-test.qcow2 -kvm -m 512 -monitor none -nographic \ +$KVM -m 64 -monitor none -nographic \ -drive file=client-test.qcow2,if=virtio,format=qcow2 \ -netdev user,id=net0 -device virtio-net-pci,netdev=net0 rm client-test.qcow2