Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: win7 failed cd-rom #480

Open
1 task done
chspan opened this issue May 10, 2024 · 9 comments
Open
1 task done

[Bug]: win7 failed cd-rom #480

chspan opened this issue May 10, 2024 · 9 comments
Labels
bug Something isn't working

Comments

@chspan
Copy link

chspan commented May 10, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Machine specifications

Intel(R) Xeon(R) CPU E5-2620 v3 @ 2.40GHz/16GB esxi virtual vm

Operating system

CentOS Linux release 7.9.2009 (Core)

Docker version

Docker version 24.0.7, build afdd53b

Description

The startup error is reported. Is it because the docker version is too low? The system has kvm virtualization.

Docker compose

version: "3"
services:
windows:
image: dockurr/windows
container_name: windows7
devices:

  • /dev/kvm
    cap_add:
  • NET_ADMIN
    ports:
  • 8006:8006
  • 3389:3389/tcp
  • 3389:3389/udp
    stop_grace_period: 2m
    restart: on-failure
    environment:
    VERSION: "win7"

Docker log

[root@control-plane iso]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
bb47dbb7833b dockurr/windows "/usr/bin/tini -s /r…" 18 seconds ago Up 17 seconds 0.0.0.0:3389->3389/tcp, :::3389->3389/tcp, 0.0.0.0:8006->8006/tcp, 0.0.0.0:3389->3389/udp, :::8006->8006/tcp, :::3389->3389/udp windows7
[root@control-plane iso]# docker logs bb47dbb7833b
❯ Starting Windows for Docker v3.03...
❯ For support visit https://github.com/dockur/windows
❯ CPU: Intel Xeon CPU E5 2620 v3 | RAM: 15/16 GB | DISK: 72 GB (xfs) | HOST: 3.10.0-1160.105.1.el7.x86_64...

❯ Booting Windows securely...
BdsDxe: failed to load Boot0002 "UEFI QEMU QEMU HARDDISK " from PciRoot(0x0)/Pci(0xA,0x0)/Scsi(0x0,0x0): Not Found
BdsDxe: failed to load Boot0001 "UEFI QEMU QEMU CD-ROM " from PciRoot(0x0)/Pci(0x5,0x0)/Scsi(0x0,0x0): Not Found
BdsDxe: No bootable option or device was found.
BdsDxe: Press any key to enter the Boot Manager Menu.
❯ Windows started succesfully, visit http://localhost:8006/ to view the screen...

Screenshots (optional)

image
image
image

@chspan chspan added the bug Something isn't working label May 10, 2024
@kroese
Copy link
Contributor

kroese commented May 10, 2024

Looks like something wrong with the installation ISO. Can you show me the contents of the /storage folder?

@chspan
Copy link
Author

chspan commented May 10, 2024

version: "3"
services:
windows:
image: dockurr/windows
container_name: windows7
devices:
- /dev/kvm
cap_add:
- NET_ADMIN
ports:
- 8006:8006
- 3389:3389/tcp
- 3389:3389/udp
stop_grace_period: 2m
restart: on-failure
volumes:
- /data/dockur/win7/:/storage
environment:
VERSION: "win7" # 系统标识
CONSOLE: "Y"

image
image
is in /storage

@kroese
Copy link
Contributor

kroese commented May 10, 2024

When you switch from Windows versions above 7, to a version that is 7 or lower, you must always empty the /storage folder first.

So from Vista-->7 you dont need to do it, from 10-->11 you also dont need to do it, but from 11-->7 or 7-->11 always delete /storage or assign a fresh volume.

@chspan
Copy link
Author

chspan commented May 10, 2024

version: "3"
services:
windows:
image: dockurr/windows
container_name: windows7
devices:

  • /dev/kvm
    cap_add:
  • NET_ADMIN
    ports:
  • 8006:8006
  • 3389:3389/tcp
  • 3389:3389/udp
    stop_grace_period: 2m
    restart: on-failure
    volumes:
  • /data/dockur/win7/:/storage1
    environment:
    VERSION: "win7" # 系统标识
    CONSOLE: "Y"

Is it okay if you think about my new allocation like this?

@kroese
Copy link
Contributor

kroese commented May 10, 2024

No... You used /storage1 but it must be called /storage

@chspan
Copy link
Author

chspan commented May 10, 2024

Oh, you mean to ask me to delete the files in the directory /data/dockur/win7/ and re-download the test.

@kroese
Copy link
Contributor

kroese commented May 10, 2024

Change:

/data/dockur/win7/:/storage1

to

/data/dockur/win7:/storage

and delete all files in /data/dockur/win7

@chspan
Copy link
Author

chspan commented May 10, 2024

image
image
This is the effect after startup

@kroese
Copy link
Contributor

kroese commented May 10, 2024

Mmhh.. I remember that most people who had troubles with this container are using CentOS, so it might be some issue between CentOS and KVM.

Can you check if it helps when you add -e "HV=N" to disable Hyper-V enlightments?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants