maishiroma / Cloud-Mac-KVM

Terraform deployment of a MacOS running in KVM on a GoogleCloud VM

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cloud Mac KVM

Terraform code to help stand up a MacOS KVM on cloud hosting services. As of RC 0.1.0 The only cloud that is supported is GCP but others are coming.

How to use

  1. Create account with hosting service.
  1. Setup environment.
  1. Download Terraform CLI v0.11.12 and install.

  2. Download or git clone this repo and cd into the hosting provider directory (at this time GCP is the only host), then into the terraform directory and create a file called terraform.tfvars then populate as seen here.

  3. Run terraform init to download the host provider.

  4. Input necessary variables to terraform.tvars file

  5. Run terraform appy

Once Started

VNC

The server will take approximately 8 minutes to boot everything and install everything for the first time (this will occur after Terraform has completed as the int script in the Terraform directory runs after boot)t. Once it is complete you can use a VNC client like TigerVNC to connect to it via the IP of the instance from the end of the Terraform run. The VNC service is hosted on port 5900 and the firewall is locked to only your external IP. If you change network connections you will likely not have access to it. This is for security reasons as VNC isn't the most secure protocol.

Once you have connected to the VNC service, the default password, PASSWORD can be modified in GCP/terrfaorm/scripts/init.sh. I recommend changing this.

OpenCore Language

The OpenCore image from the source OSX-KVM repo is Japanese so you will need to change the language after startup. To do this its the first menu bar item, and first selection in that menu as seen in the image below:

Change Language

Saving Mac for later

About

Terraform deployment of a MacOS running in KVM on a GoogleCloud VM


Languages

Language:HCL 53.8%Language:Shell 46.2%