Skip to content

Ecotrust/mac-vagrant-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vagrant and QEMU on Mac with Apple Silicon (M1, M2, M3, ...?) / ARM64

Install QEMU

Instructions: Vagrant QEMU plugin in summary:

brew install qemu
vagrant plugin install vagrant-qemu

Choose a Vagrant Box

Choices: Vagrant QEMU on arm64 Boxes

Setup Synced Folders with SMB

Instructions: Vagrant SMB In summary:

  • Open "System Preferences"
  • Click "General"
    • System options
  • Check the "On" checkbox next to "File Sharing"
  • Click "Options"
  • Check "Share files and folders using SMB"
  • Check the "On" checkbox next to your username within "Windows File Sharing"
    • Share checked
  • Click "Done"

Update Vagrantfile

Change the smb_host: value to your local IP address.

Find your local IP address by running:

ifconfig | grep "192.168."

If that doesn't work, you can run ifconfig in a terminal and look for the inet value under en0 (or en1 if you're on WiFi).

replace "192.168.86.87" with your local IP address.

Run Vagrant

vagrant up

Troubleshooting

Kill QEMU service competing for port 50022

If you get an error about port 50022 being in use, you can do the following:

lsof -nP -iTCP:50022 | grep LISTEN

This will give you the PID of the process using the port. You can then kill the process with:

kill -9 <QEMU PID>

Restarting your Mac What happens to my QEMU virtual environment after a Mac restart?

  • Will I need to kill the QEMU service every time? No
  • Will I need to uninstall QEMU server or prevent it from launching on boot? No
  • Will vagrant up run without an issue after a Mac restart? Yes 🎉

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published