You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to create a Multipass VM in the env running behind the proxy. I'm setting the proxy through /etc/environment (I'm setting both lowercase and uppercase variables for proxy). I don't want Multipass to use the proxy though, because the proxy doesn't allow connections to cdimage.ubuntu.com.
In order to bypass proxy, I've added .ubuntu.com to the no_proxy and NO_PROXY variables.
With this setup, when I try to launch a Multipass instance, I'm getting launch failed: Remote "" is unknown or unreachable. error.
In the daemon status I can see that it's trying to use the proxy anyway:
Mar 19 13:08:58 upf-operator multipassd[2381]: Cannot retrieve headers for https://cdimage.ubuntu.com/ubuntu-core/18/stable/current/ubuntu-core-18-amd64.img.xz: Proxy denied connection
Mar 19 13:08:58 upf-operator multipassd[2381]: Using the 'default' storage pool.
Mar 19 13:08:58 upf-operator multipassd[2381]: Cannot retrieve headers for https://cdimage.ubuntu.com/ubuntu-core/22/stable/current/ubuntu-core-22-amd64.img.xz: Proxy denied connection
Mar 19 13:08:58 upf-operator multipassd[2381]: Cannot retrieve headers for https://cdimage.ubuntu.com/ubuntu-core/16/stable/current/ubuntu-core-16-amd64.img.xz: Proxy denied connection
Mar 19 13:08:58 upf-operator multipassd[2381]: Error getting https://cdimage.ubuntu.com/ubuntu-core/appliances/streams/v1/index.json: Proxy denied connection - trying cache.
Mar 19 13:08:58 upf-operator multipassd[2381]: Could not update manifest: failed to download from 'https://cdimage.ubuntu.com/ubuntu-core/appliances/streams/v1/index.json': Error opening https://cdimage.ubuntu.>
Mar 19 13:08:58 upf-operator multipassd[2381]: Cannot retrieve headers for https://cdimage.ubuntu.com/ubuntu-core/20/stable/current/ubuntu-core-20-amd64.img.xz: Proxy denied connection
Mar 19 13:08:58 upf-operator multipassd[2381]: Could not update manifest: failed to download from 'https://cdimage.ubuntu.com/ubuntu-core/16/stable/current/ubuntu-core-16-amd64.img.xz': Proxy denied connection
I tried overwriting the variables using drop-in config, but it didn't help. I tried removing proxy config for the snap using snap set system and snap unset system; also without any luck.
Eventually, I was able to make it run by removing the uppercase env variables from my /etc/environment (HTTP_PROXY, HTTPS_PROXY and NO_PROXY). This doesn't seem right tho.
Would be great if someone could look into it.
Please let me know in case any additional info is needed.
BR,
Bartek
To Reproduce
How, and what happened?
Setup env as described above
multipass launch 22.04
Expected behavior
What did you expect to happen?
Logs
Relevant logs available in the description
Additional info
OS: Ubuntu 22.04
multipass version = 1.13.1
multipass get local.driver = lxd
The text was updated successfully, but these errors were encountered:
Thanks for this bug report! I'm curious what your /etc/environment looked like when you have the upper-case http{s} proxies set and what it looks like when this does work. Thanks!
Describe the bug
Hello Team,
I'm trying to create a Multipass VM in the env running behind the proxy. I'm setting the proxy through
/etc/environment
(I'm setting both lowercase and uppercase variables for proxy). I don't want Multipass to use the proxy though, because the proxy doesn't allow connections tocdimage.ubuntu.com
.In order to bypass proxy, I've added
.ubuntu.com
to theno_proxy
andNO_PROXY
variables.With this setup, when I try to launch a Multipass instance, I'm getting
launch failed: Remote "" is unknown or unreachable.
error.In the daemon status I can see that it's trying to use the proxy anyway:
Proxy envs passed to the process are:
I tried overwriting the variables using drop-in config, but it didn't help. I tried removing proxy config for the snap using
snap set system
andsnap unset system
; also without any luck.Eventually, I was able to make it run by removing the uppercase env variables from my
/etc/environment
(HTTP_PROXY
,HTTPS_PROXY
andNO_PROXY
). This doesn't seem right tho.Would be great if someone could look into it.
Please let me know in case any additional info is needed.
BR,
Bartek
To Reproduce
How, and what happened?
multipass launch 22.04
Expected behavior
What did you expect to happen?
Logs
Relevant logs available in the description
Additional info
multipass version
= 1.13.1multipass get local.driver
= lxdThe text was updated successfully, but these errors were encountered: