diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2022-10-03 11:09:42 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2022-10-03 11:09:42 +0200 |
commit | 4a8bcb594c31b594ed16a4be84fb854f64d53b9a (patch) | |
tree | 56d52299524642d4dd695dfffee70dff945cd373 | |
parent | 9c11d8f6d065567af5c186ee6d5c5dfa0741aeca (diff) |
Use VNC in test-machine-m1
-rwxr-xr-x | test-machine-m1 | 12 |
1 files 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 \ |