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

file based image on macos #1024

Closed
daviehh opened this issue Sep 5, 2019 · 3 comments
Closed

file based image on macos #1024

daviehh opened this issue Sep 5, 2019 · 3 comments
Labels

Comments

@daviehh
Copy link

daviehh commented Sep 5, 2019

On the current release, looks like the file-based images are not supported for macos: e.g. multipass launch file:///path/to/Fedora-Cloud-Base-30-1.2.x86_64.raw returns

launch failed: http and file based images are not supported

Is there a plan to add such support to macos or is there some technical hurdle? Thanks a lot!

macos: 10.14.6 (18G95)

@Saviq
Copy link
Collaborator

Saviq commented Sep 5, 2019

Hi @daviehh, we currently need to provide the hypervisor with a kernel / initrd pair separate to the image, which means we can't use the kernel inside the image (or we'd have to extract it, not fun).

We are looking into making this possible, but I'm afraid there's some higher priority items on our roadmap. You can always use LXD inside the instance to run other systems with little overhead.

@lmars
Copy link

lmars commented Sep 30, 2019

@Saviq I would also like this functionality, and I'd be happy to try to contribute to make it happen.

My use case here is taking a stock ubuntu cloud image, running some setup, and then saving that as a custom image to then launch further instances with, so I'd just be using the same kernel / initrd from the stock image.

How about adding --kernel and --initrd flags on macOS, and requiring those if a URI is passed to multipass launch:

$ multipass launch file://custom.img --kernel vmlinuz --initrd initrd.img

@Saviq
Copy link
Collaborator

Saviq commented Oct 25, 2021

Duplicate of #1260

@Saviq Saviq marked this as a duplicate of #1260 Oct 25, 2021
@Saviq Saviq closed this as completed Oct 25, 2021
@Saviq Saviq added bug and removed enhancement labels Oct 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants