Hyper-V and WSL2 Ubuntu22.04 Installation Fault & Network question

Kife LLM 20 Reputation points
2024-08-28T02:30:17.53+00:00

Hi:

Firstly:

When I use Hyper-V to create a virtual machine by quick-create, after online-searching complete, it notices me a fault : 常规错误 , I dont know it is called in English Windows version. How to reslove this problem?

Second:

When I use WSL2 to install ubuntu22.04, no problem.

But ubuntu cannot reach the Internet , I hava no idea where the problem is

.wslconfig:

[experimental]

autoMemoryReclaim=gradual

networkingMode=mirrored

dnsTunneling=true

autoProxy=true

sparseVhd=true

Thirdly:

The hyper-v virtual machine switches also have problem:

User's image

User's image

Hyper-V
Hyper-V
A Windows technology providing a hypervisor-based virtualization solution enabling customers to consolidate workloads onto a single server.
2,706 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,583 questions
Microsoft Intune Linux
Microsoft Intune Linux
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Linux: A family of open-source Unix-like operating systems.
49 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Jing Zhou 6,865 Reputation points Microsoft Vendor
    2024-08-29T02:15:39.4433333+00:00

    Hello,

     

    Thank you for posting in Q&A forum.

    To resolve this hyper-V fault, can you try to create Hyper-V machine manually and check if it persists?

    Meanwhile, you can backup and delete auto-generated files in WSL:

    sudo cp /etc/wsl.conf /etc/wsl.conf.bk

    sudo cp /etc/resolv.conf /etc/resolv.conf.bk

    sudo rm /etc/resolv.conf || true

    sudo rm /etc/wsl.conf || true

    After restarting WSL2 Ubuntu server, please check if internet connectivity is restored.

     

    I hope the information above is helpful.

    If you have any questions or concerns, please feel free to let us know.

     

    Best regards,

    Jill Zhou

     


    If the Answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

Your answer

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