question

LaraVarner-2944 avatar image
0 Votes"
LaraVarner-2944 asked LaraVarner-2944 commented

Cannot copy and paste between Hyper-V and windows 11


I cannot copy and paste (not text, not file) anything between Hyper-V Window 11 Pro
I have made sure that the Guest Services was checking in the VM settings and that Use enhanced session mode is check in Hyper-V Settings.

windows-server-hyper-v
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

DSPatrick avatar image
0 Votes"
DSPatrick answered DSPatrick commented

That's normal and expected behavior for a console session. Try using an RDP session instead.

--please don't forget to upvote and Accept as answer if the reply is helpful--



· 9
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Can you give me a link that explains the procedure? I saw a few videos but could not solve this problem

0 Votes 0 ·
DSPatrick avatar image DSPatrick LaraVarner-2944 ·

From the search box type in Remote Desktop

--please don't forget to upvote and Accept as answer if the reply is helpful--


191633-image.png



0 Votes 0 ·
image.png (552.4 KiB)

OK, In the computer box I have to give the name or IP of my computer or Ubuntu which runs in hyper-V?

0 Votes 0 ·
Show more comments
LimitlessTechnology-0326 avatar image
0 Votes"
LimitlessTechnology-0326 answered LaraVarner-2944 commented

Hello
,
Thank you for your question and reaching out.
Well
Check This
Here is a quick and easy way to get this work efficiently:

If you're running the VM, turn it off first.
find your virtual hard disk image file .vhd of your VM
Right click on this file and select mount
This will give "System Reserved" and "Local Disk" drives.
Open the "Local Disk" drive (this is the OS drive on VM)
Go there and paste you files.
Finally unmount or eject one of the drivers
Run the VM and go the c:\ drive there and you will find your files.

It can be done via Powershell.

First, create a session with New-PSSession from the HOST:

$s = New-PSSession -VMName <VMName> -Credential (Get-Credential)
Then, from the HOST, copy the file via Copy-Item using the session:

Copy-Item -ToSession $s -Path C:\host_path\data.txt -Destination C:\guest_path\
Also
This is possible in Hyper-V Post windows server 2012 R2.

This functionality is known as "Enhanced Session Mode" in windows server 2012 R2.

Once you enable Enhance session mode in the Hyper-V setting for the Server you need to just start the VM and select "Connect" once prompted.

Now you will be able to copy paste files and folders without having RDP of the server

And see if it helps,



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

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thank you for taking the time to write this explanation
In fact, I went your way and several ways, but every time I came across an error or it wanted something I did not know what or where to get it.
In fact, I can't even copy and paste text from Windows into Ubuntu (installed in vm) and vice versa, neither in hyper-v nor in vmware
Maybe the problem is due to my anti-virus or maybe I changed the settings, because some of my friends can copy and paste the text between Windows and vm without any problems, but I can't
Maybe I should install Ubuntu instead of my virtual machine

0 Votes 0 ·