Windows 10: how do i copy a file from host to hyperv vm

Discus and support how do i copy a file from host to hyperv vm in Windows 10 Virtualization to solve the problem; Where am I going wrong. I am on windows10 pro; have enabled guest services and tried this command top copy to the hyperv vm: Copy-VMFile "raspi"... Discussion in 'Windows 10 Virtualization' started by rainbow3, Apr 28, 2021.

  1. rainbow3 Win User

    how do i copy a file from host to hyperv vm


    Where am I going wrong. I am on windows10 pro; have enabled guest services and tried this command top copy to the hyperv vm:

    Copy-VMFile "raspi" -SourcePath "D:\temp.txt" -DestinationPath "/home/pi" -CreateFullPath -FileSource host

    Copy-VMFile : Failed to initiate copying files to the guest.
    Failed to copy the source file 'D:\temp.txt' to the destination '/home/pi' in the guest.
    'raspi' failed to initiate copying files to the guest: Unspecified error (0x80004005). (Virtual machine ID 3C028648-F65B-4565-ADCA-40F1290FB0BE)
    'raspi' failed to copy the source file 'D:\temp.txt' to the destination '/home/pi' in the guest: Unspecified error (0x80004005). (Virtual machine ID 3C028648-F65B-4565-ADCA-40F1290FB0BE)
    At line:1 char:1
    + Copy-VMFile "raspi" -SourcePath "D:\temp.txt" -DestinationPath "/home ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: how do i copy a file from host to hyperv vm :)) [Copy-VMFile], VirtualizationException
    + FullyQualifiedErrorId : OperationFailed,Microsoft.HyperV.PowerShell.Commands.CopyVMFile
    ####################################################

    :)
     
    rainbow3, Apr 28, 2021
    #1
  2. Bree Win User

    how do i copy a file from host to hyperv vm

    Welcome to Ten Forums.


    You haven't said what the guest OS is, but from your destination path it would appear to be some form of Linux. Depending on which one it may, or may not, have the required Linux Integration Services. This may help, if not for Copy-VMFile itself, then it suggests alternative ways to transfer a file. Method 4, a transfer vhdx, should work whatever the guest OS is.

    altaro.com | 4 Ways to Transfer Files to a Linux Hyper-V Guest

    My guest VMs are all various versions of MS Windows, Copy-VMFile works for them.
     
  3. RajivIyer Win User
    Cannot open a default share C$ from a HyperV VM to host machine.

    Hi,

    I am unable open a default share C$ from a HyperV VM to host machine.

    I have a Windows 10 Host machine (PC-A) running HyperV and a VM running Windows Server 2019 on top of it (PC-B).

    PC-A configuration: Windows Firewall enabled by default. Enabled File and Print Sharing via "allow an app or feature through Windows Defender Firewall"

    PC-B (VM) configuration: Windows Firewall enabled by default. Enabled File and Print Sharing via "allow an app or feature through Windows Defender Firewall"

    I am able to PING both ways. From PC-A to PC-B (VM), I am able to open the default share (C$/D$) using windows authentication.

    From PC-B (VM) to PC-A I am able to ping but I am not able to open the default share (C$/D$) using windows authentication. I get Access Denied error message.

    I even tried to turn off the firewall on PC-A, but it does not work.

    Please help!
     
    RajivIyer, Apr 28, 2021
    #3
  4. rainbow3 Win User

    how do i copy a file from host to hyperv vm

    how do i copy a file from host to hyperv vm

    Where am I going wrong. I am on windows10 pro; have enabled guest services and tried this command top copy to the hyperv vm:

    Copy-VMFile "raspi" -SourcePath "D:\temp.txt" -DestinationPath "/home/pi" -CreateFullPath -FileSource host

    Copy-VMFile : Failed to initiate copying files to the guest.
    Failed to copy the source file 'D:\temp.txt' to the destination '/home/pi' in the guest.
    'raspi' failed to initiate copying files to the guest: Unspecified error (0x80004005). (Virtual machine ID 3C028648-F65B-4565-ADCA-40F1290FB0BE)
    'raspi' failed to copy the source file 'D:\temp.txt' to the destination '/home/pi' in the guest: Unspecified error (0x80004005). (Virtual machine ID 3C028648-F65B-4565-ADCA-40F1290FB0BE)
    At line:1 char:1
    + Copy-VMFile "raspi" -SourcePath "D:\temp.txt" -DestinationPath "/home ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: how do i copy a file from host to hyperv vm :)) [Copy-VMFile], VirtualizationException
    + FullyQualifiedErrorId : OperationFailed,Microsoft.HyperV.PowerShell.Commands.CopyVMFile
    ####################################################
     
    rainbow3, Apr 28, 2021
    #4
Thema:

how do i copy a file from host to hyperv vm

Loading...
  1. how do i copy a file from host to hyperv vm - Similar Threads - copy file host

  2. W10 VM on W2K19 VM on KVM Host !! nested VM's

    in Windows 10 Virtualization
    W10 VM on W2K19 VM on KVM Host !! nested VM's: Hi folks So far got HYPER-V to run on a Virtual machine creating a lower level W10 VM - The W2K19 machine is itself a VM running on under KVM/QEMU So far only got Gen 1 to work -- with Gen 2 machine starts but no video - will look at that later but here's the Gen 1 VM So...
  3. HyperV - Host can't get connection

    in Windows 10 Network and Sharing
    HyperV - Host can't get connection: Hello everyone, I have a Windows server 2019 with HyperV, I tried to create an external switch and link a server VM but can't get an internet connection the host is connected, it's a server in the cloud. I have tried the trick remove the "allow management OS to share this...
  4. Cannot open a default share C$ from a HyperV VM to host machine

    in Windows 10 Network and Sharing
    Cannot open a default share C$ from a HyperV VM to host machine: Hi, I am unable open a default share C$ from a HyperV VM to host machine. I have a Windows 10 Host machine PC-A running HyperV and a VM running Windows 10 on top of it PC-B. PC-A configuration: Windows Firewall enabled by default. Enabled File and Print Sharing via...
  5. Cannot open a default share C$ from a HyperV VM to host machine.

    in Windows 10 Network and Sharing
    Cannot open a default share C$ from a HyperV VM to host machine.: Hi, I am unable open a default share C$ from a HyperV VM to host machine. I have a Windows 10 Host machine PC-A running HyperV and a VM running Windows Server 2019 on top of it PC-B. PC-A configuration: Windows Firewall enabled by default. Enabled File and Print Sharing...
  6. How do I copy files from the WindowsApps folder?

    in Windows 10 Ask Insider
    How do I copy files from the WindowsApps folder?: Whenever I try to copy Minecraft: Dungeons, it gives: "You need permission from your computer's administrator to perform this action." When I try to change it to read and write, it says "Access is denied." I already set my user and group (Administrators) to full control, and...
  7. issue with connecting to a newly created hyperv VM

    in Windows 10 Ask Insider
    issue with connecting to a newly created hyperv VM: submitted by /u/tyanu_khah [link] [comments] https://www.reddit.com/r/Windows10/comments/flbbf4/issue_with_connecting_to_a_newly_created_hyperv_vm/
  8. RDP into Ubuntu 18.04 Desktop VM on HyperV with xRPD from other device

    in Windows 10 Virtualization
    RDP into Ubuntu 18.04 Desktop VM on HyperV with xRPD from other device: Hi guys, I've set up an Ubuntu 18.04 Desktop VM on Hyper-V using the quick-create option and have no problem accessing the VM via Hyper-V. When I connect, it goes through xrdp and all is well. The issue is when I try to connect to the VM from another device on the same...
  9. VMware how to delete disks from HOST (not the VM)

    in Windows 10 Virtualization
    VMware how to delete disks from HOST (not the VM): Hi folks there's plenty of info about removing a Virtual disk from a VMware VM but this just removes the virtual HDD from the VM but doesn't actually delete it from your Host disk. What you have to do is go into the VM file itself for the VM and once you've ascertained which...
  10. Improve Windows I/O in a VM - from Windows OR Linux Hosts

    in Windows 10 Virtualization
    Improve Windows I/O in a VM - from Windows OR Linux Hosts: Hi there I/O performance is often a problem with Virtual Machines - especially if you are using programs like Vmware with "Virtual" Formatted HDD's such as vdmk - especially with "Bog standard" Spinners.. A better solution by far is if you have the space and 2 HDD's...