snap start/snap stopすれば直ると思われる。
❯ sudo snap stop multipass Stopped. ❯ sudo snap start multipass Started.
以下、調査ログとか憶測
launch failed: Remote "" is unknown or unreachable.
で検索すると真っ先に出てくるのが以下のissue。
だけど、MacOSとWindowsの話でかつ古いバージョンの問題のようなので該当せず。
なお、ローカルバージョンは 1.8.0
❯ multipass --version multipass 1.8.0 multipassd 1.8.0
multipass launch
のときにこのエラーがでるので -vvv
をつけてみる。
❯ multipass launch -n docker -m 4G -c 2 -vvv [2021-12-27T10:30:16.177] [warning] [url downloader] Error getting https://codeload.github.com/canonical/multipass-workflows/zip/refs/heads/main: Network access is disabled. - trying cache. [2021-12-27T10:30:16.178] [warning] [url downloader] Cannot retrieve headers for https://cdimage.ubuntu.com/ubuntu-core/16/stable/current/ubuntu-core-16-amd64.img.xz: Network access is disabled. [2021-12-27T10:30:16.179] [warning] [VMImageHost] Could not update manifest: failed to download from 'https://cdimage.ubuntu.com/ubuntu-core/16/stable/current/ubuntu-core-16-amd64.img.xz': Network access is disabled. [2021-12-27T10:30:16.179] [warning] [url downloader] Cannot retrieve headers for https://cloud-images.ubuntu.com/buildd/releases/bionic/release/bionic-server-cloudimg-amd64-disk.img: Network access is disabled. [2021-12-27T10:30:16.179] [warning] [VMImageHost] Could not update manifest: failed to download from 'https://cloud-images.ubuntu.com/buildd/releases/bionic/release/bionic-server-cloudimg-amd64-disk.img': Network access is disabled. launch failed: Remote "" is unknown or unreachable.
imageが取りに行けていない?? curlを叩いてみても問題なさそう。
❯ curl -I https://cdimage.ubuntu.com/ubuntu-core/16/stable/current/ubuntu-core-16-amd64.img.xz HTTP/1.1 200 OK Date: Mon, 27 Dec 2021 01:28:28 GMT Server: Apache/2.4.29 (Ubuntu) Last-Modified: Tue, 18 Aug 2020 09:08:19 GMT ETag: "100d1a00-5ad233a6966c0" Accept-Ranges: bytes Content-Length: 269294080 Content-Type: application/x-xz
snap上のアプリケーションが、古いresolv.confを参照していてDNSエラーになっているのでは…?と考え、冒頭のコマンドを実行したところ解消した。
余談: MacOSとWindowsはトラブルシューティングのページがあるけど、Linux版はないのだな…。 * https://multipass.run/docs/troubleshooting-networking-on-macos * https://multipass.run/docs/troubleshooting-networking-on-windows