Giter Club home page Giter Club logo

docker-vmware-tools's Introduction

docker-vmware-tools

VMWare tools for CoreOS in Docker image

This image is intended to provide VMWare Tools for CoreOS running under VMWare ESXi without modification of CoreOS. You have run it in privileged mode to give access to the host system and I prefere to run it with option --net=host to see all IP addresses of host in vSphere client.

Done

  • Quiesce file system to make consistent snapshots
  • vSphere can "see" all VM properties from CoreOS: hostname, IP addresses, etc...

Not done yet

  • You can't graceful shutdown the CoreOS system from vSphere client. I've made script send-host-to-shutdown.sh which run when you try "Shutdown Guest" but it still empty because I don't know yet how to shutdown Docker host from container.

Usage

You can run this container manually but I recommend to add it as systemd service to run it on every boot. Below you can see example for cloud-config.

From cloud-config

#cloud-config

coreos:
  units:
    - name: vmware-tools.service
      command: start
      content: |
        [Unit]
        Description=VMWare Tools
        After=systemd-networkd.service
        [Service]
        Restart=always
        TimeoutStartSec=1200s
        ExecStartPre=-/usr/bin/docker rm vmware-tools
        ExecStart=/usr/bin/docker run --net=host --privileged --name vmware-tools sergeyzh/vmware-tools
        ExecStop=-/usr/bin/docker stop vmware-tools
        ExecStopPost=-/usr/bin/docker rm vmware-tools

Manual run

docker run -d --net=host --privileged sergeyzh/vmware-tools

docker-vmware-tools's People

Contributors

sergeyzh avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.