VMware

This Question is Possibly Answered

1 "correct" answer available (10 pts) 2 "helpful" answers available (6 pts)
1 2 3 4 ... 6 Previous Next 81 Replies Last post: Jan 29, 2010 3:25 AM by anonimous   Go to original post
Click to view glim's profile Novice 15 posts since
Jul 3, 2008

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:
Click to view kpc's profile Enthusiast 100 posts since
Jul 12, 2006
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.
Click to view kpc's profile Enthusiast 100 posts since
Jul 12, 2006

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.

Click to view ssapp80's profile Novice 8 posts since
Nov 13, 2008

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?
Click to view BThunderW's profile Novice 15 posts since
Apr 11, 2005
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?
Click to view kpc's profile Enthusiast 100 posts since
Jul 12, 2006
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 :-)
Click to view glim's profile Novice 15 posts since
Jul 3, 2008
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...

Click to view ssapp80's profile Novice 8 posts since
Nov 13, 2008
thanks BThunderW.....that did the trick.
Click to view ssapp80's profile Novice 8 posts since
Nov 13, 2008
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!!!!!
Click to view josby's profile Lurker 2 posts since
Dec 2, 2008
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.

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