Created
March 26, 2020 20:20
-
-
Save jcpowermac/23ea90e549c02b43758662f90d83a9f1 to your computer and use it in GitHub Desktop.
systemd unit ignition to run open-vm-tools
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
systemd: | |
units: | |
- name: open-vm-tools.service | |
enabled: true | |
contents: | | |
[Unit] | |
Description=open-vm-tools | |
After=network-online.target | |
Wants=network-online.target | |
[Service] | |
TimeoutStartSec=0 | |
ExecStartPre=-/bin/podman kill open-vm-tools | |
ExecStartPre=-/bin/podman rm open-vm-tools | |
ExecStartPre=/bin/podman pull quay.io/jcallen/open-vm-tools | |
ExecStart=/bin/podman run --name open-vm-tools \ | |
--net=host \ | |
--pid=host \ | |
--privileged \ | |
-v /:/host \ | |
-v /proc/:/hostproc/ \ | |
-v /sys/fs/cgroup:/sys/fs/cgroup \ | |
-v /var/log:/var/log \ | |
-v /run/systemd:/run/systemd \ | |
-v /sysroot:/sysroot \ | |
-v /var/lib/sss/pipes/:/var/lib/sss/pipes/ \ | |
-v /etc/passwd:/etc/passwd \ | |
-v /etc/shadow:/etc/shadow \ | |
-v /tmp:/tmp \ | |
-v /etc/sysconfig:/etc/sysconfig \ | |
-v /etc/resolv.conf:/etc/resolv.conf \ | |
-v /etc/nsswitch.conf:/etc/nsswitch.conf \ | |
-v /etc/hosts:/etc/hosts \ | |
-v /etc/adjtime:/etc/adjtime \ | |
quay.io/jcallen/open-vm-tools | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment