VBoxHardenedLoader icon indicating copy to clipboard operation
VBoxHardenedLoader copied to clipboard

VBoxVgaDxe Module !

Open Whibelf2 opened this issue 2 years ago • 6 comments

UEFI support need binary patch of VBoxVgaDxe module in VBoxEFI64 file. See http://www.kernelmode.info/forum/viewtopic.php?p=27460#p27460

Originally posted by @hfiref0x in https://github.com/hfiref0x/VBoxHardenedLoader/issues/42#issuecomment-449647700

Hello since this project is not updated for a long time, im try make some changes in vbox source and compile it by myself, changed all names and PCI IDs but now im stuck in VBoxVgaDxe module, have you some tips how i modify VBoxVgaDxe inside of VBoxEFI64.fd and compile it ?

Any tips is appreciated.

Whibelf2 avatar Jun 28 '22 02:06 Whibelf2

Use UEFITool

hfiref0x avatar Jun 28 '22 14:06 hfiref0x

Thanks for attention, you apply patch directly in VBoxEFI64.fd file ?

Or you compile it from source using edksetup.bat ?

Whibelf2 avatar Jun 28 '22 15:06 Whibelf2

UEFITool is a cross-platform C++/Qt program for parsing, extracting and modifying UEFI firmware images. It supports parsing of full BIOS images starting with the flash descriptor or any binary files containing UEFI volumes.

There is a guide how to modify vbox efi image on kernelmode.info, however since this site archieved I can't find it using old links. You have to find it yourself somewhere in VBoxHardenedLoader thread.

hfiref0x avatar Jun 29 '22 00:06 hfiref0x

Hello i find it on kernelmode.info https://www.kernelmode.info/forum/viewtopic62cf-2.html?f=11&t=3478&start=50#p27460

Maybe im loss some part, after modify VBoxEFI64.fd, guest OS is stuck on UEFI Shell, maybe im corrupted binary on HIEW or UEFITool, able to see guest system verbose boot starting but still stuck on UEFI Shell.

Whibelf2 avatar Jun 29 '22 22:06 Whibelf2

Nice, found the issue and solution

The issue: in stage when you extract PE32 Image using "UEFITool" it extract file with extension .bin , but after you patch it on "HIEW" and try Replace Body in "UEFITool" it corrupt firmware in some way

The trick is rename extracted file in first stage:

EXTRACTEDFILE.bin to EXTRACTEDFILE.efi

Whibelf2 avatar Jun 30 '22 03:06 Whibelf2

Im almost finish my journey to Fix source code of VirtualBox, The last module i need to patch is "VGA BIOS" tried change it on source but it still show "Oracle VM VGA BIOS"

Any tips to patch this module is apreciated !

Whibelf2 avatar Jun 30 '22 03:06 Whibelf2