No HDD to install Windows is found
Closed this issue · 6 comments
Hi there!
I'm testing dockur and qemu-docker projects on WSL2.
I tried using custom ISO with qemu-docker and encountered an issue with Windows setup, while dockur containers run just fine.
I am running it on the same machine with almost same options as in dockur, but when Windows installation process begins, the following sequence of error occurs:
It says that there is no driver, but it seems the setup tool doesn't see the HDD to install the Windows on.
When I enter console mode (Shift+10), diskpart
, commands list disks
and list vol
show "There are no fixed disks to show" and "There are no volumes" respectively.
I've recreated the Ubuntu in WSL and installed dockur and qemu-docker from scratch just today and tried using the original Windows ISO image without any customizations to sort out any issues and the error persists.
Below is my docker-compose.yml for qemu-docker.
version: "3"
services:
qemu:
container_name: qemu
image: qemux/qemu-docker
environment:
environment:
RAM_SIZE: "2G"
CPU_CORES: "2"
DISK_SIZE: "20G"
BOOT: "https://software.download.prss.microsoft.com/dbazure/Win10_22H2_EnglishInternational_x64v1.iso"
devices:
- /dev/kvm
cap_add:
- NET_ADMIN
ports:
- 8006:8006
stop_grace_period: 2m
restart: on-failure
Can you advice if my setup is missing something that makes qemu not see the virtual HDD? Thanks.
Never seen this problem before. Maybe because you set the disk size so small (20GB) Windows does not show it? Try setting it to 128GB for example, as it does not reserve this space untill you fill it.
Hi, thank you for looking into it. I've set the BOOT to 128Gb, removed the old container and recreated it from scratch. The error with no disk persists
~/git/qemu-docker$ sudo docker compose up
SeaBIOS (version 1.16.3-debian-1.16.3-2)
qemu | Booting from Hard Disk...
qemu | Boot failed: not a bootable disk
qemu |
qemu | Booting from DVD/CD...
^CGracefully stopping... (press Ctrl+C again to force)
[+] Stopping 1/1
✔️ Container qemu Stopped
The 'dockur' version with the same setting runs OK on this machine.
Did you install the VirtISO driver as explained in the FAQ on dockur/windows in the section for manual installation?
Also, why are you even using this container instead of the dockur/windows one?
Thank you for a suggestion, I will check if I have VirtISO diver installed.
My idea was to use this project by preparing some custom Windows images with preinstalled software and launching the needed Windows version using qemu-docker.
qemu-docker is for launching Linux images. For launch custom Windows images please use dockur/windows or you will experience problems like this.
Oh, thanks for clarification. I just got confused and thought that it will suit my needs.
I will now switch back to using dockur/windows.