Can not boot window
Operating system
ubuntu20.04
Description
When I stop container some days, the windows cannot boot
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
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.
Hi, @kroese Thanks your reply, but now it cannot work for /home/user/disk2/win directory, so I can not replace correct file.
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 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).
OK Tks, I don't remember this volume when I installed it few months ago ^^