Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement