Instructions: Vagrant QEMU plugin in summary:
brew install qemu
vagrant plugin install vagrant-qemu
Choices: Vagrant QEMU on arm64 Boxes
Instructions: Vagrant SMB In summary:
- Open "System Preferences"
- Click "General"
- 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"
- Click "Done"
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 theinet
value underen0
(oren1
if you're on WiFi).
replace "192.168.86.87"
with your local IP address.
vagrant up
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 🎉