Vagrant setup in MAC m1
Virtualbox is not yet released for mac m1. in this case vagrant setup becomes challenging in m1. but there is one alternative of virtualbox that is vmware
Steps to setup vagrant.
- Install vagrant brew install vagrant
- Download and install vmware-fusion Vmware-fusion-arm-64
- Download and Install vagrant vmware utility vagrant-vmware-utility
- Install vagrant-vmware-desktop plugin using following command
vagrant plugin install vagrant-vmware-desktop
- Symlink vmware fusion tech preview with vmware fusion.
ln -s /Applications/VMWare\ Fusion\ Tech\ Preview.app /Applications/VMWare\ Fusion.app
- Create a file named
Vagrantfile
Vagrant.configure(2) do |config| config.vm.box = "spox/ubuntu-arm" config.vm.provider "vmware_desktop" do |vb| vb.gui = true vb.memory = "2048" end
- Start vagrant using following command.
vagrant up
- ssh into vagrant box. (if password required use vagrant)
vagrant ssh
- stop the running machine.
vagrant halt