Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] systemd and vmware-player
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
feiticeir0
Apprentice
Apprentice


Joined: 13 Jul 2005
Posts: 288
Location: Castelo Branco, Portugal

PostPosted: Thu Feb 13, 2014 11:43 am    Post subject: [SOLVED] systemd and vmware-player Reply with quote

Hi all !

Ever since i got systemd i was unable to use vmware-player and network with it !

There's no .service file to add to systemd to it can start vmware-player network ! Every time i start a virtual machine, vmware-player complains it can't connect to vmnet8 (although all vmware modules are loaded).

Is is necessary to manually (as root) to start vmware-network with (opt/vmware/bin/vmware-networks --start)

/opt/vmware/bin/vmware-networks --start
Started Bridge networking on vmnet0
Enabled hostonly virtual adapter on vmnet1
Started DHCP service on vmnet1
Started NAT service on vmnet8
Enabled hostonly virtual adapter on vmnet8
Started DHCP service on vmnet8
Started all configured services on all networks

Only like this i have vmware working.

Where can i find a vmware.service for systemd ?

Best regards
_________________
Do It With Rhythm


Last edited by feiticeir0 on Fri Feb 14, 2014 10:03 am; edited 1 time in total
Back to top
View user's profile Send private message
Marlo
Veteran
Veteran


Joined: 26 Jul 2003
Posts: 1591

PostPosted: Thu Feb 13, 2014 4:44 pm    Post subject: Reply with quote

After each kernel update new vmware modules are needed.
(you say, the kernel modules are loaded!)

Code:
emerge app-emulation/vmware-modules -pv


Configure the network:
Code:
emerge - config vmware-player


As a user, use your mouse and click on the button "Vmware".

So, you don`t need a systemd unit.
_________________
------------------------------------------------------------------
http://radio.garden/
Back to top
View user's profile Send private message
feiticeir0
Apprentice
Apprentice


Joined: 13 Jul 2005
Posts: 288
Location: Castelo Branco, Portugal

PostPosted: Fri Feb 14, 2014 10:02 am    Post subject: Reply with quote

Hi Marlo ! Thanks for the reply.

The problem is not the vmware-player configuration or the vmware-modules.

the modules are loaded and vmware-player was configured...

the problem is, without a .service file, i can't start vmware-network automatically when my computer boots.

If i do it manually :

Code:

/opt/vmware/bin/vmware-networks --start

Started Bridge networking on vmnet0
Enabled hostonly virtual adapter on vmnet1
Started DHCP service on vmnet1
Started NAT service on vmnet8
Enabled hostonly virtual adapter on vmnet8
Started DHCP service on vmnet8
Started all configured services on all networks


Everything works fine !

EDIT: Just solve it by adding a vmware.service (found in the internet) with the networks:

vi /usr/lib/systemd/system/vmware.service

Code:

[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


After adding it with systemctl enable vmware.service
and starting it with
systemctl start vmware.service

and systemctl status vmware.service

Code:

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


Best regards
_________________
Do It With Rhythm
Back to top
View user's profile Send private message
papandreoos
Apprentice
Apprentice


Joined: 17 Dec 2014
Posts: 163

PostPosted: Sun May 08, 2016 11:22 am    Post subject: Reply with quote

thank you very much!
i also did what you did, but it wasn't enough.
i also needed to load 'vmnet' kernel module (besides 'vmmon' and 'vmci' that where already loaded)
after i loaded it and start your service i have network in vmware-player that run windows7.

also, in the wiki page of vmware player:
https://wiki.gentoo.org/wiki/VMware/Player#USE_flags
there is no section that say that we need to start those kernel modules.
i think maybe it need to be there.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum