Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

We have an ESXi server standing somewhere else. I can connect to the server with the vSphere client.

There is an external USB hard drive plugged into the server.

How can I copy a stopped VM to the external hard drive?

share|improve this question
    
Seems like a basic request... Yet it's not that easy :( –  ewwhite Mar 5 at 15:40

3 Answers 3

As ewwhite says in his comment, this is harder than it should be and is nigh-on impossible without doing a lot of advanced configuration.

This is mainly due to the fact that the underlying operating system behind vSphere (I believe it's loosely based on Red Hat Linux, but don't hold me to that!) was never designed to be a fully-featured OS - that's why it's defined as a hypervisor.

One option would be to get your hands dirty and poke around the ESXi console. You'd need to detect (try fdisk -l as a starting point) and mount the device. I'm unsure if you could even mount it, given that ESXi may not know how to handle FAT32/exFAT filesystems (I think it uses ext3 or ext4 under the hood but don't have a system to hand to check).

Failing that, you can use USB passthrough to assign the attached USB device to a Windows VM, then use the vSphere Client from within that VM to save the directory to the USB device via the Datastore Browser.

VMware Docs:

share|improve this answer
4  
Mind you, all of these solutions will be slow. –  ewwhite Mar 5 at 15:56

This is possible in a round about way but requires a 2nd VM (or server).

  1. Mount the USB drive using USB passthrough to a 2nd VM on the same physical server.
  2. Share the USB drive from this VM using NFS.
  3. Mount the NFS share from ESXi as network storage
  4. Copy the VM files across directly from one store to the other using vsphere client.

Using the vmxnet network driver in the 2nd VM this will max out most drives. Requires an NFS server but is much faster than using the vsphere client download option and allows you to keep thin provisioned files.

share|improve this answer
    
thanks i´ll give this a try! –  t Book Mar 6 at 11:34

Here is another method that gets the job done but not by connecting the USB drive to the VMhost. I use this when access to the ESXi host is not convenient.

1.From vSphere click on the VM and then the summary tab.

2.Right click on the datastore found under storage and then browse datastore.

3.Right click the directory with the VM and then download. (Note this can take a long time depending on how large and other obvious variables.)

4.Once you have the directory on your desktop you can do what ever is needed.

share|improve this answer
    
hi Jason, thanks for that. that´s what i tried first, but the vm is to big to download it to my local machine. the server and usb drive are far away - I hoped to find the usb drive in the datastore window the all this would be easy –  t Book Mar 5 at 19:56
    
Depending on network speed, and if you have physical access to the server they are probably pretty quick, I have found this to be the least painful process when moving a machine to an external drive or a data store. –  jer.salamon Mar 5 at 22:52
    
right, but exactly thats my problem, I don´t have phisical access as written the server is somewhere else, also the filesize is to big for normal internet connections. –  t Book Mar 6 at 8:43

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.