canonical / multipass

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

Cannot install/run multipass on Windows 10 unable to set driver to hyperv #3763

Open brucejo75 opened 4 days ago

brucejo75 commented 4 days ago

Describe the bug Multipass cannot connect to the multipassd.exe socket.

Suspect that latest version of Windows 10 may have changed something.

To Reproduce

  1. Installed latest version of Multipass on Windows 10.
  2. Goes into a loop Attempting to set driver to hyperv infinite loop
  3. Clicked Show details:
    • Attempting to set driver to hyperv
    • set failed: cannot connect to multipass socket
    • Please ensure multipassd is running and "localhost:40041' is accessible
  4. I checked that multipassd.exe is running.

It finally stopped attempting but the program is not running and I keep getting socket connection errors.

I tried this on versions: 1.10.1, 1.10.1, 1.13.1 & 1.14.1

Expected behavior expected Multipass to install without errors.

Logs Tried to run the install that had errors, captured logs.

Multipass Logs ```log 2024-11-01 14:02:50.266880 ERROR Error on polling info gRPC Error (code: 14, codeName: UNAVAILABLE, message: Error connecting: SocketException: The remote computer refused the network connection. (OS Error: The remote computer refused the network connection. , errno = 1225), address = localhost, port = 58403, details: null, rawResponse: null, trailers: {}) 2024-11-01 14:02:52.431113 ERROR Error on polling info gRPC Error (code: 14, codeName: UNAVAILABLE, message: Error connecting: SocketException: The remote computer refused the network connection. (OS Error: The remote computer refused the network connection. , errno = 1225), address = localhost, port = 58405, details: null, rawResponse: null, trailers: {}) 2024-11-01 14:02:54.580980 ERROR Error on polling info gRPC Error (code: 14, codeName: UNAVAILABLE, message: Error connecting: SocketException: The remote computer refused the network connection. (OS Error: The remote computer refused the network connection. , errno = 1225), address = localhost, port = 58407, details: null, rawResponse: null, trailers: {}) 2024-11-01 14:02:56.731846 ERROR Error on polling info gRPC Error (code: 14, codeName: UNAVAILABLE, message: Error connecting: SocketException: The remote computer refused the network connection. (OS Error: The remote computer refused the network connection. , errno = 1225), address = localhost, port = 58409, details: null, rawResponse: null, trailers: {}) ```

Additional info

Additional context

  1. I added multipassd.exe to the allowed apps list for the Windows Firewall. Both Private and Public. Noticed that all ports were already opened multipass.exe & multipassd.exe.
  2. Verified that multipassd.exe is running
  3. Verified that Multipass Service is running
  4. I had installed one of the earlier versions before without issue. Maybe it is the update of Windows 10?
2021400278zzc commented 2 days ago

Failed to set driver. Will try again in 1 second. Please use 'multipass authenticate' before proceeding. Failed to set driver. Will try again in 1 second. Attempting to set driver to hyperv[2K [OA [OEset failed: The client is not authenticated with the... Please use 'multipass authenticate' before proceeding. Failed to set driver. Will try again in 1 second. Attempting to set driver to 'hyperv'[2K [OA [OEset failed: The client is not authenticated with the. Please use 'multipass authenticate' before proceeding. Failed to set driver. Will try again in 1 second.

2021400278zzc commented 2 days ago

This appears during installation

2021400278zzc commented 2 days ago

I wonder why

levkropp commented 12 hours ago

Hi @2021400278zzc , this appears to be a different issue than the OP, please make a new issue and follow the issue template so that we can help you better with this!

levkropp commented 12 hours ago

Hi @brucejo75 , would you be able to access the logs on your Windows machine and send them here as files?

Additionally, can you provide us with more information on your Windows 10 installation, such as whether it is Home/Pro/Enterprise?

brucejo75 commented 11 hours ago

Hi @levkropp,

I am running Windows 10 Pro Version 22H2 (OS Build 19045.5073)

To reproduce a 1st install I did these steps:

  1. Uninstall Multipass
  2. Delete %APPDATA%\com.canonical
  3. Start install.

Install completes, but the installer never resolved an error connecting the multipass service.

At this point the %APPDATA%\com.canonical folder is not created. I copied out the Event Viewer log for multipass: Multipass Events.txt

To generate GUI logs, I started the Multipass App, which sits in an infinite loop "Waiting for daemon". This does produce a log in the Multipass GUI folder: multipass_gui.log

Hope this helps!

PS: I repeated steps 1-3 as admin and got the same results with these logs: Multipass Events-admin.txt multipass_gui.log