Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add arm64 / M1 MacBook Support (using Parallels Provider) #46

Merged
merged 9 commits into from
Feb 28, 2023

Conversation

tknerr
Copy link
Member

@tknerr tknerr commented Feb 27, 2023

This PR adds support for creating the "Linux Developer VM" on M1 MacBooks, using the Vagrant Parallels Provider:

  • adds support for parallels provider in general (see Vagrantfile)
  • conditionally uses the tknerr/ubuntu2004-desktop-arm basebox when running from an M1 MacBook
  • selects the correct .deb installation packages (arm64 vs amd64) for vscode and docker depending on the host architecture
  • updates the README and adds documentation on how to export a .pvmp VM image via Parallels (which doesn't support .ova export)

Prerequisites:

  • you need Parallels Desktop Business or Pro Edition installed
  • you need the vagrant-parallels provider installed

Then run this on a M1 MacBook:

$ vagrant up --provider parallels

@tknerr tknerr force-pushed the feature/parallels-m1-arm-spike branch 3 times, most recently from 687ddd1 to 5a57550 Compare February 27, 2023 22:40
@tknerr tknerr changed the title Spike: M1 MacBook Support with Parallels Provider Add arm64 / M1 MacBook Support with Parallels Provider Feb 27, 2023
@tknerr tknerr changed the title Add arm64 / M1 MacBook Support with Parallels Provider Add arm64 / M1 MacBook Support (using Parallels Provider) Feb 27, 2023
@tknerr tknerr force-pushed the feature/parallels-m1-arm-spike branch from 5a57550 to 252077d Compare February 27, 2023 23:22
@tknerr tknerr force-pushed the feature/parallels-m1-arm-spike branch from 93dc87e to 52f7290 Compare February 28, 2023 00:13
@tknerr tknerr force-pushed the feature/parallels-m1-arm-spike branch 3 times, most recently from 13ec7b2 to 61dafdf Compare February 28, 2023 00:37
@tknerr tknerr force-pushed the feature/parallels-m1-arm-spike branch from 61dafdf to d3da46e Compare February 28, 2023 00:41
@tknerr
Copy link
Member Author

tknerr commented Feb 28, 2023

DONE:

  • extract separate PR for fixing the pytest issue and ansible-core version check (👉 see PR 47)
  • make choice of arm64 vs amd64 .deb packages / shasums dependent on current architecture instead of hardcoding it (👉 see this stackoverflow)
  • make basebox selection in Vagrantfile dependent on current architecture (👉 see this solution)
  • update README with instructions for parallels provider e.g. how to package it (👉 see blog post and docs)

@tknerr
Copy link
Member Author

tknerr commented Feb 28, 2023

@jotbe @mexmirror FYI - it now works on M1 Macbooks :)

For now using parallels provider only, as this is the only M1 basebox I have readily available (built from tknerr/ubuntu#1).

In theory, it should run on M1 with VMware and VirtualBox as well, but I haven't managed to build baseboxes for these providers yet...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant