Tuesday, April 26, 2011

Ubuntu 11.04 - VMware-Player dies when opening a virtual machine: FIX

Since the update from April 21st, VMWare Player dies every time a virtual machine is started. the log shows:

(vmware-unity-helper:3090): GLib-WARNING **: /build/buildd/glib2.0-2.28.6/./glib/goption.c:2132: ignoring no-arg, optional-arg or filename flags (8) on option of type 0
(vmware-unity-helper:3090): GLib-WARNING **: /build/buildd/glib2.0-2.28.6/./glib/goption.c:2132: ignoring no-arg, optional-arg or filename flags (8) on option of type 0
(vmware-unity-helper:3142): GLib-WARNING **: /build/buildd/glib2.0-2.28.6/./glib/goption.c:2132: ignoring no-arg, optional-arg or filename flags (8) on option of type 0
(vmware-unity-helper:3142): GLib-WARNING **: /build/buildd/glib2.0-2.28.6/./glib/goption.c:2132: ignoring no-arg, optional-arg or filename flags (8) on option of type 0

To fix this, you have to tell VMWare Player to use its own glib: Insert the line
export LD_PRELOAD=/usr/lib/vmware/lib/libglib-2.0.so.0/libglib-2.0.so.0
into the file /usr/bin/vmplayer - right after the copyright notice. The Beginning of the file should now look as follows:
#!/usr/bin/env bash
#
# Copyright 2005-2008 VMware, Inc.  All rights reserved.
#
# Wrapper for the real 'vmplayer' binary. Ensure that the
# binary will find all the shared libraries it needs. If a shared
# library is not available from any of the standard system-wide
# locations, we provide it from the location where the VMware software
# is installed.
#
export LD_PRELOAD=/usr/lib/vmware/lib/libglib-2.0.so.0/libglib-2.0.so.0
set -e

Save the file and restart VMWare player - you should be back in business.


Update: BobS commented on this issue - scroll down for his comment and linked to a thread. I personally haven't been able to try this out (Natty just causes too many problems on my maschine), but will do so shortly. Thanks BobS!

11 comments:

  1. worked - g r e a t!!! thanks thanks thanks

    ReplyDelete
  2. same change worked for regular vmware workstation. thanks for the tip!

    ReplyDelete
  3. cool - thx

    ReplyDelete
  4. Worked like a charm. Thanks a ton! :)

    ReplyDelete
  5. Thank you very much.
    Host OS: Ubuntu 11.04
    Guest OS: Windows 7

    ReplyDelete
  6. I think works bril. thx bro

    ReplyDelete
  7. Thanks! This worked.

    ReplyDelete
  8. Hi, I think your posted fix was for vmplayer 3.0.0. I have vmplayer 3.1.4 and this was not the complete fix. A more complete fix would be to add the following to /etc/vmware/bootstrap:

    VMWARE_USE_SHIPPED_GTK="force"

    This will cause vmware to pull in all of the vmware libs as necessary. This also work well for Workstation 7.1.4,

    However, as I said this is only a partial fix. My fedora VMs won't shutdown without throwing signal 11 and the WinXPs get the to login screen and then throw signal 11. I'll take what I can get.

    See my posts here: http://communities.vmware.com/thread/322640?tstart=0

    Best,
    BobS
    --bs

    ReplyDelete
  9. Thanks - Works for me on Mint 11.

    ReplyDelete
  10. Very insightful and interesting article. I would love to know more about this so
    posting more would be appreciated.
    VMware Player

    ReplyDelete