Mac - How to Install VirtualBox

There are few ways in which we can install VirtualBox Application on the Mac, let us take a look at a few,

1. Installing VirtualBox using the .DMG file

  1. Go to the official download page of VirtualBox:
  2. Click on the OS X hosts link under platform packages to download the .dmg setup
  3. Once downloaded, click on it to install
    Installing VirualBox on Mac
  4. Double click on virtualBox.pkg icon, and follow the instructions

Note: If you are on M1/M2 based ARM Chip, you will get an error "Unsupported hardware architecture detected" as for now VirtualBox only supports 64-bit x86 processors.,

This package will run a program to determine if the software can be installed
This package will run a program to determine if the software can be installed
Mac - Unsupported hardware architecture detected!

2. Installing VirtualBox using HomeBrew Package Manager

This is a much easier way to install VirtualBox using the Terminal.

Installation Command:
% brew install --cask VirtualBox

Again you may get an error and installation will fail if you are on the M1/M2 Mac

==> Downloading

Error: Cask virtualbox depends on hardware architecture being one of [{:type=>:intel, :bits=>64}], but you are running {:type=>:arm, :bits=>64}.

Have Questions? Post them here!
Try Out Code2care Dev Tools:


Code2care is an initiative to publish and share varied knowledge in programming and technical areas gathered during day-to-day learnings and development activities.

Students and software developers can leverage this portal to find solutions to their various queries without re-inventing the wheel by referring to our easy to understand posts. Technical posts might include learnings, tutorials, trouble-shooting steps, video tutorials, code snippets, how-to, blogs, articles, etc.

🎉 We are celebrating the 10th years of Code2care! Thank you for all your support!

We strongly support Gender Equality & Diversity.