How to get Extended Page Tables in Guest

Discussions related to using VirtualBox on Windows hosts.
Post Reply
sixeyes
Posts: 12
Joined: 7. Nov 2019, 19:55
Primary OS: MS Windows 10
VBox Version: OSE other
Guest OSses: Windows 10 Pro

How to get Extended Page Tables in Guest

Post by sixeyes »

I have a Windows 10 host and a guest running Windows 10 Pro.

I'm trying to run Android Studio but the phone emulator wants to install Intel's HAXM. The installer for HAXM refuses because EPT (Extended Page Tables) isn't enabled.

From my vbox.log I can see that EPT is supported by the host but not by the guest:

Code: Select all

*********************** VT-x features ***********************
Nested hardware virtualization - VMX features
  Mnemonic - Description                                  = guest (host)
  ...
  Ept - Extended Page Tables                              = 0 (1)
  ...
What do I need to do to get EPT enabled for the guest?

I have an Intel i5-9600K processor.
Attachments
VBoxLogs.zip
Log files
(208.75 KiB) Downloaded 8 times
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 to get Extended Page Tables in Guest

Post by BillG »

I doubt that you will ever get that to work. Things like EPT and VT-x are not usually passed through to a vm. I would run it on the host.
Bill
fth0
Volunteer
Posts: 5677
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: How to get Extended Page Tables in Guest

Post by fth0 »

BillG wrote:Things like EPT and VT-x are not usually passed through to a vm.
VirtualBox passes VT-x into the VM (with Nested VT-x/AMD-V enabled), but not EPT. This is part of the reasons why only VirtualBox and KVM guests are supported.
sixeyes wrote:What do I need to do to get EPT enabled for the guest?
You cannot achieve that (unless you implement it yourself).
sixeyes wrote:I'm trying to run Android Studio but the phone emulator wants to install Intel's HAXM.
You could try using a Linux VM instead, where QEMU/KVM is used instead of Intel HAXM, but others trying something similar experienced early crashes recently.
sixeyes
Posts: 12
Joined: 7. Nov 2019, 19:55
Primary OS: MS Windows 10
VBox Version: OSE other
Guest OSses: Windows 10 Pro

Re: How to get Extended Page Tables in Guest

Post by sixeyes »

Thanks for the info. Perhaps Oracle will implement EPT one day.

I've given up getting the emulator to work. Instead I'm using a physical Android device attached to my VM.
Post Reply