]> piware.de Git - bin.git/commitdiff
vm: Use SDL display by default
authorMartin Pitt <martin@piware.de>
Sun, 29 Aug 2021 07:30:13 +0000 (09:30 +0200)
committerMartin Pitt <martin@piware.de>
Sun, 29 Aug 2021 07:30:13 +0000 (09:30 +0200)
gtk is not available in my own OSTree.

vm

diff --git a/vm b/vm
index 53231328f6b5b7f35e478fe52754c1be331eef7d..3e94cb753fc756aa0f2c56d1b1ff4361dc6934be 100755 (executable)
--- a/vm
+++ b/vm
@@ -9,7 +9,7 @@ until echo '' | nc localhost $ssh_port 2>&1 >/dev/null | grep -q 'Connection ref
     ssh_port=$((ssh_port+1))
 done
 echo "Host ssh port: $ssh_port"
     ssh_port=$((ssh_port+1))
 done
 echo "Host ssh port: $ssh_port"
-qemu-system-x86_64 -enable-kvm -display gtk -m 2048 -device virtio-rng-pci \
+qemu-system-x86_64 -enable-kvm -display sdl -m 2048 -device virtio-rng-pci \
     -drive file="$image",if=virtio \
     -virtfs local,id=src,path=$HOME,security_model=none,mount_tag=home,readonly \
     -net nic,model=virtio -net user,hostfwd=tcp::${ssh_port}-:22 "$@"
     -drive file="$image",if=virtio \
     -virtfs local,id=src,path=$HOME,security_model=none,mount_tag=home,readonly \
     -net nic,model=virtio -net user,hostfwd=tcp::${ssh_port}-:22 "$@"