Hi there,
I tried installing WSL-2 to run Laravel on ubuntu and since then my vagrant machine and other ubuntu based VMs are maxing out their memory and crashing when before they never crashed.
I disabled Hyper-V and uninstalled WSL-2 and disabled it. No joy.
Reinstalled windows and I'm still facing the same issue.
Settings on VB:
VB Version 6.1.34 r150636 (QT5.6.2)
Base Memory 4096 MB
2 CPU
Execution Cap 100%
100GB vdi
Windows Host:
Windows 10 Pro 64-bit 21H2
OS Build 19044.1766
Processor: 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz 2.80 GHz
RAM: 32GB
Attached is:
* VB terminal screen shot
* Log from the VM
* Screenshot of memory use for a single VM running and nothing being executed on it.
Any advice would be great or if there is more info you need.
EDIT:
This is the logs from a VM created with Ubuntu 22.04 running on it. Not a vagrant VM. The Vagrant VM running Homestead was deleted when I re-installed Windows.
Crashing with High memory usage Virtualbox Headless Frontend
-
ch-dv-0111
- Posts: 2
- Joined: 12. Jul 2022, 12:43
Crashing with High memory usage Virtualbox Headless Frontend
- Attachments
-
- VB memory usage.PNG (10.35 KiB) Viewed 2923 times
-
VBox - Copy (2).log- (88.64 KiB) Downloaded 6 times
-
- VM error.PNG (56.4 KiB) Viewed 2923 times
-
scottgus1
- Site Moderator
- Posts: 20945
- Joined: 30. Dec 2009, 20:14
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows, Linux
Re: Crashing with High memory usage Virtualbox Headless Frontend
The log shows that the underlying Hyper-V enabled by WSL2 is still enabled. See HMR3Init: Attempting fall back to NEM (Hyper-V is active)
Re: Crashing with High memory usage Virtualbox Headless Frontend
If you need to keep WSl2 enabled and run Virtualbo then try the latest 6.1.35 test build. Make sure you keep all test build files you download in case you need them as Oracle do not keep them for future downloads once updated.
My testing allows me to run WSL2 and VirtualBox with Hyper-V enabled with VirtualBox-6.1.35-152223-Win.exe insallad.
My testing allows me to run WSL2 and VirtualBox with Hyper-V enabled with VirtualBox-6.1.35-152223-Win.exe insallad.
-
ch-dv-0111
- Posts: 2
- Joined: 12. Jul 2022, 12:43
Re: Crashing with High memory usage Virtualbox Headless Frontend
I had followed these instructions previously with no avail (bcdedit, DISM, control panel setting, features etc). Thank you scottgus1 for pointing out the log info I was looking for to know if Hyper-V was still enabled or not. That helped my investigation.scottgus1 wrote:The log shows that the underlying Hyper-V enabled by WSL2 is still enabled. See HMR3Init: Attempting fall back to NEM (Hyper-V is active)
I ended up following this guide {link removed by mod} and the step that worked for me was to turn off secure boot. Even though I only partially followed it, it was enough.
The Steps I took that resolved it were:
1. I entered the BIOS and turned off secure boot.
2. Turning on I was presented with the request to enter my BitLocker recovery key but instead I skipped the drive and returned to the troubleshooting section and entered the BIOS again
3. Turned back on secure boot.
4. restarted and Hyper-V was fully removed this time
As I don't want to keep WSL2 at all I just fully removed it.AndyCot wrote:If you need to keep WSl2 enabled and run Virtualbo then try the latest 6.1.35 test build. Make sure you keep all test build files you download in case you need them as Oracle do not keep them for future downloads once updated.
My testing allows me to run WSL2 and VirtualBox with Hyper-V enabled with VirtualBox-6.1.35-152223-Win.exe insallad.
Thanks for the help everyone!
Last edited by mpack on 14. Jul 2022, 10:58, edited 1 time in total.
Reason: Link to low quality advice / adware site removed.
Reason: Link to low quality advice / adware site removed.
-
mpack
- Site Moderator
- Posts: 39134
- Joined: 4. Sep 2008, 17:09
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Mostly XP
Re: Crashing with High memory usage Virtualbox Headless Frontend
Secure boot has nothing to do with hardware virtualization.
-
fth0
- Volunteer
- Posts: 5690
- Joined: 14. Feb 2019, 03:06
- Primary OS: Mac OS X other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Linux, Windows 10, ...
- Location: Germany
Re: Crashing with High memory usage Virtualbox Headless Frontend
Well, yes and no. There is a connection between Secure Boot and Hyper-V you may not be aware of:mpack wrote:Secure boot has nothing to do with hardware virtualization.
Several of the Windows security functions (e.g. HVCI), which use the Hyper-V hypervisor, disable themselves when Secure Boot is disabled, because the Virtualization-Based Security (VBS) isn't achievable then. Personally, I never recommended disabling Secure Boot, because it disables even more Windows security functionality than "only" the hypervisor-based ones.
-
scottgus1
- Site Moderator
- Posts: 20945
- Joined: 30. Dec 2009, 20:14
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows, Linux
Re: Crashing with High memory usage Virtualbox Headless Frontend
As far as I can see, the Petri link that ch-dv-0111 posted, which is also in the "Hyper-V is Active" tutorial, recommend only a temporary turning off of Secure Boot, but to turn it on again later:
I wonder if this Secure Boot thing is the reason why a few folks report being unable to disable Hyper-V on their hosts at times despite going through the tutorial.if Secure Boot is enabled, you’ll be prevented from removing Hyper-V because some Windows security features depend on virtualization.
How to Temporarily Disable Secure Boot
To work around this issue, temporarily disable Secure Boot. How you access UEFI settings is system dependent but it usually involves rebooting and pressing a designated key when the system starts, like F12 or ESC. In the UEFI settings, if the system supports Secure Boot, you should find an option to turn it off.
Once you’ve disabled Secure Boot, restart the system. And then restart it again. Now check the status of Hyper-V using systeminfo.exe. You should see that Hyper-V has been disabled. Reboot once more and reenable Secure Boot.
-
fth0
- Volunteer
- Posts: 5690
- Joined: 14. Feb 2019, 03:06
- Primary OS: Mac OS X other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Linux, Windows 10, ...
- Location: Germany
Re: Crashing with High memory usage Virtualbox Headless Frontend
I have a theory why this works despite turning Secure Boot on again:scottgus1 wrote:As far as I can see, the Petri link that ch-dv-0111 posted, which is also in the "Hyper-V is Active" tutorial, recommend only a temporary turning off of Secure Boot, but to turn it on again later
In (relatively
I don't think so, because having Secure Boot enabled doesn't stop me from disabling all Hyper-V usages. I'd rather attribute the users' problems to the independence of HVCI (Memory Integrity) and the hypervisorlaunchtype setting. The latter doesn't prevent the hypervisor from being used in all cases, as I have verified several times myself.scottgus1 wrote:I wonder if this Secure Boot thing is the reason why a few folks report being unable to disable Hyper-V on their hosts at times despite going through the tutorial.