Share via

WSL Remote Connection Issue with VS Code

PaulinaKC 5 Reputation points
2023-09-27T11:51:21.8066667+00:00

I am trying to use WSL on VS Code, but upon opening VS Code, I keep getting the following error messages:

Unable to detect if server is already installed: Error: Failed to probe if server is already installed: code: Failed to probe if server is already installed: code: 4294967295, , Logon failure: the user has not been granted the requested logon type at this computer.

[2023-09-26 21:23:29.110] Error code: Wsl/Service/CreateInstance/CreateVm/0x80070569

I have tried addressing both error codes individually, and seemed to have some temporary success with code 4294967295 by trying several options:

uninstall and reinstall wsl ubuntu directly from microsoft store (rather than command line)

make sure my user is admin and has access

disable/reenable wsl by running powershell as admin and using the lines

DISM /online /disable-feature /featurename:VirtualMachinePlatform /norestart

DISM /online /disable-feature /featurename:Microsoft-Windows-Subsystem-Linux /norestart

and then enable-feature after restarting

reset winsock with netsh winsock reset

set hypervisor to start automatically with bcdedit /set hypervisorlaunchtype auto

All of these fixes worked for about 24 hours or less, before returning to the same issue where I once again have to do one of those prompts and restart my computer. I really need a permanent solution so that I do not have to constantly restart my computer (I am using a Dell PC). Would greatly appreciate any help.

Windows for business | Windows Server | User experience | Other
Developer technologies | Visual Studio | Other
Developer technologies | Visual Studio | Other

A family of Microsoft suites of integrated development tools for building applications for Windows, the web, mobile devices and many other platforms. Miscellaneous topics that do not fit into specific categories.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Anna Xiu-MSFT 31,201 Reputation points Microsoft External Staff
    2023-09-28T02:01:44.0033333+00:00

    Hi @PaulinaKC

    Welcome to Microsoft Q&A! 

    Your issue is related to Visual Studio Code, please post it to the Stack Overview tagged visual-studio-code forum or GitHub repository where you would get professional support for the product “Visual Studio Code”.

    Thanks for your understanding. 

    Sincerely,

    Anna


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

     

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.