Discussion in 'Virtualization' started by raptorddd, Jul 2, 2022.
how do you copy files to the virutal machine.on hyperV windows 10 21H2.?
Try Copy-Pasting between the machine windows. If that won't work, Network (SMB) or FTP, SFTP will.
I haven't used Hyper-V for a while, but like all Hypervisors it has a 'Local Host' network connection.
This lets you connect the VM guest to the Host via a private network (I think its called an 'Internal Network' on Hyper-V)
Set the network up in the Hyper-V settings and then share a folder on the VM.
The folder should appear in the Network section of Windows Explorer on the Host.
Or for a 'Down and Dirty' solution.
Navigate to the .VHDX file for the VM.
'Mount' the VM into Windows Explorer.
Copy the files you want into the VM.
Becareful, this option can cause file corruption on the VM.
And remember to 'Unmount' the .VHDX before you startup the VM, or it will fail to start.
yes mount and unnmount causes VM not to start..
could you please. explain or guide me. the network connection.? does this needs wifi.?
never mind. found a way.already.
If Enhanced Session is enabled, u should be able to just copy/paste between host and guest.
I can sugest to connect RDP to Guest OS, then you have more choices to get manage.
You need to login to view this posts content.
enable enhanced session and u will be able to remotely connect to it and then
copy paste will work
The enhanced session is just a special RDP connection (also requires W8.1+ to work). So even if it's disabled connecting to the machine via RDP does the job the same way (I think vista is enough to copy/paste files via RDP).
That said the obvious (and way faster) way is to use the bridged connection and access smb folders, something that works since the days of DOS, when virtualization was science fiction).
Copy/ paste make sense to quickly paste a single small file, not as a replacement of the proper way.
yea also there a bug with it
it will make the vhd file bigger even pasting small files ( was old hyper-v, wasnt tested on new )
i mostly use mounting the vhd way
i dont use file sharing cos i do lots of testing with many OSs and also for security
You don't even have to share the folders, just use the administrative shares like \\VM-name-or-IP\D$
It's harder to explain than to do.