How to optimize my virtualbox

Discussions related to using VirtualBox on Windows hosts.
Post Reply
Royee
Posts: 6
Joined: 2. May 2022, 12:30

How to optimize my virtualbox

Post by Royee »

Hello,
I have installed the latest VirtualBox, but I find my client Linux is very slow even stuck sometimes.

My host OS is Win10 64, here's my physical configuration:
CPU: 12th Gen Intel i7-12700H (14 Cores)
Memory: 32GB

And I provision my client Ubuntu 22.04 as follows:
Preprocess: 2 Cores
Memory allocation: 6G
Enable PAE/NX
Enable Nested VT-x/AMD-V
Paravirtualization Interface: KVM
Hardware Virtualization: Enable Nested Paging
Video Memory: 128G
Enable 3D Acceleration

Is there any optimization on the configuration of VB?

Thanks.
AndyCot
Posts: 297
Joined: 29. Feb 2020, 03:04

Re: How to optimize my virtualbox

Post by AndyCot »

Check if you have Hyper-V enabled and if you do then you have two options:
1) Use the 6.1.35 test builds. See viewtopic.php?f=6&t=106292
2) Disable Hyper-V. See viewtopic.php?f=25&t=99390


If you use WSL2 or Docker then you will need Hyper-V enabled, so you will have to use 6.1.35 test build.
Royee
Posts: 6
Joined: 2. May 2022, 12:30

Re: How to optimize my virtualbox

Post by Royee »

Thank you for your fast reply.
Hyper-V is disabled on my host.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: How to optimize my virtualbox

Post by mpack »

Talking in generalities is useless. Concrete data is needed.

Pick a VM and provide a VM log file. Make sure the VM is fully shut down, then right click it in the manager UI. Select "Show Log" and save "VBox.log" (no other file) to a zip file. Attach the zip here.
Royee
Posts: 6
Joined: 2. May 2022, 12:30

Re: How to optimize my virtualbox

Post by Royee »

Here it is. Thank you for this checking.
Attachments
Ubuntu-2022-06-19-21-22-53.7z
(32.14 KiB) Downloaded 8 times
multiOS
Volunteer
Posts: 829
Joined: 14. Sep 2019, 16:51
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: WIN11,10, 7, Linux (various)
Location: United Kingdom

Re: How to optimize my virtualbox

Post by multiOS »

These lines from the Log:

Code: Select all

00:00:02.286629 ********************* End of CFGM dump **********************
00:00:02.286727 HM: HMR3Init: Attempting fall back to NEM: VT-x is not available
00:00:02.302227 NEM:  info: Found optional import WinHvPlatform.dll!WHvQueryGpaRangeDirtyBitmap.
00:00:02.302275 NEM: WHvCapabilityCodeHypervisorPresent is TRUE, so this might work...
confirm that Hyper-V is still enabled on your Windows Host, so you need to follow the guide linked in AndyCot's earlier post while using VirtualBox 6.1.34.
Post Reply