VirtualBox EFI PXE Boot
-
I built a test environment for FOG in VirtualBox and have everything working. I am trying to figure out how to get a EFI VM to PXE boot with Virutalbox. This is set on a Internal Network.
-
Not possible, Virtual Box cannot boot pxe in efi, you have to enable legacy for image/deploy actions, after that you can enable efi again for the case you are deploying an efi image.
Sounds like there is an workaround maybe…:
https://forums.virtualbox.org/viewtopic.php?f=1&t=65463Hello, one partial solution is to initiate ipxe.efi, from the EFI shell (can be done automatically with startup.nsh), the solution is not complete because at this point, ipxe is not capable of chainload another EFI executable, only some image types, like Linux kernels with EFI STUB, can be loaded, therefore cannot load SYSLinux (syslinux.efi), GRUB2 (grubx64.efi) or any other EFI executable, but is enough to boot any recent Linux distribution, WINPE (through wimboot, abother part of the ipxe project) and some other utilities (like memtest86.efi). The capacity to chainload another EFI executable is being developed for ipxe and syslinux. GRUB2 EFI is the only EFI loader with network capacity that I found to be able to chainload another EFI executable, unfortunately cannot initiate network access in most machines when executed locally (it works perfectly when executed from network). Best regards, Diego.
Regards X23
-
@x23piracy
How would I enable legacy for image/deploy actions? I am new to using FOG. -
@imagingmaster21 if you have setup your dhcp to enable both (legacy & efi) you just need to disable efi for the vm and then network boot. (Look at the screenshot i posted).
-
I am not seeing a screenshot?
-
-
@x23piracy
Okay, here is how I have it configured in my DHCP configuration file on my server, I think it is correct, but correct me if I am wrong:
I was looking at a few links on how it should be configured in DHCP for FOG and I referred to this one below:
https://wiki.fogproject.org/wiki/index.php?title=BIOS_and_UEFI_Co-Existence -
@imagingmaster21 Your dhcp.conf file is wrong.
similar to the link provided use example 1 as your base configuration: https://wiki.fogproject.org/wiki/index.php?title=BIOS_and_UEFI_Co-Existence#Example_1
You have no subnet configuration, next server and so many other your dhcp server will not be happy with that config file.
-
@george1421
I got it fixed, seems to be working.