#!/bin/sh
Β
# Working under Big Sur
# MacPorts QEMU 6.2.0 start script for Linux ntp server running under MacOS with
# - USB GPS Prolific PL2303 device passthru into guest
# - qemu-guest-agent
# - socket QEMU control
Β
/opt/local/bin/qemu-system-x86_64 -no-user-config -display none \
Β -name ticktock -machine q35 -m size=512 \
Β -cpu host -accel hvf -usb -smp 2 \
Β -drive file=/Users/server/Virtual\ Machines/ticktock.qcow2,if=virtio \
Β -nic user,model=e1000,id=net0,hostfwd=tcp::2222-:22,hostfwd=udp::123-:123 \
Β -device usb-host,vendorid=0x067b,productid=0x2303 \
Β -chardev socket,path=/tmp/qga.sock,server=on,wait=off,id=qga0 \
Β -device virtio-serial \
Β -device virtserialport,chardev=qga0,name=org.qemu.guest_agent.0 \
Β -monitor unix:/var/run/qemu-ticktock.socket,server=on,wait=off
Β
# To boot into install .iso
#
# -cdrom ${HOME}/Downloads/debian-11.3.0-amd64-netinst.iso
Β
# To access qemu console for system_powerdown
# Ref: https://unix.stackexchange.com/questions/426652/connect-to-running-qemu-instance-with-qemu-monitor
#
# socat -,echo=0,icanon=0 unix-connect:/var/run/qemu-ticktock.socket
Comments
0 B
|π
/π
0 B
|π
/π
0 B
|π
/π
0 B
|π
/π
0 B
|π
/π
0 B
|π
/π
0 B
|π
/π
0 B
|π
/π
0 B
|π
/π
0 B
|π
/π