hfiref0x / VBoxHardenedLoader

VirtualBox VM detection mitigation loader
BSD 2-Clause "Simplified" License
919 stars 278 forks source link

Failed to open system bios file #22

Closed Morflol closed 7 years ago

Morflol commented 7 years ago

Hi,

I customised the hidevm_ahci script according to my config with the following :

set vboxman="D:\VirtualBox\VBoxManage.exe" set vmscfgdir=C:\Users\xxxx.VirtualBox\

Then i replaced the %1 in all the lines by my VM's name "test" as following : %vboxman% setextradata "KO" "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSVendor" "Asus" etc....

Now when i try to boot my VM, i have the following error :

Failed to open system BIOS file 'C:\Users\xxxx.VirtualBox\pcbios.bin' (VERR_FILE_NOT_FOUND).

Error code: E_FAIL (0x80004005) Component: ConsoleWrap Interface : IConsole {872da645-4a9b-1727-bee2-5585105b9eed}

Any ideas?

Thanks for your help

hfiref0x commented 7 years ago

Hello, What is inside xxxx.VirtualBox and why you replaced %1 at all. This is parameter to batch file.

Morflol commented 7 years ago

i just replaced my user by xxxx but the path is correct, the Virtualbox config files are in set vmscfgdir=C:\Users\xxxx.VirtualBox\ (the missing backslash is a typo i did but in the script the path is correct). I replaced the %1 because i guessed %1 is a parameter where i had to put my VM's name. When i left the %1 it was saying that there were no VM named "" or something like that.

hfiref0x commented 7 years ago

And where is pcbios.bin?

Morflol commented 7 years ago

That, i wish i knew, sadly it's not in the folder.

hfiref0x commented 7 years ago

Well actually it pointed on problem with error code VERR_FILE_NOT_FOUND. All paths must be valid and files must be available.

Morflol commented 7 years ago

Yeah, i assume the script modified the VM's config so it probably affected either the bios path or the bios file itself. My issue is that i can't locate that file so i can't do much. Also what should that %1 contain if i didn't modify that variable ?

hfiref0x commented 7 years ago

Omg, how about redownload it?

Morflol commented 7 years ago

How would it solve the problem, i just edited the 2 path at the beginning of the file, then it said it couldn't find the VM called "" (where the %1 variable was supposed to contain something). So i assumed i would put my Vm's name instead of that %1, and now it gives me that bios file error, i think we don't understand each other :(

I'll re-download and try again to check if i'm missing something as you suggested.

hfiref0x commented 7 years ago

td;dr you don't know how to work with command line, yes?And you missed step by step guide. What do you want from me then?

Morflol commented 7 years ago

I do know how to work with command lines, it's just when i launched your script after editing the 2 path lines it didn't work, so i tried to fix but i guess i did something wrong, i'll just redo the whole thing tonight, we'll see if i can fix it.

Thanks for helping tho.