canonical / multipass-blueprints

Blueprint definitions for [`multipass launch`](https://multipass.run)
GNU General Public License v3.0
68 stars 42 forks source link

Blueprints on MacOS #41

Closed venaturum closed 6 months ago

venaturum commented 7 months ago

I'm hoping to boot a VM based on Rocky.

Is there a way to get this to work on MacOS?

Or should I launch a multipass instance, then install multipass inside that, and then follow the linux instructions to end up with a Rocky VM running on an Ubuntu VM running on MacOS?

venaturum commented 7 months ago

I tried the following

$ sudo /usr/libexec/PlistBuddy -c \
'Add :EnvironmentVariables:MULTIPASS_BLUEPRINTS_URL string https://github.com/canonical/multipass-blueprints/archive/refs/heads/other-distros.zip' \
/Library/LaunchDaemons/com.canonical.multipassd.plist

$ multipass set local.driver=qemu

$ sudo launchctl unload /Library/LaunchDaemons/com.canonical.multipassd.plist

$ sudo launchctl load /Library/LaunchDaemons/com.canonical.multipassd.plist

I can see that the MULTIPASS_BLUEPRINTS_URL variable is correctly defined in /Library/LaunchDaemons/com.canonical.multipassd.plist but I can't see any changes when running multipass find

georgeliao commented 7 months ago

Hi @venaturum , thanks for the reporting this. I do not think nested multipass will work, due to the limitation of the nested virtualization. However, maybe you can try to use the docker blueprint of multipass, (multipass launch docker -n vm1) which creates a container on the top of a multipass virtual machine instance. Then use docker to create rockylinux.

venaturum commented 6 months ago

Thanks @georgeliao, I'll give it a try