You are not logged in.
Pages: 1
Hi!
I'm having troubles to enable sharing of the virtual machines on Workstation 12.5.
Just opening VMs work flawlessly.
Every time I try to enable the sharing I get this message:
Gtk-Message: Failed to load module "canberra-gtk-module": libcanberra-gtk-module.so: cannot open shared object file: No such file or directory
Cannot find insserv, chkconfig, or update-rc.d on your system. Also cannot find System V style init directories. Unable to add service.
Starting Workstation Server: done
but the sharing is still not enable (not checked in vmware).
I have started the "vmware-workstation-server.service", although it has some errors and it works:
systemctl status vmware-workstation-server.service
● vmware-workstation-server.service - VMware Workstation Server
Loaded: loaded (/etc/systemd/system/vmware-workstation-server.service; enabled; vendor preset: disabled)
Active: active (exited) since Sun 2017-03-19 11:08:45 CET; 2s ago
Process: 12567 ExecStop=/etc/init.d/vmware-workstation-server stop (code=exited, status=0/SUCCESS)
Process: 12633 ExecStart=/etc/init.d/vmware-workstation-server start (code=exited, status=0/SUCCESS)
Main PID: 12633 (code=exited, status=0/SUCCESS)
Tasks: 17 (limit: 4915)
CGroup: /system.slice/vmware-workstation-server.service
└─12887 /usr/lib/vmware/bin/vmware-hostd -a /etc/vmware/hostd/config.xml
mar 19 11:08:45 skatla systemd[1]: Started VMware Workstation Server.
mar 19 11:08:46 skatla vmware-workstation-server[12633]: [41B blob data]
Any help is greatly appreciated.
Thanks,
f.
Last edited by fizik (2017-03-19 10:10:18)
Offline
Do you have vmware-patch installed ?
Does rebuilding the vmware modules from console work ?
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
(A works at time B) && (time C > time B ) ≠ (A works at time C)
Offline
- vmware-patch: NO.
It requires linux-headers, and I have LTS kernel. Not sure if it would break anything ... Do I need it?
EDIT: If I understand correctly vmware-patch does this things, which I have done manually ...
- rebuilding modules: it seems to me that it works:
vmware-modconfig --console --install-all
Stopping VMware services:
VMware Authentication Daemon done
VM communication interface socket family done
Virtual machine communication interface done
Virtual machine monitor done
Blocking file system done
make: Entering directory '/tmp/modconfig-KTRiSZ/vmmon-only'
Using kernel build system.
/sbin/make -C /lib/modules/4.9.16-1-lts/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= modules
make[1]: Entering directory '/usr/lib/modules/4.9.16-1-lts/build'
CC [M] /tmp/modconfig-KTRiSZ/vmmon-only/linux/driver.o
CC [M] /tmp/modconfig-KTRiSZ/vmmon-only/linux/hostif.o
CC [M] /tmp/modconfig-KTRiSZ/vmmon-only/linux/driverLog.o
CC [M] /tmp/modconfig-KTRiSZ/vmmon-only/common/memtrack.o
CC [M] /tmp/modconfig-KTRiSZ/vmmon-only/common/apic.o
CC [M] /tmp/modconfig-KTRiSZ/vmmon-only/common/hashFunc.o
CC [M] /tmp/modconfig-KTRiSZ/vmmon-only/common/vmx86.o
CC [M] /tmp/modconfig-KTRiSZ/vmmon-only/common/cpuid.o
/tmp/modconfig-KTRiSZ/vmmon-only/linux/driver.c:1283:1: warning: always_inline function might not be inlinable [-Wattributes]
LinuxDriverSyncReadTSCs(uint64 *delta) // OUT: TSC max - TSC min
^~~~~~~~~~~~~~~~~~~~~~~
CC [M] /tmp/modconfig-KTRiSZ/vmmon-only/common/task.o
CC [M] /tmp/modconfig-KTRiSZ/vmmon-only/common/comport.o
CC [M] /tmp/modconfig-KTRiSZ/vmmon-only/common/phystrack.o
/tmp/modconfig-KTRiSZ/vmmon-only/common/task.o: warning: objtool: .text: unexpected end of section
CC [M] /tmp/modconfig-KTRiSZ/vmmon-only/vmcore/moduleloop.o
/tmp/modconfig-KTRiSZ/vmmon-only/common/phystrack.o: warning: objtool: PhysTrack_Free() falls through to next function PhysTrack_Add()
/tmp/modconfig-KTRiSZ/vmmon-only/common/phystrack.o: warning: objtool: PhysTrack_Add() falls through to next function PhysTrack_Remove()
/tmp/modconfig-KTRiSZ/vmmon-only/common/phystrack.o: warning: objtool: PhysTrack_Remove() falls through to next function PhysTrack_Test()
LD [M] /tmp/modconfig-KTRiSZ/vmmon-only/vmmon.o
Building modules, stage 2.
MODPOST 1 modules
CC /tmp/modconfig-KTRiSZ/vmmon-only/vmmon.mod.o
LD [M] /tmp/modconfig-KTRiSZ/vmmon-only/vmmon.ko
make[1]: Leaving directory '/usr/lib/modules/4.9.16-1-lts/build'
/sbin/make -C $PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= postbuild
make[1]: Entering directory '/tmp/modconfig-KTRiSZ/vmmon-only'
make[1]: 'postbuild' is up to date.
make[1]: Leaving directory '/tmp/modconfig-KTRiSZ/vmmon-only'
cp -f vmmon.ko ./../vmmon.o
make: Leaving directory '/tmp/modconfig-KTRiSZ/vmmon-only'
make: Entering directory '/tmp/modconfig-KTRiSZ/vmnet-only'
Using kernel build system.
/sbin/make -C /lib/modules/4.9.16-1-lts/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= modules
make[1]: Entering directory '/usr/lib/modules/4.9.16-1-lts/build'
CC [M] /tmp/modconfig-KTRiSZ/vmnet-only/driver.o
CC [M] /tmp/modconfig-KTRiSZ/vmnet-only/hub.o
CC [M] /tmp/modconfig-KTRiSZ/vmnet-only/userif.o
CC [M] /tmp/modconfig-KTRiSZ/vmnet-only/netif.o
In file included from ./include/linux/pci.h:35:0,
from /tmp/modconfig-KTRiSZ/vmnet-only/compat_netdevice.h:27,
from /tmp/modconfig-KTRiSZ/vmnet-only/netif.c:43:
./include/linux/pci_ids.h:2253:0: warning: "PCI_VENDOR_ID_VMWARE" redefined
#define PCI_VENDOR_ID_VMWARE 0x15ad
In file included from /tmp/modconfig-KTRiSZ/vmnet-only/net.h:38:0,
from /tmp/modconfig-KTRiSZ/vmnet-only/vnetInt.h:26,
from /tmp/modconfig-KTRiSZ/vmnet-only/netif.c:42:
/tmp/modconfig-KTRiSZ/vmnet-only/vm_device_version.h:56:0: note: this is the location of the previous definition
#define PCI_VENDOR_ID_VMWARE 0x15AD
CC [M] /tmp/modconfig-KTRiSZ/vmnet-only/bridge.o
CC [M] /tmp/modconfig-KTRiSZ/vmnet-only/procfs.o
CC [M] /tmp/modconfig-KTRiSZ/vmnet-only/smac_compat.o
CC [M] /tmp/modconfig-KTRiSZ/vmnet-only/smac.o
CC [M] /tmp/modconfig-KTRiSZ/vmnet-only/vnetEvent.o
In file included from /tmp/modconfig-KTRiSZ/vmnet-only/net.h:38:0,
from /tmp/modconfig-KTRiSZ/vmnet-only/vnetInt.h:26,
from /tmp/modconfig-KTRiSZ/vmnet-only/bridge.c:52:
/tmp/modconfig-KTRiSZ/vmnet-only/vm_device_version.h:56:0: warning: "PCI_VENDOR_ID_VMWARE" redefined
#define PCI_VENDOR_ID_VMWARE 0x15AD
In file included from ./include/linux/pci.h:35:0,
from /tmp/modconfig-KTRiSZ/vmnet-only/compat_netdevice.h:27,
from /tmp/modconfig-KTRiSZ/vmnet-only/bridge.c:51:
./include/linux/pci_ids.h:2253:0: note: this is the location of the previous definition
#define PCI_VENDOR_ID_VMWARE 0x15ad
CC [M] /tmp/modconfig-KTRiSZ/vmnet-only/vnetUserListener.o
LD [M] /tmp/modconfig-KTRiSZ/vmnet-only/vmnet.o
Building modules, stage 2.
MODPOST 1 modules
CC /tmp/modconfig-KTRiSZ/vmnet-only/vmnet.mod.o
LD [M] /tmp/modconfig-KTRiSZ/vmnet-only/vmnet.ko
make[1]: Leaving directory '/usr/lib/modules/4.9.16-1-lts/build'
/sbin/make -C $PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= postbuild
make[1]: Entering directory '/tmp/modconfig-KTRiSZ/vmnet-only'
make[1]: 'postbuild' is up to date.
make[1]: Leaving directory '/tmp/modconfig-KTRiSZ/vmnet-only'
cp -f vmnet.ko ./../vmnet.o
make: Leaving directory '/tmp/modconfig-KTRiSZ/vmnet-only'
Starting VMware services:
Virtual machine monitor done
Virtual machine communication interface done
VM communication interface socket family done
Blocking file system done
Virtual ethernet done
VMware Authentication Daemon done
Shared Memory Available done
Last edited by fizik (2017-03-19 15:10:56)
Offline
vmware-patch does provide those services, but also includes patches for vmware modules to work with later kernels.
Looking at the sources list from vmware-patches, there are 2 that target vmware 12.5 :
vmmon-12.5.2-4.9.patch
vmnet-12.5.2-4.9.patch
All warnings in the rebuild log are about those 2 modules
you are using kernel 4.9
network support is critical for sharing files
I suggest you try out those 2 patches.
Edit : linux-headers is kernelversion specific, it can be installed with any kernel and will only be used if you have that exact kernel.
It's harmless for other versions.
Last edited by Lone_Wolf (2017-03-20 11:18:09)
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
(A works at time B) && (time C > time B ) ≠ (A works at time C)
Offline
vmware-patch -f
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
==> Patching VMware Workstation Pro v12.5.4 for kernel 4.9.16-1-lts..
-> No patching required..
==> Installing modules..
-> Done.
Still the same result:
Cannot find insserv, chkconfig, or update-rc.d on your system. Also cannot find System V style init directories. Unable to add service.
Starting Workstation Server: done
and I cannot share the VMs ...
Offline
After a bit of trials, it seems that the VMware actually enables server (although it stays grayed out).
However, I cannot login to the server neither with root nor with my user credentials.
So the new question is: how to add a user "via the command line"? As I cannot change the permissions in the vmware gui ...
The vmware-vim-cmd gets connection refused (with any command):
vmware-vim-cmd vimsvc/auth/permissions
filename: /lib/modules/4.9.16-1-lts/misc/vmmon.ko
supported: external
license: GPL v2
description: VMware Virtual Machine Monitor.
author: VMware, Inc.
depends:
vermagic: 4.9.16-1-lts SMP mod_unload modversions
Failed to login: Connection refused
Offline
Pages: 1