-
Notifications
You must be signed in to change notification settings - Fork 664
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
Support to configure the mirror url of cloud image #717
Labels
Milestone
Comments
bors bot
added a commit
that referenced
this issue
Jul 29, 2022
2632: Download image from mirror site r=townsend2010 a=rim99 Hi team, I would like to present a PR for issue: #717 **Feature: mirror of cloud images** By setting `local.image.mirror`, users can download images from mirror sites instead of the official one. The feature can be disabled by leaving the config empty. **Implementation** When updating product versions, it will choose the manifest from mirror site if possible. Since mirror sites is syncing with official site periodically, the latest version in official site may not exist in mirror sites. Only if the content of a version is *identical* to the same version from official site, it will be updated into the `manifests` cache of `UbuntuVMImageHost` instance. 2673: Fix inconsistent `list` output r=townsend2010 a=sharder996 Fixes `list` output so that all formats output `release` + `image` for the `release` field. eg. ``` ubuntu:build$ multipass list --format yaml foo: - state: Running ipv4: - 10.3.183.81 release: Ubuntu 20.04 LTS persuasive-ruff: - state: Deleted ipv4: [] release: Not Available ``` Fixes #2464 Co-authored-by: rim99 <[email protected]> Co-authored-by: sharder996 <[email protected]>
bors bot
added a commit
that referenced
this issue
Jul 29, 2022
2632: Download image from mirror site r=townsend2010 a=rim99 Hi team, I would like to present a PR for issue: #717 **Feature: mirror of cloud images** By setting `local.image.mirror`, users can download images from mirror sites instead of the official one. The feature can be disabled by leaving the config empty. **Implementation** When updating product versions, it will choose the manifest from mirror site if possible. Since mirror sites is syncing with official site periodically, the latest version in official site may not exist in mirror sites. Only if the content of a version is *identical* to the same version from official site, it will be updated into the `manifests` cache of `UbuntuVMImageHost` instance. Co-authored-by: rim99 <[email protected]>
when you visit https://mirrors.tuna.tsinghua.edu.cn/ubuntu-cloud-images/ , you can't find the directory release, which will cause something wrong as below:
but, you can try the following commands
it works fine. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The user experience of using multipass in China is not quite good.
So I'm wondering if there's a way to configure mirrors in multipass so that I can use something like the URL[1] as a mirror to boost the image download speed.
That could be really helpful for multipass users in China.
Thanks
Gary
[1] https://mirrors.tuna.tsinghua.edu.cn/ubuntu-cloud-images/
The text was updated successfully, but these errors were encountered: