windows icon indicating copy to clipboard operation
windows copied to clipboard

Can not boot window

Open ultwcz opened this issue 2 months ago • 5 comments

Operating system

ubuntu20.04

Description

When I stop container some days, the windows cannot boot

Image

Docker compose

docker run -d \
	--restart=unless-stopped \
	-p 127.0.0.1:8006:8006 \
	-p 127.0.0.1:3389:3389/tcp \
	-p 127.0.0.1:3389:3389/udp \
	--device=/dev/kvm \
	--device=/dev/net/tun \
	--device=/dev/bus/usb \
	--cap-add NET_ADMIN \
	--stop-timeout 60 \
	-e VERSION="11l" \
	-e DISK_SIZE=200G \
	-e USERNAME="user" \
	-e PASSWORD="pwd" \
	-e RAM_SIZE=6G \
	-e CPU_CORES=2 \
	-v /home/user/disk2/win:/storage \
	-v /home/user/share:/data \
	--name windows11 \
	dockurr/windows:latest

Docker log

❯ Booting Windows using QEMU v10.0.3...
BdsDxe: loading Boot0004 "Windows Boot Manager" from HD(1,GPT,D4CE8B51-0542-40EF-85BD-46E471243F0F,0x800,0x40000)/\EFI\Microsoft\Boot\bootmgfw.efi
BdsDxe: starting Boot0004 "Windows Boot Manager" from HD(1,GPT,D4CE8B51-0542-40EF-85BD-46E471243F0F,0x800,0x40000)/\EFI\Microsoft\Boot\bootmgfw.efi
❯ Windows started successfully, visit http://127.0.0.1:8006/ to view the screen...
❯ Shutdown completed!
❯ Starting Windows for Docker v5.08...
❯ For support visit https://github.com/dockur/windows
❯ CPU: Intel Core i7 9700 | RAM: 12/16 GB | DISK: 168 GB (ext4) | KERNEL: 5.15.0-139...

❯ Booting Windows using QEMU v10.0.3...
BdsDxe: loading Boot0004 "Windows Boot Manager" from HD(1,GPT,D4CE8B51-0542-40EF-85BD-46E471243F0F,0x800,0x40000)/\EFI\Microsoft\Boot\bootmgfw.efi
BdsDxe: starting Boot0004 "Windows Boot Manager" from HD(1,GPT,D4CE8B51-0542-40EF-85BD-46E471243F0F,0x800,0x40000)/\EFI\Microsoft\Boot\bootmgfw.efi
❯ Windows started successfully, visit http://127.0.0.1:8006/ to view the screen...
❯ Shutdown completed!
❯ Starting Windows for Docker v5.08...
❯ For support visit https://github.com/dockur/windows
❯ CPU: Intel Core i7 9700 | RAM: 12/16 GB | DISK: 168 GB (ext4) | KERNEL: 5.15.0-139...

❯ Booting Windows using QEMU v10.0.3...
BdsDxe: loading Boot0004 "Windows Boot Manager" from HD(1,GPT,D4CE8B51-0542-40EF-85BD-46E471243F0F,0x800,0x40000)/\EFI\Microsoft\Boot\bootmgfw.efi
BdsDxe: starting Boot0004 "Windows Boot Manager" from HD(1,GPT,D4CE8B51-0542-40EF-85BD-46E471243F0F,0x800,0x40000)/\EFI\Microsoft\Boot\bootmgfw.efi

Screenshots (optional)

No response

ultwcz avatar Oct 13 '25 03:10 ultwcz

Seems something got corrupted somehow. The easiest way to fix it is to replace /home/user/disk2/win with a backup from when it was still working.

kroese avatar Oct 13 '25 07:10 kroese

Hi, @kroese Thanks your reply, but now it cannot work for /home/user/disk2/win directory, so I can not replace correct file.

ultwcz avatar Oct 13 '25 08:10 ultwcz

Hi, I had the same issue with a windows 10, I think we had an update saturday and it broked the windows. My solution was to docker compose down and up again. @kroese I'm interested on how to backup important files and how to recover?

acwebdesign avatar Oct 13 '25 08:10 acwebdesign

@acwebdesign You can just backup the /storage folder (when the container is stopped). And then you can always overwrite the existing data directory with the files in that copy. The most important being the data.img file, which is a image of the whole harddrive. So technically it is even enough to backup just that file (instead of the whole folder).

kroese avatar Oct 13 '25 09:10 kroese

OK Tks, I don't remember this volume when I installed it few months ago ^^

acwebdesign avatar Oct 13 '25 10:10 acwebdesign