This content originally appeared on DEV Community and was authored by Enmanuel Jarquín
Notes about installing Vagrant and VMWare Fusion on my Mac M1 with Sonoma.
I tried to install Vagrant along with Virtual Box on my Mac M1, but I got several errors. So I decided to use VMWare leveraging I already use it with Windows 11.
- Install VMWare, this is my current version:
Download Vagrant and install it, I saw that you can install it via the command line using
brew
. I just used the package that I downloaded from here: https://developer.hashicorp.com/vagrant/install
My current version is:1.0.22
Install Vagrant utility for VMWare:
Vagrant Utility
At the minute of writing down these notes the version I installed and that worked for is:1.0.22
Install the vagrant plugin, just open the terminal and execute this command:
vagrant plugin install vagrant-vmware-desktop
I restarted my system just in case.
Verify vagrant was installed:
vagrant --version
Open VMWare and keep it open, just in case.
Create a new directory, and create a new Vagrant file:
Vagrantfile
.Copy and paste this code:
Vagrant.configure("2") do |config|
config.vm.box = "spox/ubuntu-arm"
config.vm.box_version = "1.0.0"
end
- Run:
vagrant up
on the directory of the newly file. - Add network configuration:
Vagrant.configure("2") do |config|
config.vm.box = "spox/ubuntu-arm"
config.vm.box_version = "1.0.0"
config.vm.hostname = "testbox01"
config.vm.network "private_network", ip: "10.9.8.7"
end
- I got an error saying something like:
Failed to create new device
- I found out that the error was that initialy I was using an old version of the vagrant utility for vmware:
1.0.21
, so I read this post: https://github.com/hashicorp/vagrant/issues/12052 and there I saw that I needed to install the new version, in my case1.0.22
which I mentioned on the point #3.
Kudos to this post: https://medium.com/@iamzamartech/create-and-manage-vms-with-vagrant-on-mac-m1-chip-d8b85eed082e, since most of the fixes or steps were taken from there.
This content originally appeared on DEV Community and was authored by Enmanuel Jarquín
Enmanuel Jarquín | Sciencx (2024-07-20T04:51:05+00:00) Vagrant and VMWare Fusion in Mac M1. Retrieved from https://www.scien.cx/2024/07/20/vagrant-and-vmware-fusion-in-mac-m1/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.