aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2022-10-03 11:09:42 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2022-10-03 11:09:42 +0200
commit4a8bcb594c31b594ed16a4be84fb854f64d53b9a (patch)
tree56d52299524642d4dd695dfffee70dff945cd373
parent9c11d8f6d065567af5c186ee6d5c5dfa0741aeca (diff)
Use VNC in test-machine-m1
-rwxr-xr-xtest-machine-m112
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 \