How to enable Ext. features in VirtualBox?

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
wishedtobe
Member
Member
Posts: 25
Joined: Sat May 04, 2024 7:48 am
Libera.chat IRC: wishedtobe

How to enable Ext. features in VirtualBox?

Post by wishedtobe »

e.g. 1GB page. Since I saw these labels in the log file, there must be some means to activate this to some extent.
Octocontrabass
Member
Member
Posts: 5571
Joined: Mon Mar 25, 2013 7:01 pm

Re: How to enable Ext. features in VirtualBox?

Post by Octocontrabass »

Is your host Windows? If so, try disabling Hyper-V.
wishedtobe
Member
Member
Posts: 25
Joined: Sat May 04, 2024 7:48 am
Libera.chat IRC: wishedtobe

Re: How to enable Ext. features in VirtualBox?

Post by wishedtobe »

Octocontrabass wrote: Sun Nov 03, 2024 5:51 pm Is your host Windows? If so, try disabling Hyper-V.
It doesn't work. As far as I can see, once this line appears in the log, the large page can be enabled.

Code: Select all

HM: HMR3Init: Attempting fall back to NEM: VT-x is not available
From this perspective, it's VT-x that causes its incompatibility, not Hyper-v. But how can Vbox run without virtualization?
wishedtobe
Member
Member
Posts: 25
Joined: Sat May 04, 2024 7:48 am
Libera.chat IRC: wishedtobe

Re: How to enable Ext. features in VirtualBox?

Post by wishedtobe »

https://docs.oracle.com/en/virtualizati ... ifyvm.html

Code: Select all

--largepages on|off: If hardware virtualization and nested paging are enabled, for Intel VT-x only, an additional performance improvement of up to 5% can be obtained by enabling this setting. This causes the hypervisor to use large pages to reduce TLB use and overhead.
I wonder if this is helpful.
Octocontrabass
Member
Member
Posts: 5571
Joined: Mon Mar 25, 2013 7:01 pm

Re: How to enable Ext. features in VirtualBox?

Post by Octocontrabass »

wishedtobe wrote: Mon Nov 25, 2024 12:57 amAs far as I can see, once this line appears in the log, the large page can be enabled.
You mean can't be enabled, right?
wishedtobe wrote: Mon Nov 25, 2024 12:57 amBut how can Vbox run without virtualization?
VirtualBox can't run 64-bit guests without hardware virtualization. If VT-x isn't available, VirtualBox is using Hyper-V.
wishedtobe
Member
Member
Posts: 25
Joined: Sat May 04, 2024 7:48 am
Libera.chat IRC: wishedtobe

Re: How to enable Ext. features in VirtualBox?

Post by wishedtobe »

Octocontrabass wrote: Mon Nov 25, 2024 12:16 pm You mean can't be enabled, right?
I won't focus on the logs. Only by enabling it(1gb) myself, by software operation, can I know if he actually enabled it or not.
wishedtobe
Member
Member
Posts: 25
Joined: Sat May 04, 2024 7:48 am
Libera.chat IRC: wishedtobe

Re: How to enable Ext. features in VirtualBox?

Post by wishedtobe »

It's of no avail. Whether I have disabled Hv or not, it gives me a VERR_PAGE_TABLE_NOT_PRESENT if PSE flag set in PDPTE.
Octocontrabass
Member
Member
Posts: 5571
Joined: Mon Mar 25, 2013 7:01 pm

Re: How to enable Ext. features in VirtualBox?

Post by Octocontrabass »

Is Hyper-V actually disabled? According to some posts on the VirtualBox forums, Hyper-V may still be enabled even after you follow the normal procedure for disabling it.
wishedtobe
Member
Member
Posts: 25
Joined: Sat May 04, 2024 7:48 am
Libera.chat IRC: wishedtobe

Re: How to enable Ext. features in VirtualBox?

Post by wishedtobe »

wishedtobe wrote: Mon Nov 25, 2024 2:26 am https://docs.oracle.com/en/virtualizati ... ifyvm.html

Code: Select all

--largepages on|off: If hardware virtualization and nested paging are enabled, for Intel VT-x only, an additional performance improvement of up to 5% can be obtained by enabling this setting. This causes the hypervisor to use large pages to reduce TLB use and overhead.
I wonder if this is helpful.
Unfortunately, this function is enabled by default, and it's apparently useless.

Code: Select all

Vboxmanage modifyvm $vm --cpuidset
This command is used to pretend that 1GB was already enabled, but of course it didn't work.
wishedtobe
Member
Member
Posts: 25
Joined: Sat May 04, 2024 7:48 am
Libera.chat IRC: wishedtobe

Re: How to enable Ext. features in VirtualBox?

Post by wishedtobe »

https://forums.virtualbox.org/viewtopic.php?p=515565
This log message indicates that the host OS already refuses to provide a 2 MB "large" page and forces VirtualBox to allocate smaller 4 kB pages, which is somewhat unusual that early.
So "largepage" is not 1gb page.😂The plan already exists, but the functionality is not yet complete, so there's a

Code: Select all

Page1GB - 1 GB large page                               = 0 (1)
wishedtobe
Member
Member
Posts: 25
Joined: Sat May 04, 2024 7:48 am
Libera.chat IRC: wishedtobe

Re: How to enable Ext. features in VirtualBox?

Post by wishedtobe »

Octocontrabass wrote: Sun Nov 03, 2024 5:51 pm Is your host Windows? If so, try disabling Hyper-V.
It works correctly on my Linux machine within VirtualBox.
This may be the key. Virtual box + Windows + 1gb paging may not be supported.
wishedtobe
Member
Member
Posts: 25
Joined: Sat May 04, 2024 7:48 am
Libera.chat IRC: wishedtobe

Re: How to enable Ext. features in VirtualBox?

Post by wishedtobe »

wishedtobe wrote: Sat Dec 07, 2024 8:30 pm
It works correctly on my Linux machine within VirtualBox.
This may be the key. Virtual box + Windows + 1gb paging may not be supported.
The same error also occurs on Linux. Perhaps he/she is using an old version of VirtualBox.
Post Reply