locked
copy files from Physical Host to hyperv Virtual Machine RRS feed

  • Question

  • how to copy and paste physical host to hyperv virtual machine,there is any way to use usb in hyperv and also DVD drive i cannot

    use more than one Vm ,then hyperv is not working,there is any hotfix for this .

    Monday, February 7, 2011 9:27 PM

Answers

  • I agree with Bill. If you aren't sure how to do it, here is how you can do it:

    1. Create a Virtual Network in Hyper-V. Refer to this link for creating one: http://technet.microsoft.com/en-us/library/cc732470(WS.10).aspx
    2. Once you create the network, in the section "What do you want to connect this network to?", choose "External" and choose the appropriate network adapter.
    3. If you haven't done this already, shut down the VM and add a Network Adapter to it. In the same link above, check the section "To add a network adapter to a virtual machine".
    4. Once you add the adapter, go to the settings of the VM and highlight "Network Adapter". On the right hand pane, go to "Network" and click on the drop down list. Select the available network from there.
    5. Power on the VM and then give it an IP address with the same addressing scheme as your host computer.

    To share files:
    ---------------------------
    Once you have established network connectivity, you can share files in multiple ways:
    a) Using network file sharing (like Bill mentioned above).
    b) Using Remote Desktop and mapping your local drives to the VM.

    Hope this helps.


    Krish MSFT
    Tuesday, February 8, 2011 5:05 AM

All replies

  •   Why not use ordinary network file sharing, as you would between two physical machines?

     


    Bill
    Tuesday, February 8, 2011 12:00 AM
  • I agree with Bill. If you aren't sure how to do it, here is how you can do it:

    1. Create a Virtual Network in Hyper-V. Refer to this link for creating one: http://technet.microsoft.com/en-us/library/cc732470(WS.10).aspx
    2. Once you create the network, in the section "What do you want to connect this network to?", choose "External" and choose the appropriate network adapter.
    3. If you haven't done this already, shut down the VM and add a Network Adapter to it. In the same link above, check the section "To add a network adapter to a virtual machine".
    4. Once you add the adapter, go to the settings of the VM and highlight "Network Adapter". On the right hand pane, go to "Network" and click on the drop down list. Select the available network from there.
    5. Power on the VM and then give it an IP address with the same addressing scheme as your host computer.

    To share files:
    ---------------------------
    Once you have established network connectivity, you can share files in multiple ways:
    a) Using network file sharing (like Bill mentioned above).
    b) Using Remote Desktop and mapping your local drives to the VM.

    Hope this helps.


    Krish MSFT
    Tuesday, February 8, 2011 5:05 AM
  • Hello,

    For security reasons, sharing in Hyper-V is going to function exactly like a physical server.  The only way to share will be through the network of the virtual machines.  You could mount an ISO, but it would only be an emulated DVD.  You could also mount a VHD, copy files to it, unmount it, then mount it on the other machine.  In any case, the concepts are similar to physical machines.

    Nathan Lasnoski


    http://blog.concurrency.com/author/nlasnoski/
    • Proposed as answer by PS1Master Friday, July 13, 2018 12:15 AM
    Tuesday, February 8, 2011 5:06 AM
  • if i use external network ,can i use internal network adapter at the same time for hyperv guests

     

     

     

    I agree with Bill. If you aren't sure how to do it, here is how you can do it:

    1. Create a Virtual Network in Hyper-V. Refer to this link for creating one: http://technet.microsoft.com/en-us/library/cc732470(WS.10).aspx
    2. Once you create the network, in the section "What do you want to connect this network to?", choose "External" and choose the appropriate network adapter.
    3. If you haven't done this already, shut down the VM and add a Network Adapter to it. In the same link above, check the section "To add a network adapter to a virtual machine".
    4. Once you add the adapter, go to the settings of the VM and highlight "Network Adapter". On the right hand pane, go to "Network" and click on the drop down list. Select the available network from there.
    5. Power on the VM and then give it an IP address with the same addressing scheme as your host computer.

    To share files:
    ---------------------------
    Once you have established network connectivity, you can share files in multiple ways:
    a) Using network file sharing (like Bill mentioned above).
    b) Using Remote Desktop and mapping your local drives to the VM.

    Hope this helps.


    Krish MSFT

    Wednesday, February 9, 2011 5:00 AM
  • Hi,

    checkout following blog, possibly this helps to understand the usage of external/internal or private networks in Hyper-V.

    Regards

    Ramazan


    Ramazan Can [MVP Cluster] http://ramazancan.wordpress.com/
    Wednesday, February 9, 2011 8:29 AM
  • this fine if the host and the virtual machine happen to be connected by a network, what happens if they aren't?

    For example, I have test VMs that are completely isolated as I do not want want them anywhere near the production network.

    The only way I can think of, is to copy the files to an ISO, mount the ISO on the VM and access the files from there. A bit long winded, does anyone have a better idea?



    • Edited by zx6dude Friday, June 29, 2012 1:59 PM
    Friday, June 29, 2012 1:58 PM
  • Think of how you would accomplish it with two physical machine.  If you don't have a network connection between the two physical machines, you need to come up with a way that does not involve a network.  An ISO is one way.  A VHD is another.  (You can't mount a USB to a VM, but you can create a VHD on a USB drive and mount that to the VM).  If you have network access from a workstation to the VM, you can also use RDP.  RDP into the VM and map a local drive from the workstation to the VM.  It's not the most efficient protocol, but it works.  But again, if there is absolutely no network between the two, do it in the same manner as you would with two physical machines that are not connected via the network.

    tim

    Monday, July 2, 2012 6:59 PM
  • Hi

    Like mentioned above you could covert the file into an iso and mount the isousing something like:

    http://techtonis.wordpress.com/2012/10/24/isomaker/

    Thank You

    Thursday, November 1, 2012 9:24 AM
  • Make a both machine vm as well as host, in same network and through IP can transfer files, There is one more option make a single iso file of the files you want to copy and just mount the same as a CD\DVD drive of the VM

    Saturday, December 8, 2012 2:50 PM
  • I created a new VHD and attached it to my local machine, copied the files required and then attached it to the VM :) 
    • Proposed as answer by jumpinf00l_ Sunday, August 16, 2015 12:17 PM
    Tuesday, July 29, 2014 6:56 PM
  • The instructions in the link you provided do not match up with my experience of using Hyper-V.  I see nothing that says "Virtual Network", rather I see "Virtual Switch".  This tells me the instructions are quite probably significantly out of date.

    Additionally, I am unable to create a VHD on my flashdrive.

    The original question was how to copy and paste, as was possible on Windows 7, from the host computer to the VM running on it?  Is there an answer which addresses that question?

    Monday, February 19, 2018 2:43 AM
  •   There is no answer because it cannot be done using anything built into Hyper-V. You have to use the normal functions built into the OS of the host and guest. If the guest is Windows, the simplest approach is to use Windows file sharing (which requires a network connection between host and guest).

      Yes, a virtual network is now called a virtual switch, but the same thing applies. If you want a network connection between host and guest, an internal switch is the way to go.

      Why would you create a VHD file on a flashdrive? There is no native support for USB in Hyper-V. How could you plug a physical flashdrive into a virtual machine?

      If you are using Hyper-V on Windows 10 you would have more success posting in the client forum, not this server forum.

    https://social.technet.microsoft.com/Forums/windows/en-US/home?forum=win10itprovirt

     

    Bill

    Monday, February 19, 2018 5:01 AM

  • how to copy and paste -hyperv is not working - there is any hotfix for this .

    Copy and paste isn't magic. It doesn't work across the room and onto another machine.

      Why not ordinary network file sharing


    Bill

    You answered your own question when you clicked "download".  

    I agree with Bill.


    Krish MSFT

    No you don't.

    For security reasons, sharing in Hyper-V is going to function exactly like a physical server.  In any case, the concepts are similar to physical machines.

    Nathan Lasnoski

    I have test VMs that are completely isolated as I do not want want them anywhere near the production network. 

    zx6dude

    These could be the exact definitions of "why?" a virtual machine.

     does anyone have a better idea?

    There is no better idea. Let's remain calm. It's all working correctly.

    The instructions in the link you provided do not match up nothing that says "Virtual Network", rather I see "Virtual Switch".  This tells me the instructions are quite probably significantly out of date. Is there an answer which addresses that question?

    "You say potato I say potato?"

    There is no answer because it cannot be done using anything built into Hyper-V.


    Bill

    Because a VM that actually functions by definition; as a VM - can be a bit confusing: Assume that if you can't do it in in the real world YOU CANNOT do it in Hyper. Just imagine that everything is set up to function as you would expect; if you hadn't suffered years of inferior products. Well done Microsoft. So well done.

    It's products like this, "that just work" the way they're supposed to that has me a back on Windows as an OS and … just a little "hesitantly" but fully wanting and trying to re-learn to "just go with Microsoft -whatever it is" - like I could trust MS back in the XP years - with more than money: my time to learn to love Microsoft again.

    And I'm guessing more than a couple people may be just confused that MS Products "just work" and so well. 

    Friday, May 4, 2018 11:11 PM
  • if Question still is : "copy files from Physical Host to  hyperv Virtual Machine"

    plz use below steps :

    1. go to hyper-v console

    2. right click on server (from the list which comes on left side) and select Hyper-V settings

    3. in Enhanced session mode check 'use enhanced session mode'

    4 use MSTSC (as admin) > show options > local resources > keep checked Clipboard , fill VM details and connect

    OR

    start VMconnect (as admin) > show options > local resources > keep checked Clipboard , fill VM details and connect

    you can copy files from/ to VM to PM

    Sunday, May 6, 2018 7:29 PM