# Custom ISO launching System Service

**URL:** <https://forums.suse.com/t/custom-iso-launching-system-service/5143>\
**Category:** RancherOS\
**Created:** [January 10, 2017, 8:15am UTC](https://forums.suse.com/t/custom-iso-launching-system-service/5143 "2017-01-10T08:15:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![broesch-dkk](https://avatars.discourse-cdn.com/v4/letter/b/b5e925/32.png) [@broesch-dkk](https://forums.suse.com/u/broesch-dkk)\
**Post date:** [January 10, 2017, 8:15am UTC](https://forums.suse.com/t/custom-iso-launching-system-service/5143/1 "2017-01-10T08:15:59Z")

</div>

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/](https://docs.rancher.com/os/configuration/custom-rancheros-iso/) I found how to build the iso, and this works, but launching the service seems to be the problem.

---

<div class="post-metadata">

**Author:** ![joshwget](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/joshwget/32/704_2.png) [@joshwget](https://forums.suse.com/u/joshwget)\
**Post date:** [January 12, 2017, 5:28pm UTC](https://forums.suse.com/t/custom-iso-launching-system-service/5143/2 "2017-01-12T17:28:01Z")

</div>

What kind of permission issues do you run into?

---

<div class="post-metadata">

**Author:** ![broesch-dkk](https://avatars.discourse-cdn.com/v4/letter/b/b5e925/32.png) [@broesch-dkk](https://forums.suse.com/u/broesch-dkk)\
**Post date:** [January 13, 2017, 8:54pm UTC](https://forums.suse.com/t/custom-iso-launching-system-service/5143/3 "2017-01-13T20:54:23Z")

</div>

Hi Josh,

thanks for your answer.  
I actually solved the issue with the permissions: see more here:

> [@Problems provisioning Host on vsphere](http://forums.suse.com/t/problems-provisioning-host-on-vsphere/5109):
>
> When provisioning an rancheros host with docker-machine using --vmwarevsphere-boot2docker-url [https://releases.rancher.com/os/latest/rancheros.iso](https://releases.rancher.com/os/latest/rancheros.iso) it is stuck on: Waiting for VMware Tools to come online… It seems, that open-vm-tools are not launching by default. Is Rancheros not supported on vsphere? Any help will be appreciated Thanks

But I have run in to an other issue, could you maybe land me a hand? It is in the thread mention above.

---

<div class="post-metadata">

**Author:** ![broesch-dkk](https://avatars.discourse-cdn.com/v4/letter/b/b5e925/32.png) [@broesch-dkk](https://forums.suse.com/u/broesch-dkk)\
**Post date:** [January 18, 2017, 8:52am UTC](https://forums.suse.com/t/custom-iso-launching-system-service/5143/4 "2017-01-18T08:52:25Z")

</div>

I kind of solved it, if someone is interested you can find it here:

> **[broesch/rancher-os](https://github.com/broesch/rancher-os/tree/docker-machine-vsphere)**
>
> rancher-os - Tiny Linux distro that runs the entire OS as Docker containers

This is more like a proof of concept and works now only on docker-machine and vsphere and needs at least 2512 MB RAM…

Are there plans to make something like this possible in a more general way?

---

<div class="post-metadata">

**Author:** ![joshwget](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/joshwget/32/704_2.png) [@joshwget](https://forums.suse.com/u/joshwget)\
**Post date:** [January 25, 2017, 6:16pm UTC](https://forums.suse.com/t/custom-iso-launching-system-service/5143/5 "2017-01-25T18:16:15Z")

</div>

Making it easier to build custom ISOs and other build artifacts is certainly on the roadmap.

The large memory usage is mainly due to having to use Ubuntu as a base image for open-vm-tools. [https://github.com/rancher/os/issues/1487](https://github.com/rancher/os/issues/1487) should help with this.
