Skip to content

Leibniz137/vsphere-flocker-driver

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

![vSphere Flocker Integration] (https://cloud.githubusercontent.com/assets/4852973/9564639/7e529746-4e62-11e5-9d61-3bc2ea4228fd.png)

ClusterHQ's Flocker provides an efficient and easy way to connect persistent storage with Docker containers. This project provides a plugin to provision persistent data volumes on VMware's vSphere storage datastores (VMFS, NFS, VSAN, VVOL).

Installation

Pre-requisites:

  • Setup a shared datastore on your VC.
  • Let the name of the datastore be say: vsphereDatastore
  • Create directory with name "FLOCKER" on this datastore. Flocker volumes will reside in this path. [vsphereDatastore]FLOCKER

Install:

  • Deploy Ubuntu VMs (which you will use as Flocker nodes) on ESXi hosts with vsphereDatastore as the shared datastore.

    • Power off these VMs and enable disk uuid on these VMs by adding following to the vmx files.
    disk.EnableUUID​ = "TRUE"
    • Power on these VMs and install VMware Tools, scsitools and sg3-utils
      • Ubuntu
      sudo apt-get install -y open-vm-tools scsitools sg3-utils
    • One of these VMs should have Flocker control service installed.
      • Follow the Ubuntu specific steps on this guide for installing Flocker.
  • Steps to install vsphere-flocker-driver:

    /opt/flocker/bin/pip install git+https://github.com/vmware/vsphere-flocker-driver.git

Usage Instructions

To start the plugin on a node, a configuration file must exist on the node at /etc/flocker/agent.yml. This should be as follows:

version: 1
control-service:
  hostname: "{IP/Hostname of Flocker-Control Service}"
dataset:
  backend: "vsphere_flocker_plugin"
  vc_ip: "{VC_IP}"
  username: "{VC_Username}"
  password: "{VC_Password}"
  datacenter_name: "Datacenter"           # VC datacenter name
  datastore_name: "vsphereDatastore"      # VC datastore name as above
  validate_cert: no                       # VC SSL Cert validation  

Please see configuration examples in the config directory.

Legal

Copyright © 2015 VMware, Inc. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, without warranties or conditions of any kind, EITHER EXPRESS OR IMPLIED. See the License for the specific language governing permissions and limitations under the License.

About

vSphere Flocker driver

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%