OmniParser icon indicating copy to clipboard operation
OmniParser copied to clipboard

failed to load Boot0002

Open isaacrlevin opened this issue 11 months ago • 23 comments

Running into issues trying to Setup Omnibox. When I run the .\manage_vm.ps1 create command, I get this error after some time

BdsDxe: failed to load Boot0002 "UEFI QEMU QEMU HARDDISK " from PciRoot(0x0)/Pci(0xA,0x0)/Scsi(0x0,0x0): Not Found
2025-02-17 13:23:18 BdsDxe: loading Boot0001 "UEFI QEMU DVD-ROM QM00013 " from PciRoot(0x0)/Pci(0x5,0x0)/Sata(0x0,0xFFFF,0x0)
2025-02-17 13:23:18 BdsDxe: starting Boot0001 "UEFI QEMU DVD-ROM QM00013 " from PciRoot(0x0)/Pci(0x5,0x0)/Sata(0x0,0xFFFF,0x0)
2025-02-17 13:23:42 ❯ Windows has started successfully. You can directly view the VM at http://localhost:8006/vnc.html?view_only=1&autoconnect=1&resize=scale. Wait until setup is complete before interacting manually.

Here is my system info

Image

isaacrlevin avatar Feb 17 '25 21:02 isaacrlevin

This is a warning that I have seen before, not causing error in my case. Did you get it to run?

yadong-lu avatar Feb 18 '25 06:02 yadong-lu

Same issue here, after setting KVM=N

On Windows 10 Pro, I am getting:

2025-02-17 13:37:07 ❯ Starting OmniParser Windows for Docker v0.00...
2025-02-17 13:37:07 ❯ For support visit https://github.com/microsoft/OmniParser
2025-02-17 13:37:07 ❯ CPU: Intel Core TM i7 10700F | RAM: 14/16 GB | DISK: 61 GB (v9fs) | KERNEL: 5.15.167.4-microsoft-standard-WSL2...
2025-02-17 13:37:07
2025-02-17 13:37:07 ❯ Extracting local ISO image...
2025-02-17 13:38:13 ❯ Detecting version from ISO image...
2025-02-17 13:38:13 ❯ Detected: Windows 11 Enterprise (Evaluation)
2025-02-17 13:38:13 ❯ Adding drivers to image...
2025-02-17 13:38:15 ❯ Adding OEM folder to image...
2025-02-17 13:38:15 ❯ Adding win11x64-enterprise-eval.xml for automatic installation...
2025-02-17 13:38:16 ❯ Building Windows 11 image...
2025-02-17 13:39:47 ❯ Creating a 20G growable disk image in raw format...
2025-02-17 13:39:47 ❯ ERROR: KVM acceleration not available (device file missing), this will cause a major loss of performance.
2025-02-17 13:39:47 ❯ ERROR: See the FAQ on how to diagnose the cause, or continue without KVM by setting KVM=N (not recommended).

I tried it using the setting KVM=N, it does not give an error, but eventually when starting up the vm I am getting

BdsDxe: failed to load Boot0002 "UEFI QEMU QEMU HARDDISK " from PciRoot(0x0)/Pci(0xA,0x0)/Scsi(0x0,0x0): Not Found
2025-02-17 11:43:32 BdsDxe: loading Boot0001 "UEFI QEMU DVD-ROM QM00013 " from PciRoot(0x0)/Pci(0x5,0x0)/Sata(0x0,0xFFFF,0x0)
2025-02-17 11:43:32 BdsDxe: starting Boot0001 "UEFI QEMU DVD-ROM QM00013 " from PciRoot(0x0)/Pci(0x5,0x0)/Sata(0x0,0xFFFF,0x0)
2025-02-17 11:43:56 ❯ Windows has started successfully. You can directly view the VM at http://localhost:8006/vnc.html?view_only=1&autoconnect=1&resize=scale. Wait until setup is complete before interacting manually.

I left it for an hour, but it just didn't do anything even when monitoring the VM.

Image Image

glienard avatar Feb 18 '25 07:02 glienard

Same issue here, I have no idea how to troubleshoot it. Any suggestions?

nechita avatar Feb 18 '25 12:02 nechita

It is assumed that KVM support is required for usage.

hdj158 avatar Feb 21 '25 03:02 hdj158

same issue

ChasingD avatar Feb 21 '25 08:02 ChasingD

I'm the same, I thought it was because I'm on a Mac

DiscardZhebin avatar Feb 21 '25 09:02 DiscardZhebin

+1

byliu avatar Feb 21 '25 09:02 byliu

This issue occurs on machines with no KVM support - Dockur limitation. This is noted via this comment in the readme. If there are fixes please raise a PR

ThomasDh-C avatar Feb 23 '25 03:02 ThomasDh-C

I'm on a Ubuntu 22.04 and run into the same issue. It seems a docker version issue to me. After I switch from docker desktop to docker.io, as well as some config changes, then all problem solved.

services:
  windows:
    image: windows-local
    container_name: omni-windows
    privileged: true
    environment:
      RAM_SIZE: "8G"
      CPU_CORES: "4"
      DISK_SIZE: "20G"
      BOOT: "/custom.iso"
    devices:
      - /dev/kvm
      - /dev/net/tun
    cap_add:
      - NET_ADMIN
    ports:
      - 8006:8006       # Web Viewer access
      - 5000:5000       # Computer control server
    volumes:
      - ./vm/win11iso/custom.iso:/custom.iso
      - ./vm/win11setup/firstboot:/oem
      - ./vm/win11setup/setupscripts:/data
      - ./vm/win11storage:/storage
    command: ["/run/entry.sh"]

weipeilun avatar Feb 24 '25 05:02 weipeilun

@weipeilun which commands did you use to switch?

SophieDC98 avatar Feb 24 '25 15:02 SophieDC98

Same issue here, after setting KVM=N

services: windows: image: windows-local container_name: omni-windows privileged: true environment: RAM_SIZE: "6G" CPU_CORES: "3" DISK_SIZE: "20G" KVM: "N" devices: - /dev/kvm - /dev/net/tun cap_add: - NET_ADMIN ports: - 8006:8006 # Web Viewer access - 5000:5000 # Computer control server volumes: - ./vm/win11iso/custom.iso:/custom.iso - ./vm/win11setup/firstboot:/oem - ./vm/win11setup/setupscripts:/data - ./vm/win11storage:/storage

xiazhihou avatar Feb 25 '25 09:02 xiazhihou

+1

shira-g avatar Feb 26 '25 13:02 shira-g

+1, after setting KVM=N, I got the same issue as @glienard . BdsDxe: failed to load Boot0002 "UEFI QEMU QEMU HARDDISK " from PciRoot(0x0)/Pci(0xA,0x0)/Scsi(0x0,0x0): Not Found BdsDxe: loading Boot0001 "UEFI QEMU DVD-ROM QM00013 " from PciRoot(0x0)/Pci(0x5,0x0)/Sata(0x0,0xFFFF,0x0) BdsDxe: starting Boot0001 "UEFI QEMU DVD-ROM QM00013 " from PciRoot(0x0)/Pci(0x5,0x0)/Sata(0x0,0xFFFF,0x0) ❯ Windows has started successfully. You can directly view the VM at http://localhost:8006/vnc.html?view_only=1&autoconnect=1&resize=scale. Wait until setup is complete before interacting manually.

XingWang1234 avatar Feb 26 '25 13:02 XingWang1234

+1, after setting KVM=N, I got the same issue

jerryzhcz avatar Feb 28 '25 05:02 jerryzhcz

我也遇到了这个问题

YangYa666 avatar Feb 28 '25 11:02 YangYa666

I found "COPY --from=qemux/qemu-docker:6.08 //" in Omnibox/Dockerfile So I get the following information from https://hub.docker.com/r/qemux/qemu-docker

Compatibility Product Platform Docker Engine | Linux | ✅ Docker Desktop | Linux | ❌ Docker Desktop | macOS | ❌ Docker Desktop | Windows 11 | ✅ Docker Desktop | Windows 10 | ❌

zhangyanWolf avatar Mar 02 '25 04:03 zhangyanWolf

So, after i switch to the windows 11, it's success!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

You can ignore "BdsDxe: failed to load Boot0002 "UEFI QEMU QEMU HARDDISK " from PciRoot(0x0)/Pci(0xA,0x0)/Scsi(0x0,0x0): Not Found" and KVM : "N", you just switch to windows 11 os!

Docker Desktop of Windows 10, Linux and macOS do not support qemu Docker now.

Image

Image

Image

zhangyanWolf avatar Mar 02 '25 06:03 zhangyanWolf

after i switch to the windows 11,i still got the same issue

holeiholei avatar Mar 04 '25 16:03 holeiholei

❯ Extracting local ISO image... ❯ Detecting version from ISO image... ❯ Detected: Windows 11 Enterprise (Evaluation) ❯ Adding drivers to image... ❯ Adding OEM folder to image... ❯ Adding win11x64-enterprise-eval.xml for automatic installation... ❯ Building Windows 11 image... ❯ Creating a 20G growable disk image in raw format... ❯ Warning: unexpected clocksource: hyperv_clocksource_tsc_page ❯ Booting OmniParser Windows using QEMU v9.1.1... BdsDxe: failed to load Boot0002 "UEFI QEMU QEMU HARDDISK " from PciRoot(0x0)/Pci(0xA,0x0)/Scsi(0x0,0x0): Not Found BdsDxe: loading Boot0001 "UEFI QEMU DVD-ROM QM00013 " from PciRoot(0x0)/Pci(0x5,0x0)/Sata(0x0,0xFFFF,0x0) BdsDxe: starting Boot0001 "UEFI QEMU DVD-ROM QM00013 " from PciRoot(0x0)/Pci(0x5,0x0)/Sata(0x0,0xFFFF,0x0)

win11 same issue +1

holeiholei avatar Mar 05 '25 11:03 holeiholei

same issue here, I a m running on MAC.

BdsDxe: failed to load Boot0002 "UEFI QEMU QEMU HARDDISK " from PciRoot(0x0)/Pci(0xA,0x0)/Scsi(0x0,0x0): Not Found 2025-03-05 11:59:40 omni-windows | BdsDxe: loading Boot0001 "UEFI QEMU DVD-ROM QM00013 " from PciRoot(0x0)/Pci(0x5,0x0)/Sata(0x0,0xFFFF,0x0) 2025-03-05 11:59:41 omni-windows | BdsDxe: starting Boot0001 "UEFI QEMU DVD-ROM QM00013 " from PciRoot(0x0)/Pci(0x5,0x0)/Sata(0x0,0xFFFF,0x0) 2025-03-05 12:00:04 omni-windows | ❯ Windows has started successfully. You can directly view the VM at http://localhost:8006/vnc.html?view_only=1&autoconnect=1&resize=scale. Wait until setup is complete before interacting manually.

rajeshgautamphd avatar Mar 05 '25 17:03 rajeshgautamphd

Taking cues from different places

working setup on ubuntu ( till windows 11 installation getting visible in vnc)

did not use docker desktop, install docker.io sudo apt-get install docker.io

no change in the compose.yml file, except that I reduced the memory to 2GB, because I have a old system

installed kvm, using instructions here (only till step 5): https://phoenixnap.com/kb/ubuntu-install-kvm

restarted the docker daemon. sudo service docker restart

sudo manage_vm.sh create

The vnc should show activity and installation progress.

apparently this message was shown initially but the process moved ahead. BdsDxe: failed to load Boot0002

rajeshgautamphd avatar Mar 10 '25 16:03 rajeshgautamphd

Is there any workaround solution for Mac User? I have the same issue

anhnhatcs avatar Apr 08 '25 13:04 anhnhatcs

The qemux/qemu-docker:6.08 is missing at the docker hub website

icey-zhang avatar Apr 17 '25 08:04 icey-zhang