Install VirtualBox on Macbook M1 air

I am unable to install oracle virtual box on my macbook air m1, it throws following error:

Hi @harman12131,
The apple M1 chip does not support Virtualbox and there seem to be no plans to add support. You can use VMWare fusion here

Will VMWare fusion be good enough for this course as in the beginning they said that VMWare free version lacks some features?
I have another system with ubuntu loaded on it which one of the two would you recommend to use for the course?

Yes is will. Thats what I am using… Follow these steps to get it up:

1. Install rosetta

/usr/sbin/softwareupdate --install-rosetta --agree-to-license

2. Install vagrant with homebrew

brew install vagrant

3. Create an account on vmware

customerconnect.vmware.com

4. Download & Install VMWare Fusion Tech Preview

download page

5. Create link

ln -s /Applications/VMWare\ Fusion\ Tech\ Preview.app /Applications/VMWare\ Fusion.app

6. Install vmware provider

install vagrant

7. Install Plugin

vagrant plugin install vagrant-vmware-desktop

8. Create a Vagrantfile in a folder with below content

Vagrant.configure(“2”) do |config|

config.vm.box = “spox/ubuntu-arm”

config.vm.box_version = “1.0.0”
end

9. Bring up vm

Go to the folder where you created Vagrantfile & issue below command.

vagrant up

vagrant ssh

exit

vagrant halt

vagrant destroy

10. Create fedora vm (equivalent to centos)

mkdir -p ~/vms/fedora

cd ~/vms/fedora

vagrant init jacobw/fedora35-arm64

vagrant up

vagrant ssh

exit

vagrant halt

vagrant destroy

2 Likes

Hello,

When I run the comman “brew install vagrant”, I encountered an error stating command line not found. Can you please help me to fix this??

You need to install brew in order to use it. You might also want to look at multipass:
Multipass orchestrates virtual Ubuntu instances

What do you want to run on your VM?

It looks like you do not have home brew installed. Go to https://brew.sh/ following the installation instructions before proceeding to setup of vagrant