Main Tutorials

VirtualBox running slow and lag on macOS, MacBook Pro

This article shows how to fix VirtualBox 6.1.* running slow on macOS, MacBook Pro with retina display.

Tested with

  • VirtualBox 6.1.22
  • macOS Big Sur 11.1
  • MacBook Pro (16-inch, 2019)
  • Kali Linux, Ubuntu, Debian

1. VirtualBox with more memory, CPU, etc

In VirtualBox, clicks on the Settings icon.

1.1 Increase based memory.

virtualbox increase memory

1.2 Increase CPU processors.

virtualbox increase cpu

1.3 Play around the rest of the settings, or install guest additions and extension packs, restart the VM and see if it works, if yes, congratulation; otherwise, please read on.

2. VirtualBox in Low Resolution

Not sure what is the real cause of the lagging, a high chance it is the VirtualBox does not support the retina 4k display. To fix it, we can start the VirtualBox in low resolution mode.

2.1 Open macOS’s Finder -> Applications -> VirtualBox -> Right clicks and select Show Package Contents.

virtualbox open in low resolution step 1

2.2 Expand the Contents -> Resources -> Find VirtualBox VM -> Right clicks and select Get Info.

virtualbox open in low resolution step 2

2.3 Checked the Open in Low Resolution.

virtualbox open in low resolution step 3

2.4 Done and restart the VM again. It may not fix the lag issue completely; at least now, the VirtualBox performance on macOS is very acceptable.

Kali Linux VM on VirtualBox

Kali Linux VM on VirtualBox

References

About Author

author image
Founder of Mkyong.com, love Java and open source stuff. Follow him on Twitter. If you like my tutorials, consider make a donation to these charities.

Comments

Subscribe
Notify of
12 Comments
Most Voted
Newest Oldest
Inline Feedbacks
View all comments
Martin
2 years ago

Oh wow, I was about to buy Parallels becuase this was so annoying. The “low resolution” really fixed the issue. Thank you so much for sharing

Anonymous
2 years ago

It worked! thank you sir!

Tom
2 years ago

It helped a lot but I’m pretty sure this is not the root cause, real root cause is VirtualBox team DGAF about Mac users.

Kirito
2 years ago

MacOS Monterey
Someone know
Why i don’t see the “low resolution”?

Jan
2 years ago
Reply to  Kirito

Using Kirito’s idea from below:
I went in Terminal to /Applications/VirtualBox.app/Contents/Resources/VirtualBoxVM.app/Contents/
Changed mod of Info.plist so that admin can write. (e.g. chmod 664 Info.plist)
Edited Info.plist using any terminal editor (e.g. vi Info.plist)
Changed the following parameter from true to false: <key>NSHighResolutionCapable</key>     <false/>
saved

cvv
2 years ago
Reply to  Jan

Editing info.plist from the Terminal worked for me on MacOS Monteray e.g.

sudo vi /Applications/VirtualBox.app/Contents/Resources/VirtualBoxVM.app/Contents/Info.plist

It is much faster now. However, still too sluggish for me when I type.

Lucas
2 years ago
Reply to  Jan

When I try to do this it shows:
Unable to change file mode on Info.plist: Operation not permitted

Do I have to disable sip to be able to run this?

Paul
2 years ago
Reply to  Kirito

Yeah it’s not there in Monterey and performance is pure garbage

Kirito
2 years ago
Reply to  Paul

Solution:

  1. Using XCode, open up:
  2. /Applications/VirtualBox.app/Contents/Resources/VirtualBoxVM.app/Contents/Info.plist
  3. Change High Resolution Capable to NO
  4. Save
Eric N
2 years ago

holy crap, this is such a life saver, thank you sir

kim
2 years ago

Wow.. thank you so much.
Before I read this, I use Windows to use Virtualbox.

Ruben
2 years ago

Thank you so much that fixed my issue