This commit is contained in:
spiritlhl
2025-05-19 23:19:45 +08:00
committed by GitHub
parent be54bdfbc5
commit c666c88b1d

View File

@@ -66,11 +66,16 @@ incus start win11vm
SERVER_IP=$(hostname -I | awk '{print $1}')
nohup websockify --web /usr/share/spice-html5 6080 \
--unix-target=/run/incus/win11vm/qemu.spice \
--pidfile /run/websockify-win11vm.pid \
> /var/log/websockify-win11vm.log 2>&1 &
echo "请在浏览器中访问:"
echo " https://${SERVER_IP}:6080/spice_auto.html?port=6080"
```
```shell
kill "$(cat /run/websockify-win11vm.pid)"
```
```shell
# 安装完成后,先在控制台关闭/退出 Windows
# 然后移除 ISO 设备,保证下次从硬盘启动