Page 1 of 1

How to enable Ext. features in VirtualBox?

Posted: Sun Nov 03, 2024 12:39 am
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.

Re: How to enable Ext. features in VirtualBox?

Posted: Sun Nov 03, 2024 5:51 pm
by Octocontrabass
Is your host Windows? If so, try disabling Hyper-V.

Re: How to enable Ext. features in VirtualBox?

Posted: Mon Nov 25, 2024 12:57 am
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?

Re: How to enable Ext. features in VirtualBox?

Posted: Mon Nov 25, 2024 2:26 am
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.

Re: How to enable Ext. features in VirtualBox?

Posted: Mon Nov 25, 2024 12:16 pm
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.

Re: How to enable Ext. features in VirtualBox?

Posted: Sat Nov 30, 2024 5:38 am
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.

Re: How to enable Ext. features in VirtualBox?

Posted: Wed Dec 04, 2024 2:16 am
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.

Re: How to enable Ext. features in VirtualBox?

Posted: Fri Dec 06, 2024 12:50 pm
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.

Re: How to enable Ext. features in VirtualBox?

Posted: Sat Dec 07, 2024 7:49 pm
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.

Re: How to enable Ext. features in VirtualBox?

Posted: Sat Dec 07, 2024 8:13 pm
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)

Re: How to enable Ext. features in VirtualBox?

Posted: Sat Dec 07, 2024 8:30 pm
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.

Re: How to enable Ext. features in VirtualBox?

Posted: Sat Dec 14, 2024 10:31 pm
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.