This commit is contained in:
spiritlhl
2025-05-20 11:54:16 +08:00
committed by GitHub
parent 7f133f5bbb
commit 70e237480c

View File

@@ -104,12 +104,9 @@ apt install -y spice-html5 websockify lsof
```shell
incus start winvm
sleep 1
SOCKET=$(ls ~/.config/incus/sockets/*.spice | \
grep "$(incus info winvm | awk '/^ ID:/ {print $2}')" | \
tail -n1)
SERVER_IP=$(hostname -I | awk '{print $1}')
nohup websockify --web /usr/share/spice-html5 6080 \
--unix-target="$SOCKET" \
--unix-target="/root/spice.socket" \
> /var/log/websockify-winvm.log 2>&1 &
echo "SPICE HTML5 console on http://${SERVER_IP}:6080/spice_auto.html"
```