1
0
Fork 0
forked from ahurac/dotfiles

qemush : utilisation de first-free-port

This commit is contained in:
Hippolyte Chauvin 2023-11-30 23:32:38 +01:00
parent d5eb29b5f2
commit ea0ca0a100
2 changed files with 2 additions and 2 deletions

View file

@ -4,5 +4,5 @@ exec linux \
-device virtio-serial \ -device virtio-serial \
-chardev spicevmc,id=vdagent,debug=0,name=vdagent \ -chardev spicevmc,id=vdagent,debug=0,name=vdagent \
-device virtserialport,chardev=vdagent,name=com.redhat.spice.0 \ -device virtserialport,chardev=vdagent,name=com.redhat.spice.0 \
-spice port=5900,addr=127.0.0.1,disable-ticketing=on \ -spice port="$(first-free-port 5900)",addr=127.0.0.1,disable-ticketing=on \
"$@" "$@"

View file

@ -1,7 +1,7 @@
#!/bin/sh -x #!/bin/sh -x
exec windows \ exec windows \
-vga qxl \ -vga qxl \
-spice port=5900,addr=127.0.0.1,disable-ticketing=on \ -spice port="$(first-free-port 5900)",addr=127.0.0.1,disable-ticketing=on \
-chardev spicevmc,id=vdagent,name=vdagent \ -chardev spicevmc,id=vdagent,name=vdagent \
-device virtserialport,chardev=vdagent,name=com.redhat.spice.0 \ -device virtserialport,chardev=vdagent,name=com.redhat.spice.0 \
"$@" "$@"