[SOLVED] 64-bits UEFI support in emulators

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Shibata
Posts: 9
Joined: Mon Jan 23, 2012 7:16 pm

[SOLVED] 64-bits UEFI support in emulators

Post by Shibata »

Hi,
Has anyone successfully used an emulator with Long Mode UEFI support? I wanted UEFI for testing (and I have no UEFI machine), but can't get a emulator working. Virtualbox doesn't support Long Mode in my computer and qemu doesn't boot (only shows a black screen). I'm using the UEFI image provided in qemu site (http://wiki.qemu.org/Testing), using "qemu-system-i386 -bios uefi_bios.bin -hda efi.disk" and "qemu-system-x86_64 -bios uefi_bios.bin -hda efi.disk", but neither work.
Last edited by Shibata on Sun Sep 16, 2012 4:22 pm, edited 1 time in total.
User avatar
turdus
Member
Member
Posts: 496
Joined: Tue Feb 08, 2011 1:58 pm

Re: 64-bits UEFI support in emulators

Post by turdus »

Yes, VirtualBox does it reasonably good. Not perfect, but it will do what you want. If you can't get VB to do so, read manuals or forums. Shouldn't be more than creating a 64 bit vm and checking "EFI support" in it's configuration window.
Shibata
Posts: 9
Joined: Mon Jan 23, 2012 7:16 pm

Re: 64-bits UEFI support in emulators

Post by Shibata »

turdus wrote:Shouldn't be more than creating a 64 bit vm and checking "EFI support" in it's configuration window.
I can't use 64-bit in Virtualbox. From the Vb FAQ:

Code: Select all

Q: Does VB support 64 bit guests?
A: Support for 64 bit guests was introduced at version 2.0.0. If you wish to create 64 bit guests then we recommend that you upgrade to the latest version. Note that VirtualBox also supports 64-bit guest operating systems, under the following conditions:
You need a 64-bit processor with hardware virtualization support (see User Manual chapter 1.2, Software vs. hardware virtualization (VT-x and AMD-V), page 10) and a 64-bit host operating system.
NOTE: Since version 2.1.0, you can run 64 bit Guests while running a 32 bit Host. The prior requirement for Operating System is only for version 2.0.x. You still need the proper hardware.
I don't have a 64 bit machine and I don't have hardware virtualization. Even if I had, I would prefer qemu or bochs.

[EDIT:]
I can't believe how stupid I am... I've been trying to get the qemu image working for two days... Now I tried the OVMF image from https://sourceforge.net/apps/mediawiki/ ... title=OVMF and it works fine! Thanks for trying to help!
[/EDIT]
Post Reply