How the heck do I get EFI to boot an OS install CD?

This is for discussing general topics about how to use VirtualBox.
jdmulloy
Posts: 10
Joined: 11. Nov 2009, 21:22
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: Win XP, Ubuntu, Fedora, Win 7

How the heck do I get EFI to boot an OS install CD?

Post by jdmulloy »

I don't understand how EFI works. All it does is boot into a useless shell. I've tried the Windows 8 DVD ISO as well as Fedora 16. Am I missing something? Is there some command I have to type in? Why doesn't EFI just boot from the DVD drive like a real BIOS?
BillG
Volunteer
Posts: 5102
Joined: 19. Sep 2009, 04:44
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows 10,7 and earlier
Location: Sydney, Australia

Re: How the heck do I get EFI to boot an OS install CD?

Post by BillG »

Bill
wearywanderer
Posts: 3
Joined: 11. Apr 2011, 11:13
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Windows Server 2008 R2 x64

Re: How the heck do I get EFI to boot an OS install CD?

Post by wearywanderer »

I'm trying to create a EFI guest running Windows Server 2008 R2 SP1 on a Windows 7 Ent SP1 host with VirtualBox 4.1.18

Screenshot of the settings of the VM showing EFI enabled:
1.JPG
1.JPG (48.03 KiB) Viewed 237206 times
Screenshot of the settings of the VM showing VT-x enabled:
2.JPG
2.JPG (31.91 KiB) Viewed 237206 times
Screenshot of the settings of the VM showing the image loaded onto the CD/DVD Drive:
3.JPG
3.JPG (49.03 KiB) Viewed 237206 times
contd...
wearywanderer
Posts: 3
Joined: 11. Apr 2011, 11:13
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Windows Server 2008 R2 x64

Re: How the heck do I get EFI to boot an OS install CD?

Post by wearywanderer »

When I start the VM it asks me to "Press any key to boot from CD or DVD..."
4.JPG
4.JPG (21.56 KiB) Viewed 237206 times
No matter how hard or how often I'm hitting it boots to the EFI Shell
Based on the Microsoft Technet article, Installing Windows to an EFI-Based Computer (http://technet.microsoft.com/en-us/libr ... 1(v=ws.10)) I "select the device with the Windows installation media, and then start the EFI boot application":
5.JPG
5.JPG (83.97 KiB) Viewed 237206 times
But it does nothing:
6.JPG
6.JPG (18.82 KiB) Viewed 237206 times
What am I doing wrong?
BillG
Volunteer
Posts: 5102
Joined: 19. Sep 2009, 04:44
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows 10,7 and earlier
Location: Sydney, Australia

Re: How the heck do I get EFI to boot an OS install CD?

Post by BillG »

I have never tried it, but this is what the manual says.

Note that the VirtualBox EFI support is experimental and will be enhanced as EFI matures and becomes more widespread. While Mac OS X and Linux guests are known to work fine, Windows guests are currently unable to boot with the VirtualBox EFI implementation.
Bill
Kennyngston
Posts: 2
Joined: 26. May 2013, 19:22

Re: How the heck do I get EFI to boot an OS install CD?

Post by Kennyngston »

Hi,

I am facing the same issue.

I'm trying to boot a Win8 (64 bit) ISO (bootable ISO9660) on VM 4.2.12 with EFI, and I get the shell as well.
Is there any progress with this issue?

I get this error, while the virtual machine is booting:
I get this error while VM boots
I get this error while VM boots
win8isoerror.png (22.49 KiB) Viewed 236523 times
This is the shell, while the ISO is added as storage to the VM.
(BLK1:\ ls produces the same output as fs0:\ ls, just didn't fit in the screen shot)
efi shell
efi shell
win8isoefishell.png (33.69 KiB) Viewed 236523 times
The boot file is in fact on the ISO:
bootx64.efi
bootx64.efi
win8isoefibootfile.png (18.64 KiB) Viewed 236523 times
In the motherboard config I have EFI enabled with 1GB RAM (tried with 4 as well), on the processor tab I have PAE/NX enabled, on the acceleration tab I have enabled the VT-x/AMD-V and Nested Paging (if needed I can attach screenshots as well).


Side note: the ISO boots when I'm not using EFI on the VM.

Is there anything I'm doing wrong?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: How the heck do I get EFI to boot an OS install CD?

Post by Perryg »

@Kennyngston,

You didn't read the last post before you added this.

Here is the link to the section in the users manual if you don't believe what BillG said.
http://www.virtualbox.org/manual/ch03.html#idp18308032
Kennyngston
Posts: 2
Joined: 26. May 2013, 19:22

Re: How the heck do I get EFI to boot an OS install CD?

Post by Kennyngston »

Perryg wrote:@Kennyngston,

You didn't read the last post before you added this.

Here is the link to the section in the users manual if you don't believe what BillG said.
Actually I did, I was just hoping for an implementation since July :)

Regards,
Kenny
tom12454
Posts: 4
Joined: 21. May 2015, 09:19
Primary OS: Ubuntu other
VBox Version: OSE self-compiled
Guest OSses: Linux, FreeBSD

Re: How the heck do I get EFI to boot an OS install CD?

Post by tom12454 »

This is how I got Kubuntu 15.04, 64 bit running an a VM with EFI enabled:

Settings:
* System -> Motherboard -> Extended Features: Enable EFI
* Boot HDD must be attached to SATA controller! IDE, SCSI or SAS will not work (bug report: Ticket #14142)

EFI Boot Screen:

When the UEFI boot screen appears, it should show blkX: and fsX: devices. fsX: are file systems accessible by the boot loader. If the EFI boot partition does not appear as fsX:, the boot manager will not be able to boot. This will happen if the EFI partition is on a disk attached to an IDE, SCSI or SAS controller (see above).

Boot from the EFI boot shell (for Ubuntu system, others may be different):

efi\ubuntu\grubx64.efi

Once you know what to boot (in my case: efi\ubuntu\grubx64.efi), put this line into a new file startup.nsh in the root directory of the EFI file system. Then, the EFI boot loader will boot it automatically after 5s.
Lei12
Posts: 2
Joined: 26. Apr 2016, 12:42

Re: How the heck do I get EFI to boot an OS install CD?

Post by Lei12 »

tom12454 wrote:
* Boot HDD must be attached to SATA controller!
How can we do that ?
In storage, Host Drive 'E:' is attached to Controller: IDE and it cannot be changed
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: How the heck do I get EFI to boot an OS install CD?

Post by mpack »

Lei12 wrote:In storage, Host Drive 'E:' is attached to Controller: IDE and it cannot be changed
Sure it can, provided the VM is shut down.
Lei12
Posts: 2
Joined: 26. Apr 2016, 12:42

Re: How the heck do I get EFI to boot an OS install CD?

Post by Lei12 »

With Boot HDD effectively attached to SATA controller,
after trying Debian 8.4.0 (64bit), Ubuntu 16.04 LTS (64bit) and a Ubuntu 32bit version,
I could only get the VM installed with a Kubuntu 16.04 LTS (64bit),
with no need to deal with any of the previous UEFI menu.

All 3 first attempts did not succeed since startup.nsh file access permission was denied.
Rootman
Posts: 251
Joined: 1. Oct 2012, 18:29

Re: How the heck do I get EFI to boot an OS install CD?

Post by Rootman »

I have setup a Windows 10 EFI boot without issue.

Just as a reminder, you also have to remember you can only EFI boot a 64 bit OS on a 64 bit processor, 32 bit OS will not work.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: How the heck do I get EFI to boot an OS install CD?

Post by socratis »

Just out of curiosity... Why do you have to boot from EFI? Isn't BIOS good enough? Especially when VBox says it's not supported?
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Rootman
Posts: 251
Joined: 1. Oct 2012, 18:29

Re: How the heck do I get EFI to boot an OS install CD?

Post by Rootman »

socratis wrote:Just out of curiosity... Why do you have to boot from EFI? Isn't BIOS good enough? Especially when VBox says it's not supported?
Just to test it, there were previous messages just like the OP's - "How do I boot EFI" or "Does EFI work?" I did it to prove it works, and it does. I seldom use the VM as Windows 10 still has a lot of performance issues under Virtualbox.

I did a Win 7 updated Win 10 that boots MBR and a previous 32 bit Win 10 that's MBR. Just wanted to prove it works.
Locked