Tiny Core Linux

Tiny Core Extensions => TCE Talk => Topic started by: andyj on January 08, 2013, 08:17:22 PM

Title: [SOLVED] Open vm tools copy/paste
Post by: andyj on January 08, 2013, 08:17:22 PM
I've built an extension for the latest open-vm-tools 9.2.2 and everything works except copy/paste to/from host/vm. I also have a vmware-tools 9.2.2 extension I made where it does work. They are in the same VM, so I can set either one in onboot.lst. Has anyone gotten the open-vm-tools copy/paste working?

Andy
Title: Re: Open vm tools copy/paste
Post by: genec on January 09, 2013, 10:33:36 PM
Please remember that newer platforms disable this feature in the name of security.  I believe everything in the last 2-4 years is under than umbrella.  Care to mention the product, version and build?
Title: Re: Open vm tools copy/paste
Post by: andyj on January 10, 2013, 01:01:35 PM
Almost solved: It's a "all the files and links have to be in a certain spot in the file system" thing. I figured it out for VMware's tools, and I had it working a few minutes ago with the open-vm-tools. I made my changes to my extension and rebooted, and now it's not working again. DOH! But I know it CAN work, so I'll have to play with it a little while longer.

Andy
Title: [SOLVED] Re: Open vm tools copy/paste
Post by: andyj on January 10, 2013, 01:36:28 PM
There is a dependency on gtkmm. It doesn't give an error if it doesn't find the library, it just doesn't work.

Andy
Title: Re: [SOLVED] Open vm tools copy/paste
Post by: sebus on January 10, 2013, 02:07:38 PM
Did you build it on 32-bit or pure64?

I am struggling (http://forum.tinycorelinux.net/index.php/topic,14616.msg) to get Vmware Tools start on pure 64
Title: Re: [SOLVED] Open vm tools copy/paste
Post by: andyj on January 10, 2013, 04:26:56 PM
My setup:
Host: Slackware 64 14.0
VM: VMware Player 5.0.1 build 894247
Guest: TC 4.7.2 32-bit
VM tools #1: VMware client tools 9.2.2 build 893683, modules built in VM, programs/libraries are binaries from VMware, extension builds out at 14M as it includes dependent libraries from VMware.
VM tools #2: Open VM tools 9.2.2 build 893683, modules, programs, and libraries built in VM, extension builds out at 608k, but has a lot of dependencies.

I've learned that the compiled modules are interchangeable between the two, and my copy/paste problem was because of vmtoolsd, not the modules. It's picky about how it's installed. I haven't tried anything with 64-bit VM's or clients. Copy/paste to/from host/vm works, resizing the window and X automagically resizes the desktop, mounting host folders, mouse autograb/autorelease and time sync work. I haven't tested thinprint or drag and drop

Getting VMware tools working was hard. I had to move a lot of stuff around.
1. See the attachment for the file list. The links are important. If you see a link, it needs to be a link. Don't copy files. vmware-user-suid-wrapper checks for this.
2. vmware-user-suid-wrapper needs to be suid.
3. Blacklist pcnet32 in your extlinux.conf file.
4.  A lot of files need to be edited or added. I don't remember all of them right now, but here's a few:
/etc/vmware-tools/locations (attached)
/etc/X11/xorg.conf (configure for vmware video and vmmouse)
/etc/init.d/vmware-tools (fix a few things to work with the busybox versions of commands)
/etc/release ("TinyCore 4.7.2" is what I put, but you need to have something)
/usr/local/tce.installed/vmware-tools (/etc/init.d/vmware-tools start)
/home/tc/.xsession (not in extension, start client tools in here)

Good luck,

Andy
Title: Re: [SOLVED] Open vm tools copy/paste
Post by: sebus on January 10, 2013, 05:12:27 PM
Thanks, will give it a go & report back

edit
Had play with it, it almost worked (vmci did not start, vmxnet also, as I did not blacklist pcnet32, fuse is missing in pure64 version)
I hope somebody else spends more time on it & gets a working .tcz for pure64

sebus
Title: Re: [SOLVED] Open vm tools copy/paste
Post by: deckard on February 23, 2013, 06:36:35 AM
could anyone upload a working copy extension of open-vm-tools 9.2.2 to TCL 4.x repositories or send me a link to download it? I really need this. Thanks
Title: Re: [SOLVED] Open vm tools copy/paste
Post by: druf on March 23, 2013, 04:57:58 AM
Any chance, that this extension is getting published?
Title: Re: [SOLVED] Open vm tools copy/paste
Post by: lapawa on March 23, 2013, 08:27:32 AM
I'm currently working on a package. I've managed to compile the open-vm-tools kernel modules for tiny core 4 32bit.
But the packaging and the init.d scipts needs some more time.
Title: Re: [SOLVED] Open vm tools copy/paste
Post by: lapawa on March 28, 2013, 08:33:59 AM
Hello tinycore users,

since I will not have much time to complete the task the next days. I'll post some informations about the actual state.
Have a look at the github repository lapawa/tc4-open-vm-tools for detailed build instructions. (Can't post the complete url. The forum prevents it  :'( )

The result is splitted into two tcl extension.
 * open-vm-tools-modules-3.0.21.tinycore.tcz contains kernel modules.
    vmci, vmhgfs, vmxnet, vsock, vmblock is included.
   
 * open-vm-tools.tcz - VMware tools with vmtoolsd, init script and examples of custom power state scripts.
    The script poweroff script will initiate a backup before shutting the linux system down.
   
Some limitations or points to be aware of:
 * vmtoolsd is configure in debug mode and spits out a lot of informations into /var/log/vm*.log
 * pvscsi - the module for the vmware paravirtualized SCSI controller is missing.
 * Functionality with the Xorg server has not been tested

To be continued...


PS: Who has configured this forum in such a paranoia mode. I can't attach the extension to this message because of their file size  :o
Title: Re: [SOLVED] Open vm tools copy/paste
Post by: curaga on March 28, 2013, 08:54:04 AM
pvscsi is included in our builds, there is no need to get it from the vmware packages.
Title: Re: [SOLVED] Open vm tools copy/paste
Post by: Rich on March 28, 2013, 10:49:22 AM
Hi lapawa
Quote
(Can't post the complete url. The forum prevents it
You'll be able to post links and use code tags once you have a couple more posts to your credit.
Quote
I can't attach the extension to this message because of their file size
Even if you could, the  Forum Rules and Guidelines  prohibit attaching binaries/extensions. See rule # 2 here:
http://forum.tinycorelinux.net/index.php/topic,7738.0.html
Title: Re: [SOLVED] Open vm tools copy/paste
Post by: druf on April 20, 2013, 05:35:34 PM
Amazing. Your build Instructions work very well. But as you said, there are still some issues with the init.d-scripts.
Please continue your great work.
Title: Re: [SOLVED] Open vm tools copy/paste
Post by: lapawa on May 07, 2013, 03:01:15 PM
I've modified the build script to work with the recently released version of open-vm-tools 9.2.3-1031360.
Additional it uses ezremaster to build an iso image with the created packages.
Title: Re: [SOLVED] Open vm tools copy/paste
Post by: andyj on July 03, 2013, 03:07:12 PM
Have you done any work with the power on/off or suspend/resume scripts? I built and extension and uploaded it, but I didn't work on these. Also, have you had any success with getting either open-vm-tools or vmware-tools to work in TC 5?

Andy