Skip to content

Instantly share code, notes, and snippets.

@lloeki
Created December 16, 2014 16:15
Show Gist options
  • Star 12 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save lloeki/62239da19ec25f90f215 to your computer and use it in GitHub Desktop.
Save lloeki/62239da19ec25f90f215 to your computer and use it in GitHub Desktop.
open-vm-tools with clipboard and drag and drop on Ubuntu 14.04 Trusty Tahr
# You should be using open-vm-tools instead of vmware tools, because package manager.
# Also I hate third parties that write out of /opt and /usr/local.
# open-vm-tools-desktop is badly packaged though, here are the missing links:
sudo apt-get install open-vm-tools open-vm-tools-desktop
# Reboot, and resize works, but no DnD nor clipboard
sudo mkdir /var/run/vmblock-fuse
sudo su -l -c "vmware-vmblock-fuse -o subtype=vmware-vmblock,default_permissions,allow_other /var/run/vmblock-fuse"
# Now we have /run/vmblock-fuse populated.
# Adding an upstart rule in /etc/init is left as an exercise to the reader.
sudo chmod u+s /usr/bin/vmware-user-suid-wrapper
vmware-user-suid-wrapper
# Enjoy both-ways copy/paste and file DnD (subject to "retry" sometimes)
# Adding a .desktop file to autostart on login is again left to the reader
@ejbolt
Copy link

ejbolt commented Mar 21, 2017

Shouldn't the position of -o subtype=vmware-vmblock,default_permissions,allow_other and /var/run/vmblock-fuse be flipped?

vmblock-fuse runs with the options vmware-vmblock-fuse mountpoint [options]
Just checkin

@CarlGraff
Copy link

Thanks for getting most of this working for me. At least copy and paste work for text AND files reliably in both directions.
Drag and drop works reliably from client (Ubuntu 16.04) back to my Mac host.

But Drag and drop from host to client only works the for the first file and then subsequent attempts gives "Error when getting information for file .... No such file or directory". And even more surprisingly once and a while on the nTH attempt after the first one works it will work again.

Also folder sharing seems to get clobbered or removed as it seems to rely on "vmware-hgfsclient" which I think gets installed by VMWARE Tools but not by open-vm-tools. I tried to add "vmware-hgfsclient" separately after installing via your instructions but maybe? there is a conflict with "vmware-vmblock-fuse" or more likely I just don't know what I'm doing.

That being said - thank you as copy and paste for both text and files is great and drag and drop also works reliable at least from client to host.

Probably will switch to a fast windows machine with large hard drive to run multiple linux distros and maybe these issues will go away then - I guess I can even install an OSX VM on he windows host if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment