Koozali.org: home of the SME Server

Contribs.org Forums => Koozali SME Server 10.x Contribs => Topic started by: Andrzej on June 25, 2021, 01:01:23 AM

Title: VMware tools
Post by: Andrzej on June 25, 2021, 01:01:23 AM
I tried install open-vm-tools-11.0.5-3.el7_9.3.x86_64 from yum repo. After install services doesn't start.
Title: Re: VMware tools
Post by: TerryF on June 25, 2021, 01:49:16 AM
Going to need a little more work

[root@sme10final ~]# systemctl -l start vmtoolsd
Information: vmtoolsd is not defined in configuration DB.

[root@sme10final ~]# systemctl -l status vmtoolsd
● vmtoolsd.service - Service for virtual machines hosted on VMware
   Loaded: loaded (/usr/lib/systemd/system/vmtoolsd.service; enabled; vendor preset: enabled)
   Active: inactive (dead)
Condition: start condition failed at Fri 2021-06-25 09:47:52 AEST; 48s ago
           ConditionVirtualization=vmware was not met
     Docs: http://github.com/vmware/open-vm-tools

Cant do much as I do not use VMWare
Title: Re: VMware tools
Post by: Jean-Philippe Pialasse on June 25, 2021, 10:04:32 AM

you need to setup a service in sme config and add a dropin file to have it wantedby sme-server.target.

then run the action systemd-default

all documented in wiki

Title: Re: VMware tools
Post by: Fumetto on August 14, 2021, 03:01:19 AM
so, if I have not misunderstood,

Code: [Select]
db configuration setprop vmtoolsd service status enabled
systemctl -l start vmtoolsd

may be enough?

What is
Quote
add a dropin file to have it wantedby sme-server.target.
then run the action systemd-default
Can you link the wiki page (or explain to a totally noob user)?
Title: Re: VMware tools
Post by: TerryF on August 14, 2021, 05:04:36 AM
What isCan you link the wiki page (or explain to a totally noob user)?

Study needed - https://wiki.koozali.org/SME10_serviceControl
Title: Re: VMware tools
Post by: Fumetto on August 14, 2021, 05:34:14 AM
Study needed - https://wiki.koozali.org/SME10_serviceControl
A lot of study ... but it seems to contain the solution, I'll try to take a look. I had found something (https://wiki.koozali.org/Add_a_custom_service) but it was obviously referring to SME9.

Thank you!!!
Title: Re: VMware tools
Post by: Fumetto on August 16, 2021, 06:12:54 AM
Ok... try... :-)
Install with "yum install open-vm-tools". it's ok.
Status inactive, try start, error but service start anyway
Code: [Select]
[root@server ~]# systemctl status vmtoolsd
● vmtoolsd.service - Service for virtual machines hosted on VMware
   Loaded: loaded (/usr/lib/systemd/system/vmtoolsd.service; enabled; vendor preset: enabled)
   Active: inactive (dead)
     Docs: http://github.com/vmware/open-vm-tools
[root@server ~]# systemctl start vmtoolsd
Information: vmtoolsd is not defined in configuration DB.
[root@server ~]# systemctl status vmtoolsd
● vmtoolsd.service - Service for virtual machines hosted on VMware
   Loaded: loaded (/usr/lib/systemd/system/vmtoolsd.service; enabled; vendor preset: enabled)
   Active: active (running) since lun 2021-08-16 05:25:37 CEST; 5s ago
     Docs: http://github.com/vmware/open-vm-tools
 Main PID: 2916 (vmtoolsd)
   Memory: 2.7M
   CGroup: /system.slice/vmtoolsd.service
           └─2916 /usr/bin/vmtoolsd

ago 16 05:25:37 server._x_x_x_.it systemd[1]: Started Service for virtual m....
Hint: Some lines were ellipsized, use -l to show in full.
Ok, I try to study. It is necessary to declare the service and its automatic start. After a bit of reading I try ... but ...
Code: [Select]
[root@server ~]# db configuration set vmtoolsd service status enabled
[root@server ~]# expand-template /etc/systemd/system/preset/49-koozali.preset
ERROR: Cannot create output file //etc/systemd/system/preset/49-koozali.preset.3041 File o directory non esistente
 at /sbin/e-smith/expand-template line 45.
Try 49-koozali and 49-Koozali but but I had no luck...

I try "navigate" on filesystem and... can it is "expand-template /etc/systemd/system-preset/49-koozali.preset"? Try...
Code: [Select]
[root@server ~]# mc

[root@server system-preset]# expand-template /etc/systemd/system-preset/49-koozali.preset
[root@server system-preset]# /etc/e-smith/events/actions/systemd-default
Removed symlink /etc/systemd/system/vmtoolsd.service.requires/vgauthd.service.
Created symlink from /etc/systemd/system/vmtoolsd.service.requires/vgauthd.service to /usr/lib/systemd/system/vgauthd.service.
[root@server system-preset]# systemctl -l status vmtoolsd.service
● vmtoolsd.service - Service for virtual machines hosted on VMware
   Loaded: loaded (/usr/lib/systemd/system/vmtoolsd.service; enabled; vendor preset: enabled)
   Active: active (running) since lun 2021-08-16 05:25:37 CEST; 33min ago
     Docs: http://github.com/vmware/open-vm-tools
 Main PID: 2916 (vmtoolsd)
   CGroup: /system.slice/vmtoolsd.service
           └─2916 /usr/bin/vmtoolsd

ago 16 05:25:37 server._x_x_x_.it systemd[1]: Started Service for virtual machines hosted on VMware.
[root@server system-preset]#

Reboot and service start as expected. There are two typo-error on page TerryF's link; path error and, two lines below, systemctl

...and can't modify wiki page because can't reset password. Reset is ok, but at insert new password... "The authentication plugin does not allow you to change passwords." It's not my job!!! ^_^
Title: Re: VMware tools
Post by: Jean-Philippe Pialasse on August 16, 2021, 06:28:11 AM
username and pasword are same as forum.
to change password you need to change it from forum.
Title: Re: VMware tools
Post by: Fumetto on August 16, 2021, 07:41:57 AM
Ok, wiki page modified, ty!!!
Title: Re: VMware tools
Post by: TerryF on August 16, 2021, 03:07:39 PM
Bravo .....