From 4a8bcb594c31b594ed16a4be84fb854f64d53b9a Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 3 Oct 2022 11:09:42 +0200 Subject: Use VNC in test-machine-m1 --- test-machine-m1 | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/test-machine-m1 b/test-machine-m1 index 83fa486..9f07c3d 100755 --- a/test-machine-m1 +++ b/test-machine-m1 @@ -3,6 +3,7 @@ # Test a virtual machine with KVM on Apple M1. Notes: # # - Need QEMU 7 or later. +# - Login via VNC to :5901. # - Expect to find QEMU_EFI.fd and QEMU_VARS.fd next to disk.img. # - Installing with -cdrom does not work, have to use scsi-cd: # @@ -78,8 +79,14 @@ else tap="$etap" fi +# Can be used instead of -vnc: +# +#-device virtio-gpu-pci \ +#-display default,show-cursor=on \ +# + "${kvm[@]}" \ - -M virt \ + -machine virt \ \ -m 4G \ -cpu host -smp "4,sockets=1,cores=4,threads=1" \ @@ -97,8 +104,7 @@ fi -device usb-kbd \ -device usb-tablet \ \ - -device virtio-gpu-pci \ - -display default,show-cursor=on \ + -vnc :1 \ \ -chardev stdio,id=qmp \ -mon chardev=qmp,mode=control,pretty=on \ -- cgit v1.1