Closed BurlyLuo closed 1 month ago
Hi, @BurlyLuo!
once the old vm deleted. and create a new vm following that will get a launch failed: Remote "" is unknown or unreachable. but, after 5 mins, it can launch successfully.
Do you mean that this occurs repeatedly or ever since then, it just continued to work as it should?
that means there exists delete b4, we need wait about 5 mins. after then, we can create the instance succesfully.it seems like there some resources not released. not sure.
Can you please provide more recent logs? You can do that like this:
journalctl --unit 'snap.multipass*' --since=-2d > multipass.log
Then upload the log file here.
Sure.
Sep 05 15:37:01 2204 multipassd[26483]: Checking for images to update…
Sep 05 15:37:07 2204 multipassd[26483]: QMP: {"timestamp": {"seconds": 1693899427, "microseconds": 173230}, "event": "RTC_CHANGE", "data": {"offset": 2, "qom-path": "/machine/unattached/device[18]"}}
Sep 05 15:37:14 2204 multipassd[26483]: Cannot retrieve headers for https://cdimage.ubuntu.com/ubuntu-core/22/stable/current/ubuntu-core-22-amd64.img.xz: Network timeout
Sep 05 15:37:14 2204 multipassd[26483]: Could not update manifest: failed to download from 'https://cdimage.ubuntu.com/ubuntu-core/22/stable/current/ubuntu-core-22-amd64.img.xz': Operation canceled
Sep 05 15:37:14 2204 multipassd[2648
[multipass.zip](https://github.com/canonical/multipass/files/12549656/multipass.zip)
3]: Error updating images: Remote "" is unknown or unreachable.
Thanks!
All the errors around this issue seem to indicate that it was just a connection issue, either on your network's part or the server's part. It was most likely just a transient issue, and not a bug in Multipass itself.
Just to be sure, can you please confirm that you can now successfully launch instances?
Thanks!
All the errors around this issue seem to indicate that it was just a connection issue, either on your network's part or the server's part. It was most likely just a transient issue, and not a bug in Multipass itself.
Just to be sure, can you please confirm that you can now successfully launch instances?
Yes. Thanks for your help. one question here: the action that conn() to the https://cdimage.ubuntu.com/ubuntu-core/22/stable/current/ubuntu-core-22-amd64.img.xz is necessary when we deploy a vm. in my opinion, the image already downloaded at my host, can we set a flag that use the current one or latest one? i think as a user, they want to a stable env. if rolling update, there should be unexpected behavior. sorry to trouble you. if the flag can be set, i think it's a good for the end-user. thanks again.
Certainly! If you have already downloaded the image and it is cached locally, indeed it shouldn't matter that the remote is unreachable. We'll take care of this!
Certainly! If you have already downloaded the image and it is cached locally, indeed it shouldn't matter that the remote is unreachable. We'll take care of this!
At the recently deployment, i have met many times that the "remote unreachable". do we have a plan to fix at the next release? thanks. launch failed: Remote "" is unknown or unreachable. mapfile -t ip_addresses < <(multipass list | grep vm2204[0-9] | awk '{print $3}')
Yes, we could probably fix it in 1.13.
HI @andrei-toterman would you pls share how to specify the image pullPolicy with IfNotPresent? with 1.13.1. if we set the name with 2204, but when there is new release with the ubuntu2204, we can see there still pull the latest image to setup the VM.
Hi, @BurlyLuo! I'm sorry do disappoint, but this was not actually part of the 1.13 release. Probably because this issue was already closed as completed, so we didn't work on it. I'll reopen it now in order to keep track of it. Apologies for the delay!
Also related to this: #2551
Okay, it doesn't matter. @andrei-toterman thanks you for your efforts.
@andrei-toterman Any update for the feature? My multipass version:
[root@wluo LabasCode]$ mm version
multipass 1.14.0
multipassd 1.14.0
[root@wluo LabasCode]$
Hey, @BurlyLuo! Yes, this should be fixed in 1.14.0. Could you tell me if you still experience the issues, please?
Hey, @BurlyLuo! Yes, this should be fixed in 1.14.0. Could you tell me if you still experience the issues, please? Thank you sir. yes, i mean is there any flag to decide that pull or re-use the current image. but the current status shows pull the latest image always.
[root@wluo LabasCode]$ mm launch -h Usage: multipass launch [options] [[<remote:>]<image> | <url>] Create and start a new instance.
Options:
-h, --help Displays help on commandline options
-v, --verbose Increase logging verbosity. Repeat the
'v' in the short option for more detail.
Maximum verbosity is obtained with 4 (or
more) v's, i.e. -vvvv.
-c, --cpus multipass set local.bridged-network
.
mode: auto|manual (default: auto)
mac: hardware address (default:
random).
You can also use a shortcut of "--network bridged
network.
--mount
Arguments: image Optional image to launch. If omitted, then the default Ubuntu LTS will be used.
Hello Any update?
Hi @BurlyLuo, you can use multipass find --force-update
to force fetching new image information. Is that what you are looking for?
Hi @BurlyLuo, you can use
multipass find --force-update
to force fetching new image information. Is that what you are looking for?
No, Quite the opposite. i want keep rather than update. so this is what i pointed that we should set a flag there to decide we keep the image or update.
Hmm, I think there may have been some confusion. We never meant to add such a flag. What Andrei meant in his comment was that, if the remotes are unreachable but Multipass has images cached, it should be able to automatically use those images for launches. But I believe this is already the case. I just tried disconnecting and I could launch from an existing image.
Other than that, we did improve this part of Multipass in two respects recently:
Andrei is away ATM, but is there another way we could help you here @BurlyLuo?
Hmm, I think there may have been some confusion. We never meant to add such a flag. What Andrei meant in his comment was that, if the remotes are unreachable but Multipass has images cached, it should be able to automatically use those images for launches. But I believe this is already the case. I just tried disconnecting and I could launch from an existing image.
Other than that, we did improve this part of Multipass in two respects recently:
- we automatically retry fetching image info from remotes
- we allow users to force fetching (with the cmd I mentioned above)
Andrei is away ATM, but is there another way we could help you here @BurlyLuo?
Okay. that means we can only use the latest image. but, if there are huge changes, that will cause my local testbed come into abnormal status. so this is my original intent.
We'll soon(-ish) have a new feature that will help with that: multipass clone
. With it, you can setup a template VM and clone it, to get the same base setup each time.
Sounds good. we need keep one template(vm), and then clone based on the template. rt? if yes, how do we keep the original_template?
You just keep the VM around. Clone will take a VM and create a clone of it.
Describe the bug Describe what your problem is.
To Reproduce How, and what happened?
Expected behavior What did you expect to happen?
Logs Please provide logs from the daemon, see accessing logs on where to find them on your platform.
Additional info
multipass version
multipass info --all
root@2204:~/wcni-kind/split/k8senv/vmenv#
multipass get local.driver
root@2204:~/wcni-kind/split/k8senv/vmenv# mm get local.driver qemu root@2204:~/wcni-kind/split/k8senv/vmenv# Additional context Add any other context about the problem here.