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

Facing issues? Have Questions? Post them here! I am happy to answer!

Author Info:

Rakesh (He/Him) is a seasoned developer with over 10 years of experience in web and app development, and a deep knowledge of operating systems. Author of insightful How-To articles for Code2care.

Follow him on: X

You can also reach out to him via e-mail:

Copyright © Code2care 2024 | Privacy Policy | About Us | Contact Us | Sitemap