Cannot access ubuntu hyper-v via internal network

Duc Nguyen 0 Reputation points
2023-05-23T03:30:56.5366667+00:00

I installed Ubuntu 22.04 on hyper-v and I wanted to have a shared folder between the host and guest so I created an internal network switch, for the guest I set the ip as 10.0.0.3 and the host as 10.0.0.2. After changing outbound rule, I can ping from guest to host and vice versa. I opened the folder share on the guest but when I go back to Windows and go to add a network location and select the guest, it said "Window cannot access \DUC" with error code 0x80070035"

Windows for business Windows Client for IT Pros Storage high availability Virtualization and Hyper-V
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 44,751 Reputation points
    2023-05-23T11:16:27.99+00:00

    Hello

    Thank you for your question and reaching out.

    Thank you for your question and reaching out. I can understand you are having queries related to accessing Windows shared folder from Linux VM.

    You can use from Ubuntu VM the smbclient, the command-line SMB/CIFS clients for Unix, is the command-line tool to access to your Windows host share folders

    For Example :

    $ sudo mount.cifs //<NAME\IP OF YOUR PC>/<SHARED FOLDER NAME>

    ~/SharedFolder -o user=<YOUR WINDOWS USERNAME>

    --If the reply is helpful, please Upvote and Accept as answer--

    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.