FFE: open-vm-tools kernel module failed to build

Bug #727342 reported by hcmeyer
568
This bug affects 48 people
Affects Status Importance Assigned to Milestone
open-vm-tools (Ubuntu)
Fix Released
Critical
Unassigned

Bug Description

=========================================
FFE info:
Debian unstable is on an older kernel than natty's, so older open-vm-dkms kernel modules can compile. Unfortunately its version is too old and will not compile on natty. The changes cannot be easily cherrypicked because they appear to be intermingled with changes to the user-kernel interface.

Therefore, in the interest of stability, we are requesting the merge of the latest upstream 'git tag'. Several dupes of this bug are posted every week, sometimes several per day. It is possible that there are bugs in the merged code, but as the current package is uninstallable, it seems best to merge the newer release so we can address such bugs.
=========================================
Binary package hint: open-vm-tools

installing on a freshly built vm, from 2011.02.28 daily build. Installing thru "additional drivers" menu item System->administration-additional drivers

ProblemType: Package
DistroRelease: Ubuntu 11.04
Package: open-vm-dkms 2010.06.16-268169-3ubuntu1
ProcVersionSignature: Ubuntu 2.6.38-5.32-generic 2.6.38-rc6
Uname: Linux 2.6.38-5-generic i686
Architecture: i386
Date: Tue Mar 1 10:51:45 2011
ErrorMessage: open-vm-tools kernel module failed to build
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Alpha i386 (20110228.1)
PackageArchitecture: all
PackageVersion: 2010.06.16-268169-3ubuntu1
SourcePackage: open-vm-tools
Title: package open-vm-dkms 2010.06.16-268169-3ubuntu1 failed to install/upgrade: open-vm-tools kernel module failed to build
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
hcmeyer (hcmeyer) wrote :
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

(Marking confirmed due to several dupes.)

Thanks for taking the time to report this bug and helping to make Ubuntu better. It looks like the kernel module source needs an update. We will pursue that and keep you uptodate.

Thanks again.

Changed in open-vm-tools (Ubuntu):
status: New → Confirmed
importance: Undecided → Critical
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

All right, modules/linux/shared/vmciGuestKernelAPI.h appears to be moved to modules/linux/shared/vmciKernelAPI.h, but noone told:

./vmci/vmciProcess.c:#include "vmciGuestKernelAPI.h"
./vmci/vmciEvent.c:# include "vmciGuestKernelAPI.h"
./vmci/vmciDatagram.h:#include "vmciGuestKernelAPI.h"
./vmci/vmciUtil.h:#include "vmciGuestKernelAPI.h"
./vmci/vmciEvent.h:#include "vmciGuestKernelAPI.h"
./vmci/vmciQueuePairInt.h:#include "vmciGuestKernelAPI.h"
./shared/vmciGuestKernelAPI.h: * vmciGuestKernelAPI.h --
./vsock/linux/af_vsock.h:# include "vmciGuestKernelAPI.h"

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Disregard comment #3, I was grepping through debian source.

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Looks like the kernel module source is just a touch out of date. Doing a
 'sudo dkms --verbose build -m open-vm-tools -v 2010.06.16'
shows first that it defines file_operations->ioctl which is now replaced
by unlocked_ioctl. Fixing that shows more problems.

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Note that the debian unstable source has the same problem, so a sync won't fix this. Upstream however should work.

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Proposed source for package based on the upstream git tree at tag 2011.02.23

Changed in open-vm-tools (Ubuntu):
status: Confirmed → In Progress
assignee: nobody → Serge Hallyn (serge-hallyn)
milestone: none → ubuntu-11.04-beta-1
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

The packages in this tarfile appear to correctly build the kernel modules. Please give them a try by doing:

   tar zxf open-vm-tools-2011.02.23-debs.tar.gz
   sudo dpkg -i open-vm-tools_2011.02.23-368700-0ubuntu1_amd64.deb
   sudo dpkg -i open-vm-toolbox_2011.02.23-368700-0ubuntu1_amd64.deb
   sudo dpkg -i open-vm-dkms_2011.02.23-368700-0ubuntu1_all.deb

Revision history for this message
Kyle Brooks (brookskd) wrote :

This is working for me now. Thanks for the update!

Revision history for this message
hcmeyer (hcmeyer) wrote :

The VM lives on a windows system. Next time I can stand to boot the wretched thing, I will try the tar.

Revision history for this message
Javi Molina (javich) wrote :

I am having a hard time trying to compile this for i586.
Is there a simple recipe to to that, otherwise could you provide the binary packages for i586?

Revision history for this message
hcmeyer (hcmeyer) wrote :

I am also not an amd64. Options ?

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Here are the 32-bit debs for testing.

Revision history for this message
Javi Molina (javich) wrote :

So far so good.

Drivers are now enabled, I can work with VMware Toolbox without a problem.

Dave Walker (davewalker)
tags: added: server-nrs
Revision history for this message
hcmeyer (hcmeyer) wrote :

Package installs, but may not work. I cannot set shared folders to host disk (widows system). I have not used vmware before, the vmware player may be crippled, so this feature does not work.

Revision history for this message
Dave Walker (davewalker) wrote :

diff of debian/, based on r21 of Serge's branch... lp:~serge-hallyn/ubuntu/natty/open-vm-tools/merge-2011.02.23-368700

summary: - package open-vm-dkms 2010.06.16-268169-3ubuntu1 failed to
- install/upgrade: open-vm-tools kernel module failed to build
+ FFE: open-vm-tools kernel module failed to build
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

This is the result of 'git log --pretty=oneline' for the upstream version delta.

description: updated
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

This is the result of 'fakeroot debian/rules binary > ../buildlog 2>&1'

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :
Changed in open-vm-tools (Ubuntu):
status: In Progress → New
assignee: Serge Hallyn (serge-hallyn) → nobody
Revision history for this message
Kate Stewart (kate.stewart) wrote :

Based on the git log, I'm spotting some API changes in this version, and rather extensive changes.
What level of testing has been done on it so far? What is the regression risk like?

Revision history for this message
Kate Stewart (kate.stewart) wrote :

Any update on this?

Revision history for this message
Serge Hallyn (serge-hallyn) wrote : Re: [Bug 727342] Re: FFE: open-vm-tools kernel module failed to build

Quoting Kate Stewart (<email address hidden>):
> Any update on this?

The kernel modules in open-vm-dkms are to be installed in the
vmware guests, not the hosts. So our previous concern about
testing the kernel modules should be far far lessesened.

Nevertheless, I ran ltp on monday with and with the patches -
applied on a host, not guests - and ltp did, by the time it
got to rename014, cause a hang in xfs. I think a mutex must
have been left locked, bc basically any subsequent task closing
an fd would hang.

When not running ltp, the host would run fine with the modules
loaded.

Since these modules are to be installed in the guest, not
the host, and since ltp is a very stressful test, I would
maintain we are better off with this package, which at least
allows the open-vm-tools to install.

I did try to install vmware-player in order to test in a guest,
but that (which requires a download from vmware.com, not our
package) wouldn't work. However, earlier comments in this
bug claimed success with this package.

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Quoting Kate Stewart (<email address hidden>):
> Any update on this?

Can any one else who has tested this package comment here in detail
about how they tested and whether it failed?

Changed in open-vm-tools (Ubuntu):
milestone: ubuntu-11.04-beta-1 → ubuntu-11.04
Revision history for this message
Tom Weiss (twicey) wrote :
Download full text (9.0 KiB)

Serge,
My environment is VMware Workstation v7.1.3 on Windows 7, 64-bit, Host
Guest is Ubuntu 11.04 beta: Linux ubuntu 2.6.38-7-generic #39-Ubuntu SMP Fri Mar 25 21:24:57 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux

VMware Tools form VMware are currently installed. Version: 7.1.3 build-324285

I follow your guidance from 3/3 in order:
   tar zxf open-vm-tools-2011.02.23-debs.tar.gz
   sudo dpkg -i open-vm-tools_2011.02.23-368700-0ubuntu1_amd64.deb
   sudo dpkg -i open-vm-toolbox_2011.02.23-368700-0ubuntu1_amd64.deb
   sudo dpkg -i open-vm-dkms_2011.02.23-368700-0ubuntu1_all.deb

On first pass, I got errors in open-vm-tools set up saying vmhgfs and vmsync were missing:
Preparing to replace open-vm-tools 2010.06.16-268169-3ubuntu1 (using open-vm-tools_2011.02.23-368700-0ubuntu1_amd64.deb) ...
 * Stopping open-vm guest daemon vmtoolsd [ OK ]
 * Removing open-vm-tools modules FATAL: Module vmhgfs not found.
FATAL: Module vmsync not found.
                                                                         [ OK ]
Unpacking replacement open-vm-tools ...
Setting up open-vm-tools (2011.02.23-368700-0ubuntu1) ...
Installing new version of config file /etc/vmware-tools/vm-support ...
update-initramfs: deferring update (trigger activated)
 * Loading open-vm-tools modules FATAL: Module vmhgfs not found.
FATAL: Module vmsync not found.
                                                                         [ OK ]
 * Starting open-vm daemon vmtoolsd [ OK ]
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-2.6.38-7-generic
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot
Processing triggers for man-db ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place

Kind of strange the the install continued and updated initrd.img.

Anyway, I kept going to here through to dkms:
Preparing to replace open-vm-dkms 2010.06.16-268169-3ubuntu1 (using open-vm-dkms_2011.02.23-368700-0ubuntu1_all.deb) ...

------------------------------
Deleting module version: 2010.06.16
completely from the DKMS tree.
------------------------------
Done.
Unpacking replacement open-vm-dkms ...
Setting up open-vm-dkms (2011.02.23-368700-0ubuntu1) ...
Loading new open-vm-tools-2011.02.23 DKMS files...
Building only for 2.6.38-7-generic
Building for architecture x86_64
Building initial module for 2.6.38-7-generic
Done.

vmblock.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/2.6.38-7-generic/updates/dkms/

vmci.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/2.6.38-7-generic/updates/dkms/

vmhgfs.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/2.6.38-7-generic/updates/dkms/

vmsync.ko:
Running module ver...

Read more...

Revision history for this message
Tom Weiss (twicey) wrote :

following reboot:
/var/log/dmesg.0 has:
vmblock: disagrees about version of symbol module_layout

Clipboard no longer works.

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Quoting Tom Weiss (<email address hidden>):
> following reboot:
> /var/log/dmesg.0 has:
> vmblock: disagrees about version of symbol module_layout
>
> Clipboard no longer works.

Thanks, Tom. I've got a VMware key now so will test it myself and
try to get something working.

tags: added: iso-testing
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Ok, a few observations now that I'm able to test on vmware:

I've created a new package based on the 3.28 release (from two days ago). What I did:

   1. run vmware-uninstall-tools
       (@Tom Weiss - you need to do this first, that's why you got the errors about vmhgfs and vmsync not being found. I get that even when I install the current open-vm-tools package)
   2. dpkg -i open-vm-source_* open-vm-toolbox* open-vm-tools_*
   3. dpkg -i open-vm-dkms*
   4. reboot

At this point, clipboard did not work for me. I had to manually

   5. vmware-user-suid-wrapper

after which clipboard worked. This however did complain because vmblock was not loaded. I see bug 332323, so figure I'll fix this in vmware-user-suid-wrapper, but for now I just did:

   5a. modprobe vmblock
   5b vmware-user-suid-wrapper

vmware-user-suid-wrapper is not actually installed setuid-root, I'll fix that. WHen I fix that on the guest, then drag and drop start working!

I suppose the packaging should somehow run vmware-user-suid-wrapper on login. How to do that may be question for desktop folks.

The vmhgfs does not work for me. I don't know if that's depracated.

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

New proposed package is at http://people.canonical.com/~serge/open-vm-tools_2001.03.28-package.tgz.

I can put it in launchpad if preferred. With this version, after running vmware-user-suid-wrapper I can drag and drop to the host, and clipboard works.

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

The 64-bit packages are at http://people.canonical.com/~serge/open-vm-tools_2011.03.28-64bit-debs.tgz, in case anyone wants to test. (I"ll try to generate 32-bit ones next)

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :
Revision history for this message
Kate Stewart (kate.stewart) wrote :

Thanks for the additional testing Tom, and updates Serge.

FFE Approved.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package open-vm-tools - 2011.03.28-387002-0ubuntu1

---------------
open-vm-tools (2011.03.28-387002-0ubuntu1) natty; urgency=low

  * Merge latest upstream git tag. This has the unlocked_ioctl change
    needed to fix dkms build failures (LP: #727342)
  * Changes in debian/rules:
    - work around a bug in toolbox/Makefile, where install-exec-hook is
      not happening. This needs to get fixed the right way.
    - don't install 'vmware-user' which seems to no longer exist
    - move /etc/xdg into open-vm-toolbox (which should be done using .install)
  * debian/open-vm-tools.init: add 'modprobe [-r] vmblock'. (LP: #332323)
  * debian/rules and debian/open-vm-toolbox.lintian-overrides:
    - Make vmware-user-suid-wrapper suid-root (LP: #332323)
 -- Serge Hallyn <email address hidden> Thu, 31 Mar 2011 14:20:05 -0500

Changed in open-vm-tools (Ubuntu):
status: New → Fix Released
Revision history for this message
Tom Weiss (twicey) wrote :

Uninstall VMware Workstation 7.1.3's VMware Tools package.
open-vm-tools came down with latest 11.04 updates!
Needed to reboot.
Current Ubuntu vm-tools configuration:
+-+-+-+-+-+-+-+-
Package: open-vm-tools
Versions:
2011.03.28-387002-0ubuntu1 (/var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_natty_multiverse_binary-amd64_Packages) (/var/lib/dpkg/status)

Reverse Depends:
  open-vm-tools-dbg,open-vm-tools 2011.03.28-387002-0ubuntu1
  open-vm-toolbox,open-vm-tools 2011.03.28-387002-0ubuntu1
  open-vm-source,open-vm-tools
  open-vm-dkms,open-vm-tools
+-+-+-+-+-+-+-+-

Cut-n-paste working.

Now running VMware Workstation 7.1.4 build-385536
Host OS: Windows 7, 64-bit 6.1.7601, Service Pack 1

Revision history for this message
Tom Weiss (twicey) wrote :

root@ubuntu:/var/log# lsmod | grep vm
vmblock 18671 0
vmsync 13024 0
vmhgfs 63369 0
vmw_balloon 12841 0
vmci 82515 1 vmhgfs
vmxnet 26761 0

Revision history for this message
Jeroen Hensing (hensing) wrote :

This also seems to happen on ubuntu 10.10. or am i mistaken ? Package version is the same, and no updates available yet..
Can't even remove it...
-------------------------------------------[snip]-------------------------------
Removing old open-vm-tools-2010.06.16 DKMS files...

------------------------------
Deleting module version: 2010.06.16
completely from the DKMS tree.
------------------------------
Done.
Loading new open-vm-tools-2010.06.16 DKMS files...
Building for 2.6.32-32-generic-pae and 2.6.35-28-generic
Building for architecture i686
Building initial module for 2.6.32-32-generic-pae

Error! Build of vmxnet.ko failed for: 2.6.32-32-generic-pae (i686)
Consult the make.log in the build directory
/var/lib/dkms/open-vm-tools/2010.06.16/build/ for more information.
dpkg: error processing open-vm-dkms (--configure):
 subprocess installed post-installation script returned error exit status 7
Setting up libcurl3 (7.21.0-1ubuntu1.1) ...
No apport report written because MaxReports is reached already
                                                              Setting up curl (7.21.0-1ubuntu1.1) ...
Setting up libcurl3-gnutls (7.21.0-1ubuntu1.1) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
 open-vm-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@nas2:~#

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.