Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 483642 - app-emulation/vmware-player - Provide systemd service file.
Summary: app-emulation/vmware-player - Provide systemd service file.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Gentoo VMWare Bug Squashers [disabled]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: install-systemd-unit
  Show dependency tree
 
Reported: 2013-09-04 20:37 UTC by Sven
Modified: 2015-09-12 18:58 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sven 2013-09-04 20:37:17 UTC
There does not seems to be an equivalent for /etc/init.d/vmware in case systemd is used. In result, networking doesn't work (even NAT).


Reproducible: Always
Comment 1 Serge Gavrilov 2013-10-06 07:09:00 UTC
This bug must block #448882
Comment 2 Serge Gavrilov 2013-11-30 09:42:57 UTC
Units from  

https://github.com/akhuettel/systemd-vmware

which are used in vmware-workstation ebuild seem to work without any modification.
Comment 3 Pacho Ramos gentoo-dev 2013-12-08 18:21:03 UTC
(In reply to Serge Gavrilov from comment #2)
> Units from  
> 
> https://github.com/akhuettel/systemd-vmware
> 
> which are used in vmware-workstation ebuild seem to work without any
> modification.

But I cannot find:
https://github.com/akhuettel/systemd-vmware/blob/master/vmware-authentication.service
-> /usr/sbin/vmware-authdlauncher
Comment 4 Adam Carter 2013-12-29 02:55:07 UTC
FYI bug https://bugs.gentoo.org/show_bug.cgi?id=411901 discusses this too. If you know the command line to execute vmware-authdlauncher, you could add extra ExecStart and ExecStop lines to that vmware.service file attached to that bug.
Comment 5 Pacho Ramos gentoo-dev 2013-12-29 09:58:23 UTC
Will CC the author of that unit files as maybe he know were you get that binary :|
Comment 6 Sven 2013-12-29 10:44:56 UTC
(In reply to Pacho Ramos from comment #5)
> Will CC the author of that unit files as maybe he know were you get that
> binary :|

What's the holdup? Looking at the service files at github it seems that vmware-usb is started after vmware-authentication. That seems to be the only dependency on vmware-authentication. But that daemon is not part of vmware player. My conclusion would be, that
a) the service files cannot be used without change
b) the vmware-authentication service must be removed and the dependency to it replaced by something else.
c) maybe, the dependency of vmware-usb on vmware-authentication is rubbish altogether and vmware-usb could also be started before vmware-authentication
Comment 7 Sven 2013-12-29 10:54:54 UTC
Note: the good old init.d/vmware file (the one from vmware workstation) starts the vmware-usbarbitrator even before any kernel modules (vmmon vmci vsock vmblock vmnet) are loaded. Then it loads the modules and starts the vmware networking stuff. Then, possibly much later, init.d/vmware-server may start the authentication daemon, prior to starting vmware-hostd.

No offence, but the dependencies in the service files don't make any sense since the vmware init.d files differ so much. And I don't believe the init.d files were wrong. Instead, the service files should be fixed to mirror the good old init.d files:

vmware-usb apparently shouldn't have any dependencies
vmware-vmnet possibly needs to depend on (some of) the kernel modules
vmware-authentication only seems to be a dependency of the vmware-hostd for which there is not even a service file.
Comment 8 Andreas K. Hüttel archtester gentoo-dev 2015-09-12 18:58:45 UTC
Fixed since overlay commit 741e4d9a127566fd90531a2565d9628764622176 (and also in main tree now)