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

what about Apple M1 ? #194

Open
stefaan-cottenier opened this issue Oct 6, 2021 · 8 comments
Open

what about Apple M1 ? #194

stefaan-cottenier opened this issue Oct 6, 2021 · 8 comments

Comments

@stefaan-cottenier
Copy link

So far, VirtualBox + Quantum Mobile was quite a universal solution for my students. But this year, there start to be students who have a Macbook with the M1 processor. Virtualbox is not compatible with this. Two questions : (1) Is there currently a solution you can suggest for people with an M1? (2) If not, is it likely/expected that either VirtualBox or Quantum Mobile will evolve in a way that this problem is removed?

Thanks!
Stefaan

@ltalirz
Copy link
Member

ltalirz commented Oct 6, 2021

hey @stefaan-cottenier, thanks for pointing this out.

For this year's course, I would say one possibility is to use the Quantum Mobile docker container https://quantum-mobile.readthedocs.io/en/latest/users/launch.html which should run fine on ARM (despite the warning you will see when launching the docker image).

Given that it looks like virtualbox will not support ARM, it seems we may need to look for an alternative solution for a graphical desktop in the medium term.
e.g. vmware recently announced a tech preview for m1

suggestions welcome!
I will bring it up in the AiiDA meeting later today

@ltalirz
Copy link
Member

ltalirz commented Oct 6, 2021

@stefaan-cottenier
Of course, switching to docker entirely would be an option as well.

My impression in the past has been that novice users find it easier to work with a familiar graphical desktop - what is your impression on this topic?
Of course, it is still possible to do graphical applications with docker (installing some extra software on the host, or going through the web browser).

@stefaan-cottenier
Copy link
Author

stefaan-cottenier commented Oct 6, 2021 via email

@Saumiali
Copy link

Saumiali commented Oct 9, 2021

Screenshot 2021-10-09 at 1 31 46 PM

Hey, so I followed the instructions related to the docker, but instead of healthy, I see unhealthy when I run the health check command. Where am I going wrong?

@giovannipizzi
Copy link
Contributor

This seems an interesting option to run on M1: https://mac.getutm.app
There is a Ubuntu 20.04 for ARM (so it's virtualized and fast, and not emulated).
Is there anyone with an M1 willing to give it a try? (@ltalirz ? others?)
My suggestion would be to download the 20.04 image, install it, see if it works fine (clipboard, interactiveness, ...) and then trying to see if the ansible roles work fine (e.g. testing gcc and some compilation of one of the codes).
If it works, we might think about releasing 2 images, one .ova for most machines, and one image for UTM for M1 chips

@ltalirz
Copy link
Member

ltalirz commented Apr 4, 2022

Looks indeed interesting. I have it a quick try and it seemed to work fine (with the ubuntu server image it boots into text-based installation UI) however one would need some automated way of provisioning the image e.g. via a vagrant plugin.

People are looking into this, so perhaps this will soon be possible.

In the meanwhile, docker should work fine - unfortunately, I don't know which issue @Saumiali ran into.

We should soon also have an arm-native docker image for aiida-core (but the x86 one works on the M1 as well; the arm one should just be faster)

By the way, @unkcpz also has an M1 mac, so he may be able to test things as well.

@giovannipizzi
Copy link
Contributor

Good that they are working on it.
In any case, if we want to provide support, we can always just download by hand an image, and run ansible in it, at least until when the provisioner is not available. The reason I'm pushing for a VM rather than docker is that I'd like to provide it for future tutorials

@AntimoMarrazzo
Copy link
Contributor

It looks like VirtualBox now supports Apple Silicon processors https://www.virtualbox.org/wiki/Changelog , but I have tried the Quantum Mobile v24.04 on VB Apple Silicon 7.1.2 and I got a VBOX_E_PLATFORM_ARCH_NOT_SUPPORTED (0x80bb0012).

I guess some work to be done on the QM side of things?

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

No branches or pull requests

5 participants