📅 Schedule A Meeting:

Vagrant is an Open Source product provided by Hashicorp which enables users to create and configure lightweight, reproducible, and portable development environments.

Interacting with Vagrant commands:
vagrant up: bring up a vm
vagrant ssh: connect to that vm
vagrant halt: shut down machine
vagrant destroy: remove virtual machine

Here are the steps to follow in order to create an Ubuntu Virtual Machine on MacOS:

  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 https://customerconnect.vmware.com/

  4. Download & Install VMWare Fusion Tech Preview https://customerconnect.vmware.com/downloads/get-download?downloadGroup=FUS-PUBTP-2021H1

download page

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

  2. Install vmware provider Vagrant vmware Utility

https://releases.hashicorp.com/vagrant-vmware-utility/1.0.21/vagrant-vmware-utility_1.0.21_x86_64.dmg

  1. Install Plugin vagrant plugin install vagrant-vmware-desktop

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

  3. Bring up vm Go to the folder where you created Vagrantfile & issue below command. vagrant up vagrant ssh exit vagrant halt vagrant destroy

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

Make 💰 By Learning Programming: