How to mount vmdk inside ESXi 5.0 console

5,260

If you add another NIC to the VM and create another VMkernel port and put them on a new IP range and making sure they VM and host are on the same vSwitch.
Then from the VM connect to the EXSi on the new IP then the transfer will say within the ESXi host and not leave the out via your NIC.

You could also create a new vSwitch which is not connected to a physical NIC to make sure the traffic stays with the host.

The vSphere client can also be a bit slow at file transfers, you might find using Veeam's FastSCP speeds up the transfer.

Share:
5,260

Related videos on Youtube

Marki555
Author by

Marki555

Updated on September 18, 2022

Comments

  • Marki555
    Marki555 almost 2 years

    I have some big files inside VM which I need to copy to ESXi host datastore. What is the best/fastest method? Right now I am using vSphere Client inside the VM. VM is running in virtual network with another VM acting as a router to the outside world. As ESXi has different public IP than te router, traffic goes out to the physical network switch and back in over the same NIC. This is connected only at 100 Mbit, so the real speed is only about 4 MB/s.

    Is it somehow possible to connect a VM to the VMkernel management network, so that ESX would handle the traffic itself?

    Or is it possible to mount the vmdk of VM via command-line and copy the files to datastore locally?

    • Oli
      Oli over 11 years
      Can you complete this bit please ...VM which I need to ESXi host datastore. . Is it access that is missing in the question or copy ..?
    • ewwhite
      ewwhite over 11 years
      Well, if you start copying now, it'll be done in...
    • Marki555
      Marki555 over 11 years
      It should be "which I need to copy to the datastore"
    • Casey Patim
      Casey Patim over 11 years
      why do you only get 4MB/s on your 100mbit network?
    • Marki555
      Marki555 over 11 years
      It's because the data from VM public IP travel to the physical switch and back to ESXi IP on the same NIC. So in reality it is 2x 4 MB/s over the wire.
  • Marki555
    Marki555 over 11 years
    But why copy it over the lan when I just want to copy from inside vmdk in datastore to the same datastore on the same physical machine... there must be a way how to do it :)
  • Oli
    Oli over 11 years
    in that case, browse datastore the vmdk is on, right click, copy and paste?
  • Marki555
    Marki555 over 11 years
    I need files from inside the vmdk (not entire vmdk), that's why I'm asking if it is possible to mount/access the contents from vmdk locally on the esxi host...
  • Marki555
    Marki555 over 11 years
    Do you know how to connect VM network with ESX kernel network? I have both ESX and VM IPs in the same subnet and the traffic still goes to external switch...
  • m0ntassar
    m0ntassar over 11 years
    By adding a "Host onlly" nic
  • Epaphus
    Epaphus over 11 years
    Isn't "host only" a VMware workstation network type not an ESXi network type
  • Marki555
    Marki555 over 11 years
    Thanks, this works! I have created new VMkernel port, added it to my internal vSwitch and assigned it IP from the subnet I am using on the VMs.