Barx
Contributor
Contributor

Move a VM from one ESX3 server to another ESX3 server

Jump to solution

Hello,

I have an ESX3 server with local storage. I need to move a VM to another ESX3 server and I would like to know the best way to do this.

I have copied the VM to a Windows server using FastSCP. Should I just copy it to the datastore of the other ESX3 server?

Any help would be really appreciated.

0 Kudos
1 Solution

Accepted Solutions
oreeh
Immortal
Immortal

The "normal" procedure is to export the disk using vmkfstools, copy it to the new host and import it there (using vmkfstools)

View solution in original post

0 Kudos
16 Replies
oreeh
Immortal
Immortal

The "normal" procedure is to export the disk using vmkfstools, copy it to the new host and import it there (using vmkfstools)

View solution in original post

0 Kudos
tbrouwer
Hot Shot
Hot Shot

Hello,

I have an ESX3 server with local storage. I need to

move a VM to another ESX3 server and I would like to

know the best way to do this.

I have copied the VM to a Windows server using

FastSCP. Should I just copy it to the datastore of

the other ESX3 server?

Any help would be really appreciated.

Yes, you could just SCP it over to the new host. Then browse the datastore, right click the vmx file, and choose register.

Dave_Mishchenko
Immortal
Immortal

When copying to and from an ESX host it's best to run vmkfstools -i /path/to/src/src.vmdk -d 2gbsparse /path/to/dest/dest.vmdk , then copy those files to Windows and then to a temporary space on ESX. Then run vmkfstools -i to import the file again.

If you want to keep your VM files in the same folder, you'll want to create the VM on the destination ESX host first, delete the hard drive from the VM, then copy the vmdk file to the VM's folder. You can then edit the VM and add an existing vmdk file.

VMware also has a free converter product that could handle the transfer for you. www.vmware.com/converter

http://www.vmware.com/community/message.jspa?messageID=703580#703580

0 Kudos
admin
Immortal
Immortal

COpy it using FastSCP to the second ESX host, but then use "vmkfstools -i " to import the VMDK to your VMFS volume. Using SCP/CP to place the VMDK on the VMFS volume can cause poor disk performance for the VM, vmfkstools properly allocates the space to prevent this.

Barx
Contributor
Contributor

Thanks for all the help.

0 Kudos
lettech
Enthusiast
Enthusiast

Hi Mittell, I am interested in yr comment. Can you explain how a copy using vmkfstools differs from a SCP copy and why it affects performance to use the latter?

0 Kudos
oreeh
Immortal
Immortal

vmkfstools allocates all space at once and then copies the data, a "normal" copy (cp, scp, ...) allocates the space while copying.

This behavior can lead to VMDK fragmentation and therefore to poor disk performance.

0 Kudos
lettech
Enthusiast
Enthusiast

Interesting, thanks for that. No more lazy Veam copies for me then! Smiley Happy

0 Kudos
osde_info
Enthusiast
Enthusiast

we use vmbk.pl

http://www.vmts.net/vmbk.htm

regards

clive

regards clive http://vizz.info
0 Kudos
drumana
Contributor
Contributor

Hello, ESX noob here.

I've copied all of the files from an existing ESX server to another using FastSCP. Now when performing the import using the vmkfstools -i, which vmdk file am I running this against? The "name.vmdk" or the "name-flat.vmdk"? From reading other posts I know that the "-flat.vmdk" file is the virtual disk.

0 Kudos
drumana
Contributor
Contributor

nevermind. Found my answer. It's on the smaller "name.vmdk".

However, when I attempt to run the vmkfstools -i on the file, I immediately get back an error message "Broken pipe". I've tried designating the paths directly to the files and I've tried running the command while in the directory where the vmdk file is located. Is there something I'm missing?

0 Kudos
Dave_Mishchenko
Immortal
Immortal

You'll specify the vmdk (and not the flat.vmdk). Vmkfstools will take care of the flat.vmdk for you.

0 Kudos
osde_info
Enthusiast
Enthusiast

can you confirm if vmkfstools does or doesn't include delta / redo / snapshot file components ?

regards

clive

regards clive http://vizz.info
0 Kudos
drumana
Contributor
Contributor

How would I verify that these components are on the server? It's a new

install of ESX 3.0.2, 52542.

Thanks!

Andy

0 Kudos
Dave_Mishchenko
Immortal
Immortal

vmkfstools doesn't include snapshot files, so the source files should not have included any *delta.vmdk files.

0 Kudos
drumana
Contributor
Contributor

There were no *delta.vmdk files in the directory. I've gone ahead and deleted the files that I had copied with FastSCP and am trying the VMware Converter to move the VM. Thanks for all of the assistance so far. Was under the gun and needed a fast solution.

0 Kudos