Configuration error: Querying "BootDevice0" as a string failed (VERR_CFGM_VALUE_NOT_FOUND)

Discussions related to using VirtualBox on Windows hosts.
Post Reply
rena2019
Posts: 3
Joined: 19. Oct 2021, 16:05

Configuration error: Querying "BootDevice0" as a string failed (VERR_CFGM_VALUE_NOT_FOUND)

Post by rena2019 »

Hi,
I'm trying to start a VM (with enabled EFI) under Windows host. Booting from vdi hard disk fails with the following error dialog:

Configuration error: Querying "BootDevice0" as a string failed (VERR_CFGM_VALUE_NOT_FOUND).
Result Code: E_FAIL (0x80004005)
Component: ConsoleWrap
Interface: IConsole { .... }

What's wrong with boot disk?

And here is the
VM log---
00:00:05.545063 Found EFI FW Volume, 540672 bytes (132 4096-byte blocks)
00:00:05.565241 EFI: Registered 528KB flash at 00000000ffc00000
00:00:05.570683 DMI: Using DmiSystemProduct from host: N501VW
00:00:05.575426 DMI: Using DmiSystemVersion from host: 1.0
00:00:05.575692 PcBios: [SMP] BIOS with 1 CPUs
00:00:05.575717 VMSetError: F:\tinderbox\win-6.1\src\VBox\Devices\PC\DevPcBios.cpp(1186) int __cdecl pcbiosBootFromCfg(struct PDMDEVINSR3 *,struct CFGMNODE *,const char *,enum DEVPCBIOSBOOT *); rc=VERR_CFGM_VALUE_NOT_FOUND
00:00:05.575900 VMSetError: Configuration error: Querying "BootDevice0" as a string failed
00:00:05.575913 PDM: Failed to construct 'pcbios'/0! VERR_CFGM_VALUE_NOT_FOUND (-2103) - Value not found.
00:00:06.428200 ERROR [COM]: aRC=E_FAIL (0x80004005) aIID={872da645-4a9b-1727-bee2-5585105b9eed} aComponent={ConsoleWrap} aText={Configuration error: Querying "BootDevice0" as a string failed (VERR_CFGM_VALUE_NOT_FOUND)}, preserve=false aResultDetail=-2103
00:00:06.429674 Console: Machine state changed to 'PoweredOff'
00:00:06.467765 Power up failed (vrc=VERR_CFGM_VALUE_NOT_FOUND, rc=E_FAIL (0X80004005))
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Configuration error: Querying "BootDevice0" as a string failed (VERR_CFGM_VALUE_NOT_FOUND)

Post by scottgus1 »

Please post the whole log:

Start the VM from full power off, not save-state. Run until you see the problem happen, then shut down the VM from within the VM OS if possible. If not possible, close the Virtualbox window for the VM with the Power Off option set.

Please right-click the VM in the main Virtualbox window's VM list, choose Show Log. Save the far left tab's log, zip the log file, and post the zip file, using the forum's Upload Attachment tab.
rena2019
Posts: 3
Joined: 19. Oct 2021, 16:05

Re: Configuration error: Querying "BootDevice0" as a string failed (VERR_CFGM_VALUE_NOT_FOUND)

Post by rena2019 »

here is the zipped log file
Attachments
TestVM-2021-10-20-08-30-39.zip
zipped log file
(7.42 KiB) Downloaded 84 times
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Configuration error: Querying "BootDevice0" as a string failed (VERR_CFGM_VALUE_NOT_FOUND)

Post by scottgus1 »

Thanks for the log!
rena2019 wrote:I'm trying to start a VM (with enabled EFI)
From the log:
00:00:04.246238 Guest OS type: 'Windows7_64'
From the Virtualbox manual:
Windows 7 guests are unable to boot with the Oracle VM VirtualBox EFI implementation.
Looks like this VM is DOA.
fth0
Volunteer
Posts: 5668
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: Configuration error: Querying "BootDevice0" as a string failed (VERR_CFGM_VALUE_NOT_FOUND)

Post by fth0 »

Let me guess: You've executed the following command in the past:

Code: Select all

VBoxManage setextradata global "VBoxInternal/Devices/pcbios/0/Config/LanBootRom" "C:\Users\rena2019\.VirtualBox\TFTP\virtio-net.isarom"
Since you've made this setting global (and not per VM), it is injected into all your VMs, and any VM configured to use the VirtualBox UEFI will abort with the error you've encountered. Use the following commands to remove the global setting and to add it only to the VMs you need it for:

Code: Select all

VBoxManage setextradata global "VBoxInternal/Devices/pcbios/0/Config/LanBootRom"
VBoxManage setextradata "VM name" "VBoxInternal/Devices/pcbios/0/Config/LanBootRom" "C:\Users\rena2019\.VirtualBox\TFTP\virtio-net.isarom"
rena2019
Posts: 3
Joined: 19. Oct 2021, 16:05

Re: Configuration error: Querying "BootDevice0" as a string failed (VERR_CFGM_VALUE_NOT_FOUND)

Post by rena2019 »

fth0 wrote:Let me guess: You've executed the following command in the past:

Code: Select all

VBoxManage setextradata global "VBoxInternal/Devices/pcbios/0/Config/LanBootRom" "C:\Users\rena2019\.VirtualBox\TFTP\virtio-net.isarom"
Since you've made this setting global (and not per VM), it is injected into all your VMs, and any VM configured to use the VirtualBox UEFI will abort with the error you've encountered. Use the following commands to remove the global setting and to add it only to the VMs you need it for:

Code: Select all

VBoxManage setextradata global "VBoxInternal/Devices/pcbios/0/Config/LanBootRom"
VBoxManage setextradata "VM name" "VBoxInternal/Devices/pcbios/0/Config/LanBootRom" "C:\Users\rena2019\.VirtualBox\TFTP\virtio-net.isarom"
YESSSSSSSSSSSSSSSSSSSSSS! Thanks a lot!!!! VM is booting after executing VBoxManage setextradata global "VBoxInternal/Devices/pcbios/0/Config/LanBootRom
Post Reply