canonical / multipass

Multipass orchestrates virtual Ubuntu instances
https://multipass.run
GNU General Public License v3.0
7.51k stars 632 forks source link

launch failed: Unable to find an image matching "" in remote "". #3509

Closed codepic closed 2 months ago

codepic commented 2 months ago

Describe the bug

Multipass is not able to launch after clean install.

To Reproduce How, and what happened?

  1. Followed Windows install procedure as described on the site
  2. multipass launch
  3. Got error message: launch failed: Unable to find an image matching "" in remote "".

Expected behavior Multipass should launch. Logs No critical, warning, or error entries in Event Viewer.

Additional info

Additional context

[2024-04-25T15:48:56.401] [trace] [Hyper-V Health Check] PowerShell arguments: -NoProfile, -NoExit, -Command, -
[2024-04-25T15:48:56.401] [trace] [Hyper-V Health Check] PowerShell working dir ''
[2024-04-25T15:48:56.401] [trace] [Hyper-V Health Check] PowerShell program 'powershell.exe'
[2024-04-25T15:48:56.401] [trace] [Hyper-V Health Check] [0] PowerShell state changed to Starting
[2024-04-25T15:48:56.403] [trace] [Hyper-V Health Check] [0] PowerShell state changed to Running
[2024-04-25T15:48:56.404] [debug] [powershell.exe] [1496] started: powershell.exe -NoProfile -NoExit -Command -
[2024-04-25T15:48:56.405] [debug] [Hyper-V Health Check] [1496] Cmdlet: 'Get-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows NT\CurrentVersion' | Select-Object -ExpandProperty CurrentMajorVersionNumber'
[2024-04-25T15:48:56.637] [trace] [Hyper-V Health Check] 10
[2024-04-25T15:48:56.637] [trace] [Hyper-V Health Check] [1496] Output: 10
[2024-04-25T15:48:56.638] [debug] [Hyper-V Health Check] [1496] Cmdlet exit status is 'true'
[2024-04-25T15:48:56.638] [debug] [Hyper-V Health Check] [1496] Cmdlet: 'Get-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows NT\CurrentVersion' | Select-Object -ExpandProperty ReleaseId'
[2024-04-25T15:48:56.641] [trace] [Hyper-V Health Check] 2009
[2024-04-25T15:48:56.641] [trace] [Hyper-V Health Check] [1496] Output: 2009
[2024-04-25T15:48:56.641] [debug] [Hyper-V Health Check] [1496] Cmdlet exit status is 'true'
[2024-04-25T15:48:56.642] [debug] [Hyper-V Health Check] [1496] Cmdlet: 'Get-CimInstance Win32_ComputerSystem | Select-Object -ExpandProperty HypervisorPresent'
[2024-04-25T15:48:56.700] [trace] [Hyper-V Health Check] True
[2024-04-25T15:48:56.701] [trace] [Hyper-V Health Check] [1496] Output: True
[2024-04-25T15:48:56.701] [debug] [Hyper-V Health Check] [1496] Cmdlet exit status is 'true'
[2024-04-25T15:48:56.701] [debug] [Hyper-V Health Check] [1496] Cmdlet: 'Get-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V | Select-Object -ExpandProperty State'
[2024-04-25T15:48:56.955] [trace] [Hyper-V Health Check] Enabled
[2024-04-25T15:48:56.955] [trace] [Hyper-V Health Check] [1496] Output: Enabled
[2024-04-25T15:48:56.956] [debug] [Hyper-V Health Check] [1496] Cmdlet exit status is 'true'
[2024-04-25T15:48:56.956] [debug] [Hyper-V Health Check] [1496] Cmdlet: 'Get-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-Hypervisor | Select-Object -ExpandProperty State'
[2024-04-25T15:48:56.991] [trace] [client cert store] Verifying cert:
-----BEGIN CERTIFICATE-----
MIIBojCCAUegAwIBAgIEvF0HJjAKBggqhkjOPQQDAjBQMQswCQYDVQQGEwJVUzES
MBAGA1UECgwJQ2Fub25pY2FsMS0wKwYDVQQDDCQxMmJmMWRjZC02MWE4LTQzZjct
YjlmMy0xYzA2Y2FkYWEyN2EwHhcNMjQwNDI1MDgxODAxWhcNMjUwNDI1MDgxODAx
WjBQMQswCQYDVQQGEwJVUzESMBAGA1UECgwJQ2Fub25pY2FsMS0wKwYDVQQDDCQx
MmJmMWRjZC02MWE4LTQzZjctYjlmMy0xYzA2Y2FkYWEyN2EwWTATBgcqhkjOPQIB
BggqhkjOPQMBBwNCAAQ805QItEdLyQj95HTNVJ9W0ZFbZ1uGjuDVlLqU3zayxydY
Lfw2EA0Drh0MfuM6k+IeRgp990AkHWs3NYMNE+pIow8wDTALBgNVHREEBDACggAw
CgYIKoZIzj0EAwIDSQAwRgIhAPJqdlhOG6+NcX31ANGqZClJA9C4Ku25kzvGHvvr
JbXkAiEA0i53QmaZmVG9kqE3iRsixSNY35tgiIyo7K7Gy1WVMhs=
-----END CERTIFICATE-----

[2024-04-25T15:48:57.054] [trace] [Hyper-V Health Check] Enabled
[2024-04-25T15:48:57.055] [trace] [Hyper-V Health Check] [1496] Output: Enabled
[2024-04-25T15:48:57.056] [debug] [Hyper-V Health Check] [1496] Cmdlet exit status is 'true'
[2024-04-25T15:48:57.056] [debug] [Hyper-V Health Check] [1496] Cmdlet: 'Get-Service -Name vmms | Select-Object -ExpandProperty Status'
[2024-04-25T15:48:57.064] [trace] [Hyper-V Health Check] Running
[2024-04-25T15:48:57.064] [trace] [Hyper-V Health Check] [1496] Output: Running
[2024-04-25T15:48:57.064] [debug] [Hyper-V Health Check] [1496] Cmdlet exit status is 'true'
[2024-04-25T15:48:57.079] [trace] [Hyper-V Health Check] [1496] PowerShell state changed to NotRunning
[2024-04-25T15:48:57.080] [debug] [Hyper-V Health Check] [1496] PowerShell finished successfully
[2024-04-25T15:48:57.080] [trace] [Network Listing on Windows Platform] PowerShell arguments: Get-NetAdapter, -physical, |, Select-Object, -Property, Name,MediaType,PhysicalMediaType,InterfaceDescription, |, ConvertTo-Csv, -NoTypeInformation, |, Select-Object, -Skip, 1, |, foreach, {, $_, -replace, '^"|"$|"(?=,)|(?<=,)"','', }
[2024-04-25T15:48:57.080] [trace] [Network Listing on Windows Platform] PowerShell working dir ''
[2024-04-25T15:48:57.080] [trace] [Network Listing on Windows Platform] PowerShell program 'powershell.exe'
[2024-04-25T15:48:57.081] [trace] [Network Listing on Windows Platform] [0] PowerShell state changed to Starting
[2024-04-25T15:48:57.084] [trace] [Network Listing on Windows Platform] [0] PowerShell state changed to Running
[2024-04-25T15:48:57.084] [debug] [powershell.exe] [32400] started: powershell.exe Get-NetAdapter -physical | Select-Object -Property Name,MediaType,PhysicalMediaType,InterfaceDescription | ConvertTo-Csv -NoTypeInformation | Select-Object -Skip 1 | foreach { $_ -replace '^"|"$|"(?=,)|(?<=,)"','' }
[2024-04-25T15:48:58.022] [trace] [Network Listing on Windows Platform] [32400] PowerShell state changed to NotRunning
[2024-04-25T15:48:58.022] [debug] [Network Listing on Windows Platform] [32400] PowerShell finished successfully
[2024-04-25T15:48:58.022] [trace] [Network Listing on Windows Platform] [32400] Output:
Wi-Fi,Native 802.11,Native 802.11,Intel(R) Wi-Fi 6E AX211 160MHz
Ethernet,802.3,802.3,Intel(R) Ethernet Connection (17) I219-LM
[2024-04-25T15:48:58.023] [trace] [Hyper-V Switch Listing] PowerShell arguments: Get-VMSwitch, -ComputerName, localhost, |, Select-Object, -Property, Name,SwitchType,NetAdapterInterfaceDescription,Notes, |, ConvertTo-Csv, -NoTypeInformation, |, Select-Object, -Skip, 1, |, foreach, {, $_, -replace, '^"|"$|"(?=,)|(?<=,)"','', }
[2024-04-25T15:48:58.023] [trace] [Hyper-V Switch Listing] PowerShell working dir ''
[2024-04-25T15:48:58.023] [trace] [Hyper-V Switch Listing] PowerShell program 'powershell.exe'
[2024-04-25T15:48:58.023] [trace] [Hyper-V Switch Listing] [0] PowerShell state changed to Starting
[2024-04-25T15:48:58.027] [trace] [Hyper-V Switch Listing] [0] PowerShell state changed to Running
[2024-04-25T15:48:58.028] [debug] [powershell.exe] [5220] started: powershell.exe Get-VMSwitch -ComputerName localhost | Select-Object -Property Name,SwitchType,NetAdapterInterfaceDescription,Notes | ConvertTo-Csv -NoTypeInformation | Select-Object -Skip 1 | foreach { $_ -replace '^"|"$|"(?=,)|(?<=,)"','' }
[2024-04-25T15:48:58.986] [trace] [Hyper-V Switch Listing] [5220] PowerShell state changed to NotRunning
[2024-04-25T15:48:58.987] [debug] [Hyper-V Switch Listing] [5220] PowerShell finished successfully
[2024-04-25T15:48:58.987] [trace] [Hyper-V Switch Listing] [5220] Output:
Default Switch,Internal,,
Name             Type       Description
Default Switch   switch     Virtual Switch with internal networking
Ethernet         ethernet   Intel(R) Ethernet Connection (17) I219-LM
[2024-04-25T15:50:31.050] [trace] [client cert store] Verifying cert:
-----BEGIN CERTIFICATE-----
MIIBojCCAUegAwIBAgIEvF0HJjAKBggqhkjOPQQDAjBQMQswCQYDVQQGEwJVUzES
MBAGA1UECgwJQ2Fub25pY2FsMS0wKwYDVQQDDCQxMmJmMWRjZC02MWE4LTQzZjct
YjlmMy0xYzA2Y2FkYWEyN2EwHhcNMjQwNDI1MDgxODAxWhcNMjUwNDI1MDgxODAx
WjBQMQswCQYDVQQGEwJVUzESMBAGA1UECgwJQ2Fub25pY2FsMS0wKwYDVQQDDCQx
MmJmMWRjZC02MWE4LTQzZjctYjlmMy0xYzA2Y2FkYWEyN2EwWTATBgcqhkjOPQIB
BggqhkjOPQMBBwNCAAQ805QItEdLyQj95HTNVJ9W0ZFbZ1uGjuDVlLqU3zayxydY
Lfw2EA0Drh0MfuM6k+IeRgp990AkHWs3NYMNE+pIow8wDTALBgNVHREEBDACggAw
CgYIKoZIzj0EAwIDSQAwRgIhAPJqdlhOG6+NcX31ANGqZClJA9C4Ku25kzvGHvvr
JbXkAiEA0i53QmaZmVG9kqE3iRsixSNY35tgiIyo7K7Gy1WVMhs=
-----END CERTIFICATE-----

[2024-04-25T15:50:31.110] [trace] [url downloader] Found https://codeload.github.com/canonical/multipass-blueprints/zip/refs/heads/main in cache: true
[2024-04-25T15:50:31.121] [debug] [blueprint provider] Loading "anbox-cloud-appliance" v1
[2024-04-25T15:50:31.123] [debug] [blueprint provider] Loading "charm-dev" v1
[2024-04-25T15:50:31.124] [debug] [blueprint provider] Loading "docker" v1
[2024-04-25T15:50:31.125] [debug] [blueprint provider] Loading "jellyfin" v1
[2024-04-25T15:50:31.127] [debug] [blueprint provider] Loading "minikube" v1
[2024-04-25T15:50:31.129] [debug] [blueprint provider] Loading "ros-noetic" v1
[2024-04-25T15:50:31.129] [debug] [blueprint provider] Loading "ros2-humble" v1
launch failed: Unable to find an image matching "" in remote "".
georgeliao commented 2 months ago

Hi @codepic Thanks for reporting this. It looks like the image is absent somehow. Can you run multipass find --force-update which forces fetching images from the internet and try multipass launch again?

codepic commented 2 months ago

Hi @codepic Thanks for reporting this. It looks like the image is absent somehow. Can you run multipass find --force-update which forces fetching images from the internet and try multipass launch again?

That fixed it!

georgeliao commented 2 months ago

ok i see, @codepic , thanks for the info. We currently are implementing a retry mechanism in the case of download failure which will automatically handles this and save the user from manually running multipass find --force-update. This issue is a duplication of #3464

codepic commented 2 months ago

Thanks. I did find the duplicate but failed to spot the multipass find --force-update as a workaround in the thread.