I’m trying to build a custom iso that launches one of the build in system services that is included by default (open-vm-tools specifically).
I tried adding this to os-config.tpl.yml under the service section:
open-vm-tools:
image: rancher/os-openvmtools:v0.8.0-rc1
command: /usr/bin/vmtoolsd
privileged: true
labels:
io.rancher.os.scope: system
restart: always
pid: host
ipc: host
net: host
uts: host
volumes_from:
- command-volumes
- system-volumes
I can build the iso and the it launches the service, but there seem to be permissions issues…
What I would actually need is to build an iso that starts with open-vm-tools enabled, basically running:
sudo ros service enable open-vm-tools
on boot.
How could this be achieved? I can’t find any documentation on the subject. Here https://rancher.com/docs/os/v1.x/en/configuration/ I found how to build the iso, and this works, but launching the service seems to be the problem.