Skip navigation
VMware

This Question is Possibly Answered

1 "correct" answer available (10 pts) 2 "helpful" answers available (6 pts)
35,870 Views 81 Replies Last post: Jan 29, 2010 3:27 AM by anonimous RSS
glim Novice 15 posts since
Jul 3, 2008
Currently Being Moderated
17. Nov 11, 2008 6:47 AM in response to: ShahidSheikh
Re: Moving VMs from one ESXi server to another - what a pain!!!

 

Ok. I'll get it and post it for you.

 

 

It's not from a specific distro, though it was compiled on Slackware-11.0, though I doubt that specific version matters.

 

 

It is a completely standard rsync-3.0.3 built from source.

 

 

The only things you need to do to build it yourself if you don't want to trust a binary from some random person on the net:

 

 

1. Build statically. Your libraries are not going to be around on the target ESX box.

 

 

2. Build without TLS support. The mgmt kernel doesn't do TLS, so your binary cannot either.

 

 

3. Optional: strip the binary when done.

 

 

To use this:

 

 

1. All of this is unsupported. Take responsibility for your own actions.

 

 

2. Enable unsupported sshd to your ESXi system.

 

 

3. Place this 'rsync-static-stripped' binary into /bin or somewhere else in your path on your ESXi system.

 

 

4. You will probably want to rename this binary to just "rsync", so that you don't need to specify it on the commandline.

 

 

Note that you should probably not try to rsync any files that are currently in use. 

 

 

There is no warranty and no guarantees of any kind.

 

 

 

 

 

Attachments:
kpc Enthusiast 114 posts since
Jul 12, 2006
Currently Being Moderated
19. Nov 12, 2008 12:56 AM in response to: ShahidSheikh
Re: Moving VMs from one ESXi server to another - what a pain!!!

Interesting Glin, have you tried a new build of NFS in the same way as rsync?  May be able to get past the slow export to NFS share.

kpc Enthusiast 114 posts since
Jul 12, 2006
Currently Being Moderated
21. Nov 13, 2008 1:04 AM in response to: ShahidSheikh
Re: Moving VMs from one ESXi server to another - what a pain!!!

 

Hi Shahid

 

 

I was seeing real slow write speeds to my NFS share, however I've been doing some tests and seems that if I export the share with the switch 'async' I get decent speeds - it was 'sync' before.  Funny how this doesn't affect ESX. 

 

 

ssapp80 Novice 8 posts since
Nov 13, 2008
Currently Being Moderated
22. Nov 13, 2008 6:44 AM in response to: glim
Re: Moving VMs from one ESXi server to another - what a pain!!!

 

when I drop your compiled rsync in esxi and try to run it i get "permission denied"..........any particular method in which i need to place it there?

 

 

BThunderW Novice 15 posts since
Apr 11, 2005
Currently Being Moderated
24. Nov 13, 2008 5:10 PM in response to: ssapp80
Re: Moving VMs from one ESXi server to another - what a pain!!!

Did you chmod +x?

ssapp80 wrote:

when I drop your compiled rsync in esxi and try to run it i get "permission denied"..........any particular method in which i need to place it there?

 

kpc Enthusiast 114 posts since
Jul 12, 2006
Currently Being Moderated
25. Nov 14, 2008 3:15 AM in response to: ShahidSheikh
Re: Moving VMs from one ESXi server to another - what a pain!!!

Thanks for the helpful insight Shahid.  Thinking back you setup an NFS share on ESXi and ESX totally differently, or well I did.  I'm just glad I'm getting decent speeds now

glim Novice 15 posts since
Jul 3, 2008
Currently Being Moderated
26. Nov 17, 2008 6:52 AM in response to: kpc
Re: Moving VMs from one ESXi server to another - what a pain!!!

NFS is kind of a kernel space thing. In a Linux-like OS, NFS is now commonly done in kernelspace for client and server, and the utilities only serve to assist/configure the kernel.

 

Altering whatever NFS that ESX does would require rebuilding their kernel.

 

 

 

 

 

 

 

 

 

There does exist a very old implementation of a userspace NFS server, but I don't think that would buy you much here.

 

 

 

I think that the main limitation on speed is that the maintenance-VM is bandwidth-limited by ESX itself.

 

 

 

 

 

 

 

 

 

If someone has anything else they'd like built, I can try to take a look at it.

 

 

EDIT:

 

 

And apologies for forgetting the chmod +x if it caused any confusion...

ssapp80 Novice 8 posts since
Nov 13, 2008
Currently Being Moderated
27. Nov 17, 2008 8:04 AM in response to: BThunderW
Re: Moving VMs from one ESXi server to another - what a pain!!!

thanks BThunderW.....that did the trick.

ssapp80 Novice 8 posts since
Nov 13, 2008
Currently Being Moderated
28. Nov 17, 2008 11:31 AM in response to: ssapp80
Re: Moving VMs from one ESXi server to another - what a pain!!!

BThunderW.......I'm using the rsync you compiled and its working great, I'm sending to a remote rsync daemon and getting 10mb/s on a 100mbit connection.........many thanks!!!!!

josby Lurker 2 posts since
Dec 2, 2008
Currently Being Moderated
29. Dec 2, 2008 10:27 AM in response to: glim
Re: Moving VMs from one ESXi server to another - what a pain!!!

Thanks glim, I did this and it works great.  However, the rsync binary in /bin disappears on reboot.  I am guessing the root filesystem in ESXi is a ramdisk that gets created from a compressed image file on each boot.  Did you experience this as well?  Any thoughts on a workaround?  I doubt updating the contents of the image file ESXi is using to include the binary would be easy.

 

Oh, wait, there they are, in /vmfs/volumes/Hypervisor1.  Just tar files...I guess that wouldn't be that difficult after all.

 

But, more than I want to mess with.  I ended up making a bin directory in /vmfs/volumes/datastore1 and putting rsync in there so it will persist across reboots, then added "--rsync-path=/vmfs/volumes/datastore1/bin/rsync" to the rsync command on my remote system that initiates the copying.

Bookmarked By (0)

Share This Page

Communities