VMware Communities
defaria
Contributor
Contributor

Configuring XShm extension so that Unity works

I'm running vmplayer and would like to display the resulting window on my desktop. This I can do, but I can't use Unity. When I try I get:

The system's XShm extension is not enabled. Unity depends on this extension to display windows from the guest operating system. Enable this extension in your X configuration file, restart X and try again.

I tried configuring MIT-SHM for Xorg and it didn't seem to work. Even rebooted/restarted X but vmplayer gives me the same error message. I'm on Ubuntu 10.04 (64 bit). How can I fix this?

0 Kudos
5 Replies
defaria
Contributor
Contributor

Once again the silence is deafening...

0 Kudos
continuum
Immortal
Immortal

can't help with your issue - but have a look at your post:

you don't tell us which vmplayer version you use, we don't know which kernel you use ... nothing

no wonder nobody bites


________________________________________________
Do you need support with a VMFS recovery problem ? - send a message via skype "sanbarrow"
I do not support Workstation 16 at this time ...

0 Kudos
defaria
Contributor
Contributor

Linux mars 2.6.32-27-generic #49-Ubuntu SMP Thu Dec 2 00:51:09 UTC 2010 x86_64 GNU/Linux

VMware Player 3.0.1 build-227600
0 Kudos
acending_8
Contributor
Contributor

Same issue different versions

VMPlayer version: 4.0.4 build-744019
Linux xander 2.6.32-41-server #94-Ubuntu SMP Fri Jul 6 18:15:07 UTC 2012 x86_64 GNU/Linux
(Ubuntu 10.4_4)
no log is generated for this event in the file "vmware.log" for that virtual machine
no log is generated for this event in the host's syslog
no log is generated for this event in .xsession-errors
The same message appears regardless of Virtual machine's OS
This seems to be an X specific issue so I doubt that kernel is relivant so here are some env variable I have at the mo
DISPLAY=:0.0
XDG_CURRENT_DESKTOP=Unity
XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg
DESKTOP_SESSION=ubuntu
LANG=en_GB.UTF-8
During start up of vmware player I get this:

keith@xander:~$ /usr/bin/vmplayer
Gtk-Message: Failed to load module "canberra-gtk-module": libcanberra-gtk-module.so: cannot open shared object file: No such file or directory
Logging to /tmp/vmware-keith/modconfig-1348.log
filename:       /lib/modules/2.6.32-41-server/misc/vmmon.ko
supported:      external
license:        GPL v2
description:    VMware Virtual Machine Monitor.
author:         VMware, Inc.
srcversion:     0845FE74CACDC7B6DF8502C
depends:       
vermagic:       2.6.32-41-server SMP mod_unload modversions
filename:       /lib/modules/2.6.32-41-server/misc/vmnet.ko
supported:      external
license:        GPL v2
description:    VMware Virtual Networking Driver.
author:         VMware, Inc.
srcversion:     5E3E30A982E110473141FBA
depends:       
vermagic:       2.6.32-41-server SMP mod_unload modversions
filename:       /lib/modules/2.6.32-41-server/misc/vmblock.ko
supported:      external
version:        1.1.2.0
license:        GPL v2
description:    VMware Blocking File System
author:         VMware, Inc.
srcversion:     953CE20A40BBA61A0C35692
depends:       
vermagic:       2.6.32-41-server SMP mod_unload modversions
parm:           root:The directory the file system redirects to. (charp)
filename:       /lib/modules/2.6.32-41-server/misc/vmci.ko
supported:      external
license:        GPL v2
version:        9.1.18.0
description:    VMware Virtual Machine Communication Interface (VMCI).
author:         VMware, Inc.
srcversion:     1DF90BBEB11EA8851C10F14
alias:          pci:v000015ADd00000740sv*sd*bc*sc*i*
depends:       
vermagic:       2.6.32-41-server SMP mod_unload modversions
parm:           disable_host:Disable driver host personality - (default=0) (bool)
parm:           disable_guest:Disable driver guest personality - (default=0) (bool)
parm:           disable_msi:Disable MSI use in driver - (default=0) (bool)
parm:           disable_msix:Disable MSI-X use in driver - (default=0) (bool)
filename:       /lib/modules/2.6.32-41-server/misc/vsock.ko
supported:      external
alias:          vmware_vsock
license:        GPL v2
version:        9.1.1.0
description:    VMware Virtual Socket Family
author:         VMware, Inc.
srcversion:     3CBB628A16D6440E6E99BEC
depends:        vmci
vermagic:       2.6.32-41-server SMP mod_unload modversions
filename:       /lib/modules/2.6.32-41-server/misc/vmmon.ko
supported:      external
license:        GPL v2
description:    VMware Virtual Machine Monitor.
author:         VMware, Inc.
srcversion:     0845FE74CACDC7B6DF8502C
depends:       
vermagic:       2.6.32-41-server SMP mod_unload modversions
Gtk-Message: Failed to load module "canberra-gtk-module": libcanberra-gtk-module.so: cannot open shared object file: No such file or directory
Gtk-Message: Failed to load module "canberra-gtk-module": libcanberra-gtk-module.so: cannot open shared object file: No such file or directory

If this is relivant; on the system I can find:
/etc/X11/Xsession.d/52libcanberra-gtk-module_add-to-gtk-modules
/usr/lib/gtk-2.0/modules/libcanberra-gtk-module.so
The log file mentioned contains:

keith@xander:~$ cat /tmp/vmware-keith/modconfig-1348.log

2012-07-31T13:31:39.550Z| vthread-3| I120: Log for VMware Workstation pid=1348 version=8.0.4 build=build-744019 option=Release

2012-07-31T13:31:39.550Z| vthread-3| I120: The process is 64-bit.

2012-07-31T13:31:39.550Z| vthread-3| I120: Host codepage=UTF-8 encoding=UTF-8

2012-07-31T13:31:39.550Z| vthread-3| I120: Host is Linux 2.6.32-41-server Ubuntu 10.04.4 LTS

2012-07-31T13:31:39.494Z| vthread-3| I120: Msg_Reset:

2012-07-31T13:31:39.494Z| vthread-3| I120: [msg.dictionary.load.openFailed] Cannot open file "/usr/lib/vmware/settings": No such file or directory.

2012-07-31T13:31:39.494Z| vthread-3| I120: ----------------------------------------

2012-07-31T13:31:39.494Z| vthread-3| I120: PREF Optional preferences file not found at /usr/lib/vmware/settings. Using default values.

2012-07-31T13:31:39.506Z| vthread-3| I120: Msg_Reset:

2012-07-31T13:31:39.506Z| vthread-3| I120: [msg.dictionary.load.openFailed] Cannot open file "/home/keith/.vmware/config": No such file or directory.

2012-07-31T13:31:39.506Z| vthread-3| I120: ----------------------------------------

2012-07-31T13:31:39.506Z| vthread-3| I120: PREF Optional preferences file not found at /home/keith/.vmware/config. Using default values.

2012-07-31T13:31:39.550Z| vthread-3| W110: Logging to /tmp/vmware-keith/modconfig-1348.log

2012-07-31T13:31:39.765Z| vthread-3| I120: modconf query interface initialized

2012-07-31T13:31:39.788Z| vthread-3| I120: modconf library initialized


Is there any more information you need?
0 Kudos
acending_8
Contributor
Contributor

Something I tried, but which failed to be a solution for me:

On some Linux hosts, you cannot enter unity mode until you change the configuration for accelerated 3D graphics. If you
receive an error message about the XShm extension when attempting to enter unity mode, increase the value of
/proc/sys/kernel/shmmax before powering on the virtual machine. As root, open the /etc/sysctl.conf file with a text editor and add the
line: "kernel.shmmax = 67108864". As root, reload the settings by typing: sysctl -p and then power the virtual machine off and on
again. If you still have problems, use a larger value.
ref:
0 Kudos