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-04 06:17:08 +0200
commitd00dbc029fa41ba93e088d11c5ec82dcd5119feb (patch)
treea2f3d2f6b077d2ad81886eb85ca55a70bbac939e
parent4ae045d72d710a25ecdbe2c71499ac05f7bcfa47 (diff)
Use VNC in test-machine-m1
-rwxr-xr-xtest-machine-m16
1 files changed, 5 insertions, 1 deletions
diff --git a/test-machine-m1 b/test-machine-m1
index 83fa486..695426c 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:
#
@@ -13,6 +14,7 @@
# - Replaced -usb (EHCI) with -device qemu-xhci (XHCI).
# - Added virtio-gpu-pci (otherwise no graphical output).
# - Added usb-kbd (otherwise no keyboard).
+# - Note: position of netdev dictates enp0sN name, so keep first PCI device.
# - Must run on either P or E cores (https://gitlab.com/qemu-project/qemu/-/issues/1002)
# - On M1 0-3 are E, 4-7 are P (lscpu, lscpu -e)
#
@@ -79,7 +81,7 @@ else
fi
"${kvm[@]}" \
- -M virt \
+ -machine virt \
\
-m 4G \
-cpu host -smp "4,sockets=1,cores=4,threads=1" \
@@ -100,6 +102,8 @@ fi
-device virtio-gpu-pci \
-display default,show-cursor=on \
\
+ -vnc :1 \
+ \
-chardev stdio,id=qmp \
-mon chardev=qmp,mode=control,pretty=on \
\