Hyper-v Share folders between Host and Guest Operating System

Unlike VMware WorkStation or Virtual PC(Shared folders) ,Hyper-v do not have Easy way to share Host Machine Shared Folders unless you do some Configuration Smile.

In this post,will go through how to Access Your Host shared folders(Physical Machine) from your Guest OS (Hyper-v) Machines and Vice Versa (Guest to Host).

I am running Hyper-V on my Windows 8 machine and it is Great.

After you install Hyper-V,You must have Created Internal Virtual Switch Via Virtual Switch Manager to be used only for Your Lab computers.

If you want to have Internet connection on Lab machines ,you can add one more virtual Switch in addition to above local network with External and use your local Network Card.

 

image

As you see from above,I have 2 Virtual Switches one used only to communicate within the lab computers and other is to provide Internet connection where ever is needed.

But for sharing you do not need to have Internet Virtual Switch . It is only to get internet.

Once you are done with creation of Virtual Switch with Internal,You will find this from your Physical machine(Host) network connections.

image

You see from above CM12Lab .

Open the CM12Lab network Connection. go to Properties—> Click on Sharing Tab

image

Select “Allow other network Users to connect though this Computer Internet connection”

Now we have to configure the IP Address .

Go to Networking Tab,Click on Internet Protocol Version 4. Provide the IP address which is used with in the Lab machines Range.

I use 192.160.10.X series. So I used 192.168.10.1 and DNS address is Lab Machine Domain Name.

image

Click on Ok ,Close.

We are almost done .

Now Test it how it works :

Note :IF your windows Firewall is Enabled on Host Machine,Try to allow File and Print Sharing in windows Firewall else you will fail to access.

Access the above Given IP from your Hyper-V Machine ,it will ask for Authentication which is your Host machine credentials.

image

You are done ! I see my Share folders from my Host Machine. This way I can easy access my shared folders from Hyper-V Machines.

You can do the same to access files from your Guest OS to Physical Machine.

Until Next !

6 Responses to "Hyper-v Share folders between Host and Guest Operating System"

  1. I did check smsts.log it shows that os partition is not active and its not supported. I have selected external network to communicate my nw share..i dint add any nw drivers . i will try as u said in previous mail and get back to u...... Thanks for ur reply...

    Reply
  2. Hi Eswar,

    Thanks for your post related to share folder on Hyper-v. i need small clarification. i have Hyper-v virtual lab which consists of SCCM server and Domain controllerand SCCM server is installed successfully. now i am trying capture the win7 image.i have created capture media in sccm but i have got an error while capture the machine.

    Fyi, i have only one partition(C:120GB(VHD)) in my win7 lab machine

    do we need to configure anything before capturing the image ?

    Please find the SMSS.Log below:

    FindAdapter( pszPropertyName, pszPropertyValue ), HRESULT=80004005 (e:\nts_sms_fre\sms\framework\osdcore\netwmiadapterconfig.cpp,64)]LOG]!>

    Reply
    1. you will have to check smsts.log for more information.Did you add the Netowork Drivers ? when you are on WinPe,press F8,try ipconfig if you get any information or not

      Reply
  3. The only issue that I with this setting is that if you are using a computer(host) for which company policy does not allow internet sharing. Also taking the following scenario:
    a) VM DC IP 10.0.0.1
    b) VM guest1 10.0.0.2
    If you create an InternalSwitch using Internal and assign an IP such as 192.168.1.100 with subnet 255.255.255.0 leaving everything else blank, then you can share folder one way, but not both.
    Any ideas
    Thank you
    Tmas

    Reply
  4. Hello There,

    My name is Michelle and I'm a professional blogger.

    I have over three years of experience writing for the web and have covered plenty of topics about Technology.

    I noticed that you have a blog and was wondering if you would be interested in allow me to write relevant, useful topics about Technology related on your blog at no cost.

    At this point in my writing career, I simply want to get more visibility for your writing and I will write for free as long as you are okay with me adding a small author bio section next to each blog post about myself.

    Please let me know if you're interested and if you'd like for me to submit a sample blog post for your approval.

    Thanks a bunch,

    Michelle

    Reply
    1. Hi Michelle,
      Thanks for your interest.This is blog is dedicated to system center technologies and its connected objects all together .if you are interested in working on these products,happy to go.

      Reply

Leave a Reply