forked from ahurac/dotfiles
qemush : utilisation de first-free-port
This commit is contained in:
parent
d5eb29b5f2
commit
ea0ca0a100
2 changed files with 2 additions and 2 deletions
|
@ -4,5 +4,5 @@ exec linux \
|
|||
-device virtio-serial \
|
||||
-chardev spicevmc,id=vdagent,debug=0,name=vdagent \
|
||||
-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 \
|
||||
"$@"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/sh -x
|
||||
exec windows \
|
||||
-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 \
|
||||
-device virtserialport,chardev=vdagent,name=com.redhat.spice.0 \
|
||||
"$@"
|
||||
|
|
Loading…
Reference in a new issue