emmaliaocode / vagrant-vmware-arm

Provision Ubuntu VMs with Vagrant and VMware on macOS ARM64

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Provision Ubuntu VMs with Vagrant-VMware on Apple Silicon (M1/M2)

This repo aims to provision Ubuntu virtual machines (VMs) with Vagrant and VMware Fusion on Apple Silicon (M1/M2).

Using the Ubuntu-ARM64 Vagrant Box

Since VMware Fusion only supports running ARM on ARM, the Vagrant Box used in this repo is bento/ubuntu-20.04-arm64 which is a Ubuntu-ARM64 box, instead of x86.

Prerequisites

Directory Structure

.
├── README.md
├── Vagrantfile
└── scripts
    ├── collect-host-ip.sh
    └── setup-hosts.sh

1 directory, 4 files

Usage

Provision VMs.

cd vagrant-vmware-arm
vagrant status
vagrant up

SSH to the VMs.

vagrant ssh [hostname]

Suspend the VMs.

vagrant suspend

Troubleshooting

Unexpected communications error

If you encountered the following error when running the vagrant commands.

Vagrant encountered an unexpected communications error with the
Vagrant VMware Utility driver. Please try to run the command
again. If this error persists, please open a new issue at:

  https://github.com/hashicorp/vagrant-vmware-desktop/issues

Try to upgrade Vagrant and the Vagrant Utility to the latest version.

# upgrade vagrant
brew update && brew upgrade hashicorp-vagrant

# upgrade vagrant utility
brew update && brew upgrade vagrant-vmware-utility

About

Provision Ubuntu VMs with Vagrant and VMware on macOS ARM64


Languages

Language:Shell 100.0%