- Download and install Vagrant
brew tap hashicorp/tap
brew install hashicorp/tap/hashicorp-vagrant
- Download and install Vagrant VMware Utility
You may notice that the binary is for Intel's amd64 architecture and not for arm64/Apple Silicon, but this should work since Apple uses a translation layer called Rosetta 2 that will allow it to work.
-
Download and install VMware Fusion Pro (Free for Personal Use)
-
Install the
vagrant-vmware-desktop
plugin
vagrant plugin list
vagrant plugin install vagrant-vmware-desktop
vagrant plugin list
- Install the
vagrant-disksize
plugin to customize the disk size
vagrant plugin install vagrant-disksize
- Download and start the vagrant box
vagrant init bento/ubuntu-24.04 --box-version 202404.26.0
- Set disk size. Open the generated Vagrantfile and find the lines that have:
Vagrant.configure("2") do |config|
config.vm.box = "bento/ubuntu-24.04"
config.vm.box_version = "202404.26.0"
and add the desired disk size and memory size as follows:
Vagrant.configure("2") do |config|
config.vm.box = "bento/ubuntu-24.04"
config.vm.box_version = "202404.26.0"
config.vm.disk :disk, size: "20GB", primary: true
config.vm.provider :vmware_desktop do |vmware|
vmware.vmx["memsize"] = "1024"
end
Even if you do not want to set the disk size or memory size, make sure that you set the provider as VMware instead of VirtualBox in your Vagrantfile.
- Start the Vagrant box
vagrant up
- SSH into the Vagrant box
vagrant ssh