Gentoo has moved into systemd for those who are using Gnome3 – systemd is mandatory – But not all services from sysVinit or openrc have the new .service files needed for systemd. Vmware player, a closed source virtualization solution still doesn’t has the files, being necessary to create one.
After digging a while, I found the solution.
The old vmware-player sysVinit file just started the network – we’re going to replicate this with a vmware.service file systemd style
As root, go to /usr/lib/systemd/system (if you’re in x86_64 system, lib will be a symlink to lib64) and create the .service file
cd /usr/lib/systemd/system vi vmware.service
Put the following lines in it
[Unit] Description=VMware Network [Service] ExecStart=/opt/vmware/bin/vmware-networks --start ExecStop=/opt/vmware/bin/vmware-networks --stop PIDFile=/var/lock/subsys/vmware TimeoutSec=0 RemainAfterExit=yes [Install] WantedBy=multi-user.target
Save the file.
Enable the service
systemctl enable vmware.service ln -s '/usr/lib64/systemd/system/vmware.service' '/etc/systemd/system/multi-user.target.wants/vmware.service' systemctl start vmware.service
Check the status:
systemctl status vmware.service vmware.service - VMware network Loaded: loaded (/usr/lib64/systemd/system/vmware.service; enabled) Active: active (exited) since Fri 2014-02-14 10:00:23 WET; 3min 17s ago Process: 19708 ExecStart=/opt/vmware/bin/vmware-networks --start (code=exited, status=0/SUCCESS) Main PID: 19708 (code=exited, status=0/SUCCESS) Feb 14 10:00:24 nightraider vmnet-dhcpd[19764]: Internet Software Consortium DHCP Server 2.0 Feb 14 10:00:24 nightraider vmnet-dhcpd[19764]: Copyright 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. Feb 14 10:00:24 nightraider vmnet-dhcpd[19764]: All rights reserved. Feb 14 10:00:24 nightraider vmnet-dhcpd[19764]: Feb 14 10:00:24 nightraider vmnet-dhcpd[19764]: Please contribute if you find this software useful. Feb 14 10:00:24 nightraider vmnet-dhcpd[19764]: For info, please visit http://www.isc.org/dhcp-contrib.html Feb 14 10:00:24 nightraider vmnet-dhcpd[19764]: Feb 14 10:00:24 nightraider vmnet-dhcpd[19764]: Configured subnet: 172.16.72.0 Feb 14 10:00:24 nightraider vmnet-dhcpd[19764]: Setting vmnet-dhcp IP address: 172.16.72.254 Feb 14 10:00:24 nightraider vmware-networks[19708]: Started Bridge networking on vmnet0
That’s it ! Now you have vmware starting with systemd