1 2 Previous Next 16 Replies Latest reply on Feb 24, 2009 2:21 AM by atte

    Vmware Tools for Debian Lenny

    jpiscaer Hot Shot


      When trying to install the VMware Tools for Debian Lenny, I get the following error:






      These build errors only occur for the vmmemctl-only module, not for the other modules contained in the VMware Tools package. What steps do I need to take to let the vmmemctl module build correctly?



        • 1. Re: Vmware Tools for Debian Lenny
          Gagravarr Novice

          I saw something similar with Fedora 9. VMwareTools 3.5.0-110271 (from ESXi) gives several compile errors, but 2.0.0-116503 (from VMware server 2.0) compiled just fine. I'd suggest trying the vmware tools from server 2.0, if you haven't already?

          1 person found this helpful
          • 2. Re: Vmware Tools for Debian Lenny
            jpiscaer Hot Shot

            I haven't tried that. I'm on something about missing the 'gettext' package, I'll install this package and try the build again.

            • 3. Re: Vmware Tools for Debian Lenny
              jpiscaer Hot Shot

              It seems that the 2.6.26 kernel is missing the 'get_info' method alltogether...

              • 4. Re: Vmware Tools for Debian Lenny
                Gagravarr Novice

                Fedora 9 is on 2.6.26 ( The newer vmware tools from vmware server 2.0.0 builds fine on that, have you tried upgrading your tools?

                • 5. Re: Vmware Tools for Debian Lenny
                  jpiscaer Hot Shot

                  Using the VMware Tools (116503) from VMware Server 2 did the trick! Thanks!

                  • 6. Re: Vmware Tools for Debian Lenny
                    VirtualMachineandGuestOS Enthusiast

                    I am having similar problems; in this case I can't get mouse integration working so that the cursor can move out of the virtual machine window and onto my Mac without hitting the release keys.  Perhaps the problem is also the tools that come with VMware Fusion 2.  I have downloaded VMware Server, but how do I get the tools from it?  Do I have to install the whole Server to get these?

                    • 7. Re: Vmware Tools for Debian Lenny
                      jpiscaer Hot Shot

                      I've downloaded the linux .tar.gz package, as it is the simplest way to extract the needed linux.iso file.The file can be found atvmware-server-distrib/lib/isoimages/linux.iso. Extract the file, and mount it inside your VM as you would do with usual ISO's.Do not use 'Install/Upgrade VMware Tools', as this will mount the original version.


                      I've also made a blogpost about it, read it here: http://www.virtuallifestyle.nl/2008/10/debian-lenny-vmware-tools/.

                      • 8. Re: Vmware Tools for Debian Lenny
                        VirtualMachineandGuestOS Enthusiast

                        I have now tried the VMware server version of the tools, following your instructions, but no change.  I even started from scratch with an earlier version of Lenny; the end result was the same.  No matter what I do, the vsock module won't build properly (message suggests a slight mismatch of the kernel), and the cursor cannot be moved out of the VM without invoking a key combo first to release it.  The one thing interesting that I notice in regard to the error message is that in Synaptic, the headers are labelled with the same number as my kernel but the version information suggests 2.6-26-8 rather than 2.6-26.1.  I don't know why the version doesn't match, but maybe that's the problem.  At any rate, this is well beyond my ability to figure out, so I will stop using Lenny in VMware Fusion until the problem gets solved.

                        • 9. Re: Vmware Tools for Debian Lenny
                          atte Novice

                          With VMwareTools-3.5.0-95350.tar.gz and these kernel images installed:


                          ii  linux-image-2.6-amd64                    2.6.26+16                                Linux 2.6 image on AMD64

                          ii  linux-image-2.6.26-1-amd64               2.6.26-10                                Linux 2.6.26 image on AMD64


                          It's quite simple to compile vmmemctl. Linux kernel kiddies are simply just enjoying their favourite past time, breaking

                          API backwards compatibility. This time with procfs:


                          Extract vmware-tools-distrib/lib/modules/source/vmmemctl-only/os.c : line 580:


                          -     global_proc_entry->get_info = os_proc_read;

                          +    global_proc_entry->read_proc = os_proc_read;



                          I'm not quite sure wether that alone will fix the tools however. I recall patching the tools package earlier on quite a bit for it

                          to compile against 2.6.25, those patches may be needed in addition to above. I could take a look at what exactly I did,

                          but naturally I can't guarantee it'll really work and VMWare support are sure to drop every bit of "service" if you use hacked



                          Kinda weird though that vmware continuously fails to do this patching themselves; only a few hours' job to fix the tools

                          and be sure it's done right if you have vmware tools API & internal docs.


                          Mommy, I want Xen.

                          • 10. Re: Vmware Tools for Debian Lenny
                            atte Novice

                            umh, yeah, also need to comment out the tools' conflicting prototype for poll_initwait.


                            drop me a line to atte.peltomaki@iki.fi if you want me to throw you a readily created binary .deb or patches against the original sources or smth, in return

                            you could try to find out how much breakage they cause with ESX. right now I need a beer.

                            • 11. Re: Vmware Tools for Debian Lenny
                              spea Lurker

                              its work, http://linux.chinaunix.net/bbs/viewthread.php?action=printable&tid=1035170









                              "vmmemctl.tar" from VMwareTools-3.5.0-123629.tar.gz with changes in os.c


                              "os.zip" only os.c from VMwareTools-3.5.0-123629.tar.gz


                              Message was edited by: Texiwill - source removed due to possible EULA issues. Contact me if they are opensource.

                              • 12. Re: Vmware Tools for Debian Lenny
                                Texiwill Guru
                                vExpertUser Moderators



                                Also check out using opensource tools as a Merged Tools configuration. BTW, please do not post VMware Tools source modules to this forum. It is not quite legal to do so unless they are part of the OpenSource Tools. A diff is fine.


                                Best regards,

                                Edward L. Haletky

                                VMware Communities User Moderator


                                Author of the book 'VMWare ESX Server in the Enterprise: Planning and Securing Virtualization Servers', Copyright 2008 Pearson Education.

                                Blue Gears and SearchVMware Pro Blogs: http://www.astroarch.com/wiki/index.php/Blog_Roll

                                Top Virtualization Security Links: http://www.astroarch.com/wiki/index.php/Top_Virtualization_Security_Links

                                • 13. Re: Vmware Tools for Debian Lenny
                                  atte Novice

                                  Here's a patch against vmmemctl-only/os.c from VMwareTools-3.5.0-130756.tar.gz:


                                  (EDIT: this funky web-bbs is breaking the patch so here's URL to it too:

                                  http://kameli.org/vmmemctl-only-procfsfix.patch )


                                  --- vmmemctl-only/os.c     2008-08-12 21:45:43.000000000 -0400

                                  +++ vmmemctl-only/os.c     2009-02-20 08:05:56.000000000 -0500

                                  @@ -202,7 +202,7 @@


                                  #ifdef     CONFIG_PROC_FS

                                  #if     LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,0)

                                  -static int os_proc_read(char *, char **, off_t, int);

                                  +static int os_proc_read(char *, char **, off_t, int, int *, void *);

                                  static struct proc_dir_entry *global_proc_entry;


                                  static int os_proc_read(char *, char **, off_t, int, int);

                                  @@ -529,9 +529,11 @@

                                  #ifdef     CONFIG_PROC_FS

                                  #if     LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,0)

                                  static int os_proc_read(char *buf,

                                  -                        char **start,

                                  -                        off_t offset,

                                  -                        int length)

                                  +               char **start,

                                  +               off_t offset,

                                  +               int length,

                                  +               int *eof,

                                  +               void *data)


                                  static int os_proc_read(char *buf,

                                                           char **start,

                                  @@ -587,7 +589,7 @@

                                  #if     LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,0)

                                      global_proc_entry = create_proc_entry("vmmemctl", S_IFREG | S_IRUGO, NULL);

                                      if (global_proc_entry != NULL) {

                                  -      global_proc_entry->get_info = os_proc_read;

                                  +      global_proc_entry->read_proc = os_proc_read;



                                      proc_register(&proc_root, &global_proc_entry);




                                  With this, the tools compile cleanly against Lenny default kernel. vmdesched compiles without




                                  • 14. Re: Vmware Tools for Debian Lenny
                                    atte Novice

                                    Here's also some pointers for how to create a .deb package for the tools.

                                    This works on a system that has had the vmware tools already installed,

                                    so you need to repackage patched vmmemctl source into vmmemctl.tar and

                                    run the installer. Or you can just copy the needed files manually.


                                    The script is PSEUDO. You've been warned.


                                    (EDIT: this script also gets broken by the bbs, so here's yet another link:

                                    http://kameli.org/vmware-tools-debianization.txt )


                                    mkdir vmware-tools-package-`uname -r`

                                    cd vmware-tools-package-`uname -r`


                                    mkdir -p etc/init.d

                                    cp -a /etc/init.d/vmware-tools etc/init.d


                                    mkdir -p etc/rc0.d

                                    mkdir -p etc/rc2.d

                                    mkdir -p etc/rc3.d

                                    mkdir -p etc/rc5.d

                                    mkdir -p etc/rc6.d

                                    cp -a /etc/rc0.d/*vmware-tools ./etc/rc0.d

                                    cp -a /etc/rc2.d/*vmware-tools ./etc/rc2.d

                                    cp -a /etc/rc3.d/*vmware-tools ./etc/rc3.d

                                    cp -a /etc/rc5.d/*vmware-tools ./etc/rc5.d

                                    cp -a /etc/rc6.d/*vmware-tools ./etc/rc6.d


                                    mkdir -p usr/lib/vmware-tools

                                    cp -a /usr/lib/vmware-tools/* usr/lib/vmware-tools


                                    mkdir -p usr/sbin

                                    cp -a /usr/sbin/vmware-* usr/sbin


                                    mkdir -p usr/share/doc/vmware-tools

                                    cp -a /usr/share/doc/vmware-tools usr/share/doc/vmware-tools


                                    mkdir -p lib/modules/`uname -r`/misc

                                    cp -a /lib/modules/`uname -r`/misc/vm* lib/modules/`uname -r`/misc


                                    mkdir DEBIAN



                                    Package: vmware-tools-package-2.6.26-1

                                    Version: 2.6.26-1

                                    Architecture: i386

                                    Maintainer: Your Name <unixadmin@example.com>

                                    Description: VMware ESX Tools for Linux 2.6.26-1


                                    \> DEBIAN/control







                                    1. vmxnet not needed for 64bit stuff. Enable for

                                    2. i386 - vmxnet is good for you.


                                    1. Update /etc/modules if neccessary

                                    #data=\`grep vmxnet /etc/modules\` ; \

                                    1.        if test $? -ne 0 ; \

                                    2.                then echo \"vmxnet\" >> /etc/modules ; \

                                    3.                else exit 0; \

                                    4.        fi


                                    1. Update initrd image

                                    update-initramfs -u -k all


                                    \> DEBIAN/postinst


                                    chmod +x DEBIAN/postinst


                                    cd ..

                                    dpkg-deb -b vmware-tools-package-`uname -r`

                                    1 2 Previous Next