-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Apple M1 support (Ubuntu 20.04, Parallels) #1374
Conversation
Signed-off-by: Jeff Noxon <jeff@noxon.cc>
To test drive the box: https://app.vagrantup.com/jeffnoxon/boxes/ubuntu-20.04-arm64 |
Just confirming that @jnoxon's box works great on my M1 Mac Air. |
Very interesting. If someone wanted to cut arm64 boxes for other OS releases that would be greatly appreaciated |
@tas50 The new box works great on M1, but right now we have to switch between Any chance you could publish this new Thanks in advance! |
@tas50 is there a blocker preventing the shipping of this functionality that we can't see from here? I'd like to help as would others but it's unclear what the next action that needs taking is and who is able to take it |
👋 apologies for the bump, but a lot of people would be very thankful if you could update the official boxes on Vagrant Cloud. The Parallels one still hasn't been published. |
I believe this is still relevant? People are relying on https://app.vagrantup.com/jeffnoxon/boxes/ubuntu-20.04-arm64 but the box has not been updated in 6 months (for good reasons! And thanks @jnoxon for sharing it). Pretty happy to go back the official boxes as soon as possible. How can we help? |
@thbar thanks for the kind words! Your comments made me want to update the box. I upgraded Parallels, installed the SDK, and Packer says I don't have the SDK installed:
I tried using dtruss to figure out what it was unhappy about. I couldn't figure that out either, it just shows one useless line of output. I forgot what a pain it was to get this working the first time. |
I tried a bunch of crazy stuff to make the Parallels SDK work with the provider. It's pretty clear the SDK requires Python 2.7 or 3.7, but Monterey ships 3.9. Homebrew doesn't ship 3.7. The SDK is closed-source, and when I try to force things by putting the prlsdkapi stuff in one of my Python import paths and run I'm not a Python guy, so I'm not sure what to try next. |
@jnoxon if you require a specific version of Python in order to build the image, then you should be able to use one of the various package/environment managers used by the Python community, such as venv, virtualenv, pyenv, etc. I believe venv is now part of the Python standard library. I personally use conda. I'm willing to also jump in and help you in trying to get this working if you like, just lmk. |
I've posted a thread about the SDK issue https://forum.parallels.com/threads/failed-creating-parallels-driver-parallels-virtualization-sdk-is-not-installed.357040/ (it's currently not public, awaiting moderation) I do know a thing or two about Python and tried some trickery and ended up in the same place as you and @jyscao did. Google doesn't seem to help either. |
As an update to my previous comment: I didn't get any traction from the forum post so I posted a Support request via my Parallels account directly to them. They asked me to verify the behavior that existed on the current public releases of Parallels & SDK and I upgraded and verified I was still hitting this issue. The support team has informed me the issue has been escalated to their development team for further investigation. |
I was able to get past the
|
The SDK was updated and works now with Monterey 12.4. I am uploading a newer build of the box as I type this. |
@jnoxon with your latest release at 1.0.1, the vagrant box retains the mac address. Therefore if you have multiple boxes, Parallels assigns the same DHCP address to each box, resulting in an internal meltdown within Parallels. I assume this is possibly related to this setting: Or due to omitting the
Rel: https://www.vagrantup.com/docs/providers/virtualbox/boxes Some other people experiencing this issue: roots/trellis#1253 (comment) |
@craigpearson Apologies for letting this sit for so long, but I'm confused. Vagrant isn't used to build the box. I checked to make sure there wasn't something in the image causing udev to change the MAC, but I don't see anything. It sounds like a problem with Parallels or the parallels vagrant provider causing MAC reuse. Are you able to work around it by overriding the MAC address for your box in Vagrant? |
Signed-off-by: Jeff Noxon jeff@noxon.cc
This PR adds support for Ubuntu 20.04 on Apple M1 using Parallels
Description
Note that Parallels version 17.0.1 (51482) has a bug where performance falls off a cliff after an ISO is ejected. A simple boot will take over 5 minutes with a detached CD-ROM. This affects building this box. The only workaround I am aware of is to immediately reconnect the ISO to the CD-ROM device after the installer ejects it.
When using this image with Vagrant,
v.customize ["set", :id, "--device-del", "cdrom0" ]
may be useful, as well.Related Issue
#1344
Types of changes
Checklist: