mirror of
https://github.com/oneclickvirt/oneclickvirt.github.io.git
synced 2026-06-07 23:40:24 +08:00
fix
This commit is contained in:
@@ -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 设备,保证下次从硬盘启动
|
||||
|
||||
Reference in New Issue
Block a user