Page 1 of 1

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

Posted: 19. Oct 2021, 16:13
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))

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

Posted: 19. Oct 2021, 17:00
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.

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

Posted: 20. Oct 2021, 08:55
by rena2019
here is the zipped log file

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

Posted: 20. Oct 2021, 16:49
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.

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

Posted: 21. Oct 2021, 03:12
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"

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

Posted: 21. Oct 2021, 07:54
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