how do you copy files to virtual machine on hyperV.?

Discussion in 'Virtualization' started by raptorddd, Jul 2, 2022.

  1. raptorddd

    raptorddd MDL Addicted

    Aug 17, 2019
    702
    263
    30
    how do you copy files to the virutal machine.on hyperV windows 10 21H2.?
     
  2. Carlos Detweiller

    Carlos Detweiller Emperor of Ice-Cream

    Dec 21, 2012
    6,507
    7,270
    210
    Try Copy-Pasting between the machine windows. If that won't work, Network (SMB) or FTP, SFTP will.
     
  3. ZaForD

    ZaForD MDL Expert

    Jan 26, 2008
    1,212
    200
    60
    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.

    Good Luck...
     
  4. raptorddd

    raptorddd MDL Addicted

    Aug 17, 2019
    702
    263
    30
    #4 raptorddd, Aug 15, 2022
    Last edited: Aug 16, 2022
    (OP)
    yes mount and unnmount causes VM not to start..

    could you please. explain or guide me. the network connection.? does this needs wifi.?

    *****update*********88

    never mind. found a way.already.
     
  5. Sirus Wick

    Sirus Wick MDL Novice

    Nov 12, 2022
    9
    1
    0
    If Enhanced Session is enabled, u should be able to just copy/paste between host and guest.
     
  6. INTRASERVER

    INTRASERVER MDL Novice

    Jan 29, 2018
    9
    1
    0
    I can sugest to connect RDP to Guest OS, then you have more choices to get manage.
     
  7. LiteOS

    LiteOS Windowizer

    Mar 7, 2014
    2,300
    1,015
    90
    enable enhanced session and u will be able to remotely connect to it and then
    copy paste will work
     
  8. acer-5100

    acer-5100 MDL Guru

    Dec 8, 2018
    4,007
    2,888
    150

    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.
     
  9. LiteOS

    LiteOS Windowizer

    Mar 7, 2014
    2,300
    1,015
    90
    #10 LiteOS, Jun 3, 2023
    Last edited: Jun 7, 2023
    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
     
  10. acer-5100

    acer-5100 MDL Guru

    Dec 8, 2018
    4,007
    2,888
    150
    #11 acer-5100, Jun 3, 2023
    Last edited: Jun 3, 2023

    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. :D