From ea0ca0a1001970deb708c75105eef2e2cd55021d Mon Sep 17 00:00:00 2001 From: Hippolyte Chauvin Date: Thu, 30 Nov 2023 23:32:38 +0100 Subject: [PATCH] qemush : utilisation de first-free-port --- qemu/bin/linux-spice | 2 +- qemu/bin/windows-spice | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/qemu/bin/linux-spice b/qemu/bin/linux-spice index a2faaf3..e8e1ad3 100755 --- a/qemu/bin/linux-spice +++ b/qemu/bin/linux-spice @@ -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 \ "$@" diff --git a/qemu/bin/windows-spice b/qemu/bin/windows-spice index 6327a9a..da49e67 100755 --- a/qemu/bin/windows-spice +++ b/qemu/bin/windows-spice @@ -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 \ "$@"