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

This is for discussing general topics about how to use VirtualBox.

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

Postby jdmulloy » 2. Oct 2011, 07:11

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?
jdmulloy
 
Posts: 10
Joined: 11. Nov 2009, 21:22
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: Win XP, Ubuntu, Fedora, Win 7

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

Postby BillG » 2. Oct 2011, 08:20

Bill
BillG
Volunteer
 
Posts: 4184
Joined: 19. Sep 2009, 04:44
Location: Sydney, Australia
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows 7,8,Server

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

Postby wearywanderer » 18. Jul 2012, 18:54

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 160140 times

Screenshot of the settings of the VM showing VT-x enabled:
2.JPG
2.JPG (31.91 KiB) Viewed 160140 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 160140 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?

Postby wearywanderer » 18. Jul 2012, 18:59

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 160140 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 ... 21(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 160140 times

But it does nothing:
6.JPG
6.JPG (18.82 KiB) Viewed 160140 times


What am I doing wrong?
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?

Postby BillG » 19. Jul 2012, 07:08

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
BillG
Volunteer
 
Posts: 4184
Joined: 19. Sep 2009, 04:44
Location: Sydney, Australia
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows 7,8,Server

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

Postby Kennyngston » 26. May 2013, 19:44

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:
win8isoerror.png
I get this error while VM boots
win8isoerror.png (22.49 KiB) Viewed 159457 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)
win8isoefishell.png
efi shell
win8isoefishell.png (33.69 KiB) Viewed 159457 times


The boot file is in fact on the ISO:
win8isoefibootfile.png
bootx64.efi
win8isoefibootfile.png (18.64 KiB) Viewed 159457 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?
Kennyngston
 
Posts: 2
Joined: 26. May 2013, 19:22

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

Postby Perryg » 26. May 2013, 21:05

@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
Perryg
Site Moderator
 
Posts: 34373
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?

Postby Kennyngston » 26. May 2013, 21:16

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
Kennyngston
 
Posts: 2
Joined: 26. May 2013, 19:22

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

Postby tom12454 » 21. May 2015, 09:32

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.
tom12454
 
Posts: 1
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?

Postby Lei12 » 26. Apr 2016, 12:47

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
Lei12
 
Posts: 2
Joined: 26. Apr 2016, 12:42

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

Postby mpack » 26. Apr 2016, 13:17

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.
mpack
Site Moderator
 
Posts: 29834
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?

Postby Lei12 » 2. May 2016, 21:28

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.
Lei12
 
Posts: 2
Joined: 26. Apr 2016, 12:42

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

Postby Rootman » 3. May 2016, 17:19

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.
Rootman
 
Posts: 228
Joined: 1. Oct 2012, 18:29

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

Postby socratis » 3. May 2016, 17:40

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?
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
socratis
Site Moderator
 
Posts: 26025
Joined: 22. Oct 2010, 11:03
Location: Greece
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5

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

Postby Rootman » 3. May 2016, 17:55

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.
Rootman
 
Posts: 228
Joined: 1. Oct 2012, 18:29

Next

Return to Using VirtualBox

Who is online

Users browsing this forum: No registered users and 12 guests