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

Unable to Launch an image using file:// and https:// option outside of Linux #1029

Closed
SunilManika opened this issue Sep 7, 2019 · 18 comments

Comments

@SunilManika
Copy link

SunilManika commented Sep 7, 2019

We have re-used the example (template.json) mentioned in the below link and have created a custom multipass image with packer.

https://discourse.ubuntu.com/t/building-multipass-images-with-packer/12361

template.json and user-data code
http://paste.ubuntu.com/p/rhmbMq5npN/?_ga=2.124493449.249100637.1567507457-743611631.1566190587
http://paste.ubuntu.com/p/6vbtNXttqZ/?_ga=2.133412493.249100637.1567507457-743611631.1566190587

The image (packer-qemu.img) was created successful with packer.

When trying to launch the image, I get the below error.

multipass launch file://packer-qemu.img launch failed: http and file based images are not supported

Host Details:
My host OS is macOS Mojave Version: 10.14.6

multipass version
multipass 0.8.0+mac
multipassd 0.8.0+mac

@SunilManika
Copy link
Author

SunilManika commented Sep 7, 2019

Also, tried with the image mentioned in the below link, however, this fails with the same above message.

https://discourse.ubuntu.com/t/new-way-to-launch-images-other-than-cloud-images-from-simplestreams/6282

multipass launch http://cdimage.ubuntu.com/ubuntu-core/16/current/ubuntu-core-16-amd64.img.xz launch failed: http and file based images are not supported

Tried with https, face the same issue.

multipass launch https://<repo_path> launch failed: http and file based images are not supported

@Saviq
Copy link
Collaborator

Saviq commented Sep 7, 2019

Hi @SunilManika, launching local images is only currently supported on Linux, we're working on how to make this a supported feature cross-platform.

@Saviq Saviq changed the title Unable to Launch an image using file:// option. Unable to Launch an image using file:// option outside of Linux Sep 7, 2019
@SunilManika SunilManika changed the title Unable to Launch an image using file:// option outside of Linux Unable to Launch an image using file:// and https:// option outside of Linux Sep 8, 2019
@Saviq
Copy link
Collaborator

Saviq commented Sep 18, 2019

Duplicate of #1028

@Saviq Saviq marked this as a duplicate of #1028 Sep 18, 2019
@Saviq Saviq closed this as completed Sep 18, 2019
@AnwarShah
Copy link

This is ridiculous! You should have made this clear, since you claim that multipass in cross-platform tool!

@polarapfel
Copy link

I agree with some of the comments here.

The documentation mentions nowhere that http and file based images are not supported on certain platforms. This needs to be updated in the documentation.

@kd303
Copy link

kd303 commented Aug 28, 2020

It is so frustrating when some of the basic features/bugs are not listed on the site when you download this stuff. If you combined this particular issue with the timeout issue (often default size being 500 MB) , you cant expect the download to complete in 10 sec! I wish these kind of defects which ends up wasting your time are listed upfront when you are download!

@Saviq
Copy link
Collaborator

Saviq commented Aug 28, 2020

It is so frustrating when some of the basic features/bugs are not listed on the site when you download this stuff. If you combined this particular issue with the timeout issue (often default size being 500 MB) , you cant expect the download to complete in 10 sec! I wish these kind of defects which ends up wasting your time are listed upfront when you are download!

Hi @kd303, sorry you're having troubles.

The timeout is not for the whole file. It will time out if no data at all is received in 10s. If you have a different experience, please file a new issue.

If you're getting "Network timeout" errors, that suggests something isn't right with your network. If you can't improve that, you could use a proxy between you and the Internet, which Multipass would use.

@samjay000
Copy link

The timeout is not for the whole file. It will time out if no data at all is received in 10s. If you have a different experience, please file a new issue.

If you're getting "Network timeout" errors, that suggests something isn't right with your network. If you can't improve that, you could use a proxy between you and the Internet, which Multipass would use.

Not everybody have perfect networks, What needs is flag to increase 10s default timeout limit, Something like --timeout-seconds=30.

@samjay000
Copy link

Or

The timeout is not for the whole file. It will time out if no data at all is received in 10s. If you have a different experience, please file a new issue.
If you're getting "Network timeout" errors, that suggests something isn't right with your network. If you can't improve that, you could use a proxy between you and the Internet, which Multipass would use.

Not everybody have perfect networks, What needs is flag to increase 10s default timeout limit, Something like --timeout-seconds=30.

Or image download should resume where it stop, Not start image download from beginning.

@amzon-ex
Copy link

I advocate including this information in the documentation, since it's quite frustrating to face such a situation after having downloaded 300MB+ image file!

@retr0h
Copy link

retr0h commented May 4, 2021

Hi @SunilManika, launching local images is only currently supported on Linux, we're working on how to make this a supported feature cross-platform.

@Saviq Any update on this? It has been a year.

@aojie654
Copy link

aojie654 commented Nov 8, 2021

@Saviq Any update on this? Does Multipass support local image now?

@Saviq
Copy link
Collaborator

Saviq commented Nov 8, 2021

@aojie654 sorry, no news yet.

@retr0h
Copy link

retr0h commented Nov 9, 2021

@aojie654 sorry, no news yet.

@aojie654 I'm starting to think lima might be the path forward, esp on Mac OS.

@madalinignisca
Copy link

Still happening on 1.8.0 and the documentation has removed the limitation mentioned.

@xcd0
Copy link

xcd0 commented Jun 19, 2023

Any update on this?

@gamelife1314
Copy link

does this feature enable in macos ?

@gonzaotc
Copy link

gonzaotc commented May 6, 2024

mid 2024 and this still not work on MacOS :(

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

No branches or pull requests