VMware vSphere

 View Only
Expand all | Collapse all

Copy files from mgmt laptop to VM inside ESXi host.

  • 1.  Copy files from mgmt laptop to VM inside ESXi host.

    Posted Mar 25, 2022 12:38 PM

    Hi experts. 

    So, I am connected to ESXi host directly via mgmt port using mgmt laptop. I can access datastore and the VM folders. I use winscp to copy/transfer files between datastore and the mgmt laptop. 

    Now i want to transfer some files from mgmt laptop to one of the VMs C drive. ofcourse the VM IP ranges are different that of mgmt IP.  

    How can I do it in easiest way. 

    I researched about this, and found some artilces to use powershell and script etc. which isnt that simple. 

    so, if you know an easy way to exchange data then please share the methode. 

    Raj



  • 2.  RE: Copy files from mgmt laptop to VM inside ESXi host.

    Posted Mar 25, 2022 12:47 PM

    Does this relate specifically to ESXi on ARM, or ESXi on x86?

     



  • 3.  RE: Copy files from mgmt laptop to VM inside ESXi host.

    Broadcom Employee
    Posted Mar 25, 2022 01:20 PM

    based on description I'm assuming this is not ESXi-on-Arm Specific, and moving it to a general "windows" guest OS forum.



  • 4.  RE: Copy files from mgmt laptop to VM inside ESXi host.

    Posted Mar 25, 2022 01:21 PM

    Hi  

    You need to set the following advanced settings on the VMs. You will be able to copy & paste VMs between your laptop and the guest os. 

    Name:                                                     Value:
    isolation.tools.copy.disable                    FALSE
    isolation.tools.paste.disable                   FALSE
    isolation.tools.setGUIOptions.enable     TRUE

    Enable content Copy/Paste between VMRC client and Windows/Linux Virtual Machine (57122) (vmware.com)

    Regards

    Daniel



  • 5.  RE: Copy files from mgmt laptop to VM inside ESXi host.

    Broadcom Employee
    Posted Mar 25, 2022 01:28 PM

    I the VM inside the host has a routed network that can connect to the ESXi host, there is nothing stopping you from using the host client and datastore browser or (win)SCP to copy down the files.

    Are the networks isolated?



  • 6.  RE: Copy files from mgmt laptop to VM inside ESXi host.

    Posted Mar 27, 2022 02:56 AM

    Yes both networks are isolated....

    If I connect the VM to mgmt network on temporary basis....would then I be able to access the VM's C drive via winSCP??



  • 7.  RE: Copy files from mgmt laptop to VM inside ESXi host.

    Posted Apr 12, 2022 04:15 PM

    Hi @rajesharihant 

    Yes, you should be able to access the C drive. Keep in mind to enable the firewall rule for SMB inbound in case of Windows is used I still recommend to set the following advanced settings on the VMs. You will be able to copy & paste VMs between your laptop and the guest os without network connectivity between laptop/client and VM.

    Name:                                                     Value:
    isolation.tools.copy.disable                    FALSE
    isolation.tools.paste.disable                   FALSE
    isolation.tools.setGUIOptions.enable     TRUE

    Enable content Copy/Paste between VMRC client and Windows/Linux Virtual Machine (57122) (vmware.com)

    Regards

    Daniel

     



  • 8.  RE: Copy files from mgmt laptop to VM inside ESXi host.

    Posted Mar 25, 2022 03:00 PM

    is the ESXi host in a vcenter ?

    if so, you can use Copy-VMGuestFile to copy file from local to vm

     



  • 9.  RE: Copy files from mgmt laptop to VM inside ESXi host.

    Posted Mar 27, 2022 02:57 AM

    No VCenter Server



  • 10.  RE: Copy files from mgmt laptop to VM inside ESXi host.

    Posted Aug 31, 2022 10:32 PM

     

    Can you ping the destination VM from the management laptop?


    If so, try connect via the Windows UNC path using the IP address of the VM you are trying to connect to:

    i.e. \\172.16.x.x\C$\Temp



  • 11.  RE: Copy files from mgmt laptop to VM inside ESXi host.

    Posted Sep 01, 2022 05:34 AM

    A powershell oneliner ... ok you need to connect also but

    Copy-VMGuestFile -Source c:\foobar.txt -Destination c:\temp\ -VM MyVM -LocalToGuest -HostUser root -HostPassword "VMware1!" -GuestUser administrator -GuestPassword MySecret

    doesnt look to complicated.