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

12 comments on “VirtualBox running slow and lag on macOS, MacBook Pro

  1. 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.

      1. 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
    1. 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

      1. 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?

      2. 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.

  2. 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

Leave a Comment

Your email address will not be published. Required fields are marked *