VMware

This Question is Answered

1 2 Previous Next 16 Replies Last post: Nov 15, 2007 1:32 PM by drumana  

Move a VM from one ESX3 server to another ESX3 server posted: Jul 24, 2007 9:00 AM

Click to view Barx's profile Novice 4 posts since
Jun 29, 2007
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.
Click to view oreeh's profile Guru User Moderators vExpert 9,971 posts since
Nov 30, 2005
The "normal" procedure is to export the disk using vmkfstools, copy it to the new host and import it there (using vmkfstools)
Click to view tbrouwer's profile Hot Shot 194 posts since
Jun 25, 2007
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.

Click to view Dave.Mishchenko's profile Guru User Moderators vExpert 9,179 posts since
Nov 15, 2005
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
Click to view mittell's profile Champion 3,096 posts since
Apr 25, 2006
COpy it using FastSCP to the second ESX host, but then use "vmkfstools -i <source> <destination>" 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.
Click to view lettech's profile Enthusiast 89 posts since
Oct 13, 2005
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?
Click to view oreeh's profile Guru User Moderators vExpert 9,971 posts since
Nov 30, 2005
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.
Click to view lettech's profile Enthusiast 89 posts since
Oct 13, 2005
Interesting, thanks for that. No more lazy Veam copies for me then! :)
Click to view osde.info's profile Expert 845 posts since
Jan 25, 2005

we use vmbk.pl

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


regards
clive
http://www.osde.info

Click to view drumana's profile Novice 4 posts since
Mar 21, 2006

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.

Click to view drumana's profile Novice 4 posts since
Mar 21, 2006
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?
Click to view Dave.Mishchenko's profile Guru User Moderators vExpert 9,179 posts since
Nov 15, 2005
You'll specify the vmdk (and not the flat.vmdk). Vmkfstools will take care of the flat.vmdk for you.
Click to view osde.info's profile Expert 845 posts since
Jan 25, 2005
can you confirm if vmkfstools does or doesn't include delta / redo / snapshot file components ?

regards
clive
http://www.osde.info

Click to view drumana's profile Novice 4 posts since
Mar 21, 2006
How would I verify that these components are on the server? It's a new
install of ESX 3.0.2, 52542.

Thanks!
Andy

VMware Beta Programs

Want to be Considered for Future Beta Programs?

Learn More

VMware Developer

Download SDKs, APIs, videos,
training, and more in the Developer community.

Learn More

Developer
Sample Code

Increase your developer productivity with VMware API sample code.

Learn More

VMworld
Sessions & Labs

Online access to the latest VMworld Sessions & Labs and online services.

Learn more

Purchase PSO Credits Online

Purchase credits to redeem training and consulting services online.

Buy Now

Community Hardware Software

View reported configurations or report your own.

Learn More

Only VMware ... Delivers Nexus 1000V

Ensure consistent, policy-based network capabilities to virtual machines across your data center.

Learn More

Communities