multipass icon indicating copy to clipboard operation
multipass copied to clipboard

In Windows 10: multipass launch failed: Remote "" is unknown or unreachable

Open jjaone opened this issue 1 year ago • 9 comments

Describe the bug In Windows 10 multipass launch of (Ubuntu) instance(s) fails with error:

launch failed: Remote "" is unknown or unreachable.

To Reproduce

  1. Install multipass (1.13.1+win)
  2. Run command like multipass -vv launch "20.04" --name "u20medium" --cpus 2 --disk 100G --memory 2G

Expected behavior Instance gets created so that with command multipass start u20medium it can be started.

Logs Please provide logs from the daemon, see accessing logs on where to find them on your platform.

Additional info

  • OS: Windows 10
  • multipass version: 1.13.1+win
  • multipass info (another multipass Ubuntu instance only running
Name:           u22small
State:          Running
IPv4:           192.168.0.24
Release:        Ubuntu 22.04.4 LTS
Image hash:     769f0355acc3 (Ubuntu 22.04 LTS)
CPU(s):         2
Load:           0.10 0.03 0.01
Disk usage:     2.7GiB out of 48.4GiB
Memory usage:   204.9MiB out of 1.9GiB
Mounts:         --
  • multipass get local.driver: virtualbox

Additional context I have enterprise VPN running (can not change that), but is not a problem cause that other instance was succesfully created, started with shell.

jjaone avatar Jul 12 '24 08:07 jjaone

Hi @jjaone, we have recently fixed #3464 which caused this. It hasn't been released yet, but you can try it out in our latest RC. Otherwise, a workaround on 1.13.1 is to run multipass find --force-update. Does that help in your case?

ricab avatar Jul 16 '24 18:07 ricab

After seeing your comments in #3074, I suspect that your issue is that Multipass just couldn't connect to the image servers for some reason (possibly the VPN setup). Since you say that you were able to create an instance, it must have succeeded at some point. Any idea what changed?

ricab avatar Jul 16 '24 18:07 ricab

For me, this does not work: multipass find --force-update

response it: find failed: failed to download from 'https://cdimage.ubuntu.com/ubuntu-core/16/stable/current/ubuntu-core-16-amd64.img.xz': Operation canceled

But w/o that force flag... PS C:\Users\johndoe> multipass find Image Aliases Version Description 20.04 focal 20240710 Ubuntu 20.04 LTS 22.04 jammy 20240701 Ubuntu 22.04 LTS 24.04 noble,lts 20240710 Ubuntu 24.04 LTS appliance:adguard-home 20200812 Ubuntu AdGuard Home Appliance appliance:mosquitto 20200812 Ubuntu Mosquitto Appliance appliance:nextcloud 20200812 Ubuntu Nextcloud Appliance appliance:openhab 20200812 Ubuntu openHAB Home Appliance appliance:plexmediaserver 20200812 Ubuntu Plex Media Server Appliance

jjaone avatar Jul 18 '24 12:07 jjaone

Hi @jjaone that is more evidence in favor of the same hypothesis: the daemon just can't connect to the internet, but it did at some point in the past and cached those images.

Given the versions you show, it was able to connect no longer ago that July 10. You may be able to solve it by figuring out what changed since then that started preventing access.

ricab avatar Jul 18 '24 16:07 ricab

Yes, the problem may well be due the connectivity from Windows host to public internet (because of the corporate VPN).

To diagnose this it would be helpful to know what the addresses are multipass is trying to access when find command is run?

On the other hand, I don't understand how the find command works without that force flag and is able to download and show all the images available to my multipass client.

jjaone avatar Jul 19 '24 02:07 jjaone

To diagnose this it would be helpful to know what the addresses are multipass is trying to access when find command is run?

Hi @jjaone, you can find the links that it is trying to hit and failing in the logs. See accessing logs. For example, https://cdimage.ubuntu.com/ubuntu-core/16/stable/current/ubuntu-core-16-amd64.img.xz from your message above is one.

On the other hand, I don't understand how the find command works without that force flag and is able to download and show all the images available to my multipass client.

Multipass fetches data on the images periodically and caches it. By default, the find command just returns the last cached data, which succeeds, showing that you have cached data. The --force-update flag forces retrieving remote information right away, which is failing. Given how out of date your cached data is, the periodic attempts to retrieve that data have been failing for a while too. However, an attempt must have succeeded in the past. That is the info that multipass find is showing you.

ricab avatar Jul 19 '24 10:07 ricab

Hi @ricab,

thanks for your help in diagnosing this.

Your analysis is correct; my Windows-host in the enterprise VPN environment is able to find and download (launch) instance images only when the corporate VPN is off.

To start and use the instance I can either I have VPN on or off and it works, but when the VPN is up (and actually in any case) I need to setup the host network adapers and networking inside the Multipass Linux with very specific configuration (netplan) of two bridged adapers then to be able to access from Multipass/Ubuntu instance both corporate networks behind the VPN (NAT) and the public internet (Bridge adapers for bot Wired and Wifi).

Anyhow now it works (with above VPN off and on workaround) and can start to configure my Linux instance for actual work. 💪

jjaone avatar Jul 24 '24 11:07 jjaone

Hi @jjaone, good to know you got it working for you.

If you're willing to share the VPN provider/tech you are using and a recipe to overcome/workaround the issue, we'd be grateful! We're looking to compile a little knowledge base on the topic of VPNs, with workarounds and things people used, to help others in similar situations.

ricab avatar Jul 24 '24 14:07 ricab

Hi @ricab,

I'd be happy to provide the community with a networking solution I came up with to use from Multipass/Linux both corporate networks behind VPN (NAT adapter) and public internet (Bridge adapter). Took some time to get it sorted out.

About the corporate VPN they are using I need to check how much (hardware, model, or forewall setup) details I can share here. Also, I believe that my networking solution is general enough that details are maybe irrelevant as long as you have:

  • Win10 host with local admin account
  • host machine behind corporate VPN: -- VPN only allows NATed access to private corporate networks, and -- has the public internet is proxied too so that most of the www is available (some sites blocked), and -- you must be able to turn the VPN on and off
  • have the latest Multipass (1.13...) installed, and
  • launch either Ubuntu 20.04 or 22.04 instance

Networks config and setup: wait for It.. 😉

jjaone avatar Jul 24 '24 15:07 jjaone

Thank you @jjaone, closing this now then.

ricab avatar Sep 24 '24 11:09 ricab