mirror of
https://github.com/justinian/jsix.git
synced 2025-12-09 16:04:32 -08:00
[tools] Add remote option to qemu.sh
I discovered that QEMU has a "remote" option to the `-vnc` switch, which causes it to reverse-connect to a VNC client on start. I've added this into qemu.sh as the -r option.
This commit is contained in:
8
qemu.sh
8
qemu.sh
@@ -33,6 +33,13 @@ while true; do
|
||||
vga=""
|
||||
shift
|
||||
;;
|
||||
-r | --remote)
|
||||
shift
|
||||
vnchost="${1:-${VNCHOST:-localhost}}"
|
||||
gfx="-vnc ${vnchost}:7000,reverse"
|
||||
vga=""
|
||||
shift
|
||||
;;
|
||||
-k | --kvm)
|
||||
kvm="-enable-kvm"
|
||||
cpu="host"
|
||||
@@ -92,6 +99,7 @@ qemu-system-x86_64 \
|
||||
-cpu "${cpu}" \
|
||||
-M q35 \
|
||||
-no-reboot \
|
||||
-name "jsix" \
|
||||
$isaexit $log $gfx $vga $kvm $debug
|
||||
|
||||
((result = ($? >> 1) - 1))
|
||||
|
||||
Reference in New Issue
Block a user