Unlike VMWare or Virtual PC, Hyper-V does not have a functionality to share folders between the host and guest.You have to rely on a network connection to share folders or utilize a RDP session to transfer data.
There has been an update for Hyper-V called “Enhanced Session Mode” but its only available if your host is a Windows Server 2012 R2 and your guest is either a Windows Server 2012 R2 or a Windows 8.1. The Enhanced Session mode connection uses a RD session via the virtual machine bus (VMBus) and does need a network connection.
If you have network access, or can use the Enhanced Session Mode, you are probably fine… but my Hyper-V host is on an isolated network and I can not use the Enhanced Session Mode since my guests mainly consist of Windows 2008 R2 Servers.
However. It is possible to make a snapshot/checkpoint to export the data, or mount/dismount disks. There is plenty-a-lot of information about this on the net.
My solution for transferring data to the host is by scripting .ISO images(mkisofs) and use powershell to mount them.
(Un)Mount the CD/DVD image on your Hyper-V guests.
Get information of currently mounted images:
1 2 3 |
Get-VM | Get-VMDvdDrive | Select VMName,DvdMediaType,Path |
1 2 3 4 5 |
VMName DvdMediaType Path ------ ------------ ---- [name] ISO D:\temp.iso |
Unmount:
1 2 3 |
Set-VMDvdDrive [VMName] -path $null |
Mount:
1 2 3 |
Set-VMDvdDrive [VMName] -path [path_to_ISO_image] |