Does this program support installation via VPS?
I want to install Windows on my VPS(Debian 11), and here's my docker-compose config:
version: "3"
services:
windows:
image: dockurr/windows
container_name: windows
devices:
- /dev/kvm
cap_add:
- NET_ADMIN
ports:
- 8006:8006
- 3389:3389/tcp
- 3389:3389/udp
environment:
VERSION: "2019"
RAM_SIZE: "8G"
CPU_CORES: "4"
stop_grace_period: 2m
restart: on-failure
I ran docker ps and I saw the container kept restarting.
The web page shows "Lost Connection".
Thanks.
I cannot tell whats happening if you dont post the logfiles to see why its restarting. But my guess is that KVM is not supported by your VPS provider. You can workaround this by setting KVM=N in your compose, but this will cause the VM to run very slowly so its not a real solution.
❯ Booting Windows using QEMU emulator version 8.2.1 ...
❯ ERROR: qemu-system-x86_64: cannot set up guest memory 'pc.ram': Cannot allocate memory
❯ Starting Windows for Docker v2.03...
❯ For support visit https://github.com/dockur/windows
Cannot allocate memory sounds like it does not have enough RAM left. You set it to 8 GB so better leave it on the default ( 4 GB ) and see if that helps.
Thanks! That works.💕
BTW, I've had several previous installs that were failures, where do I remove the extra downloaded image files?
If you restart the installation it should automaticly empty the previous temporary directory so there should not be extra files. If you used Docker volumes instead of a folder there is command to remove all unused volumes docker volume prune.
如果您不发布日志文件以了解其重新启动的原因,我无法判断发生了什么。但我的猜测是您的 VPS 提供商不支持 KVM。
KVM=N您可以通过在组合中进行设置来解决此问题,但这会导致虚拟机运行速度非常慢,因此这不是真正的解决方案。
How to set KVM=N