• Stars
    star
    641
  • Rank 67,987 (Top 2 %)
  • Language
    Go
  • License
    Other
  • Created over 8 years ago
  • Updated 5 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

vSphere Integrated Containers Engine is a container runtime for vSphere.

Build Status codecov Download Go Report Card

vSphere Integrated Containers Engine

vSphere Integrated Containers Engine (VIC Engine) is a container runtime for vSphere, allowing developers familiar with Docker to develop in containers and deploy them alongside traditional VM-based workloads on vSphere clusters, and allowing for these workloads to be managed through the vSphere UI in a way familiar to existing vSphere admins.

See VIC Engine Architecture for a high level overview.

Support and Troubleshooting

For general questions, visit the vSphere Integrated Containers Engine channel. If you do not have an @vmware.com or @emc.com email address, sign up at https://code.vmware.com/join to get an invitation.

Project Status

VIC Engine now provides:

  • support for most of the Docker commands for core container, image, volume and network lifecycle operations. Several docker compose commands are also supported. See the complete list of supported commands here.
  • vCenter support, leveraging DRS for initial placement. vMotion is also supported.
  • volume support for standard datastores such as vSAN and iSCSI datastores. NFS shares are also supported. See --volume-store - SIOC is not integrated but can be set as normal.
  • direct mapping of vSphere networks --container-network - NIOC is not integrated but can be set as normal.
  • dual-mode management - IP addresses are reported as normal via vSphere UI, guest shutdown via the UI will trigger delivery of container STOPSIGNAL, restart will relaunch container process.
  • client authentication - basic authentication via client certificates known as tlsverify.
  • integration with the VIC Management Portal (Admiral) for Docker image content trust.
  • integration with the vSphere Platform Services Controller (PSC) for Single Sign-on (SSO) for docker commands such as docker login.
  • an install wizard in the vSphere HTML5 client, as a more interactive alternative to installing via the command line. See details here.
  • support for a standard Docker Container Host (DCH) deployed and managed as a container on VIC Engine. This can be used to run docker commands that are not currently supported by VIC Engine (docker build, docker push). See details here.

We are working hard to add functionality while building out our foundation so continue to watch the repo for new features. Initial focus is on the production end of the CI pipeline, building backwards towards developer laptop scenarios.

Installing

After building the binaries (see the Building section), pick up the correct binary based on your OS, and install the Virtual Container Host (VCH) with the following command. For Linux:

bin/vic-machine-linux create --target <target-host>[/datacenter] --image-store <datastore name> --name <vch-name> --user <username> --password <password> --thumbprint <certificate thumbprint> --compute-resource <cluster or resource pool name> --tls-cname <FQDN, *.wildcard.domain, or static IP>

See vic-machine-$OS create --help for usage information. A more in-depth example can be found here.

Deleting

The installed VCH can be deleted using vic-machine-$OS delete.

See vic-machine-$OS delete --help for usage information. A more in-depth example can be found here.

Contributing

See CONTRIBUTING for details on submitting changes and the contribution workflow.

Building

Building the project is done with a combination of make and containers, with gcr.io/eminent-nation-87317/vic-build-image:tdnf being the common container base. This requires Docker installed. If gcr.io is not accessible you can follow the steps in Dockerfile to build this image.

To build as closely as possible to the formal build, you need the Go 1.8 toolchain and Drone.io installed:

drone exec

To build inside a Docker container:

docker run -v $GOPATH/bin:/go/bin -v $(pwd):/go/src/github.com/vmware/vic gcr.io/eminent-nation-87317/vic-build-image:tdnf make all

To build directly, you also need the Go 1.8 toolchain installed:

make all

There are three primary components generated by a full build, found in $BIN (the ./bin directory by default). The make targets used are the following:

  1. vic-machine - make vic-machine
  2. appliance.iso - make appliance
  3. bootstrap.iso - make bootstrap

Building binaries for development

Some of the project binaries can only be built on Linux. If you are developing on a Mac or Windows OS, then the easiest way to facilitate a build is by utilizing the project's Vagrantfile. The Vagrantfile will share the directory where the file is executed and set the GOPATH based on that share.

To build the component binaries, ensure GOPATH is set, then issue the following command in the root directory:

make components

This will install required tools and build the component binaries tether-linux, rpctool and server binaries docker-engine-server, port-layer-server. The binaries will be created in the $BIN directory, ./bin by default.

To run unit tests after a successful build, issue the following:

make test

Running "make" every time causes Go dependency regeneration for each component, so that "make" can rebuild only those components that are changed. However, such regeneration may take significant amount of time when it is not really needed. To fight that developers can use cached dependencies that can be enabled by defining the environment variable VIC_CACHE_DEPS. As soon as it is set, infra/scripts/go-deps.sh will read cached version of dependencies if those exist.

export VIC_CACHE_DEPS=1

This is important to note that as soon as you add a new package or an internal project dependency that didn't exist before, those dependencies should be regenerated to reflect latest changes. It can be done just by running:

make cleandeps

After that next "make" run will regenerate dependencies from scratch.

To enable generation of non-stripped binaries, the following environment variable can be set:

export VIC_DEBUG_BUILD=true

Updating the appliance with newly built binaries

After building any of the binaries for the appliance VM (vicadmin, vic-init, port-layer-server, or the docker personality), run make push to replace the binaries on your VCH with the newly built ones.

make push will prompt you for information that it needs, or you can set your GOVC environment variables, as well as VIC_NAME (name of your VCH) and VIC_KEY with a path to your SSH key in order to run make push noninteractively.

Replace individual components with one of: make push-portlayer, make push-vicadmin, make push-docker, or make push-vic-init.

Managing vendor/ directory

To build the VIC Engine dependencies, ensure GOPATH is set, then issue the following.

make gvt vendor

This will install the gvt utility and retrieve the build dependencies via gvt restore.

Building the ISOs

The component binaries above are packaged into ISO files, appliance.iso and bootstrap.iso, that are used by the installer. The generation of the ISOs is split into the following targets:

iso-base, appliance-staging, bootstrap-staging, appliance, and bootstrap

Generation of the ISOs involves authoring a new root filesystem, meaning running a package manager (currently tdnf) and packing/unpacking archives. This is done with gcr.io/eminent-nation-87317/vic-build-image:tdnf being the build container. This requires Docker installed. If gcr.io is not accessible you can follow the steps in Dockerfile to build this image. To generate the ISOs:

make isos

The appliance and bootstrap ISOs are bootable CD images used to start the VMs that make up VIC Engine. To build the image, issue the following.

docker run -v $(pwd):/go/src/github.com/vmware/vic gcr.io/eminent-nation-87317/vic-build-image:tdnf make isos

The iso image will be created in $BIN

Building Custom ISOs

Please reference this document to build your custom isos.

Building with CI

PRs to this repository will trigger builds on our Drone CI.

To build locally with Drone:

Ensure that you have Docker 1.6 or higher installed. Install the Drone command line tools. From the root directory of the vic repository run drone exec

Common Build Problems

  1. Builds may fail when building either the appliance.iso or bootstrap.iso with the error: cap_set_file failed - Operation not supported

    Cause: Some Ubuntu and Debian based systems ship with a defective aufs driver, which Docker uses as its default backing store. This driver does not support extended file capabilities such as cap_set_file

    Solution: Edit the /etc/default/docker file, add the option --storage-driver=overlay to the DOCKER_OPTS settings, and restart Docker.

  2. go vet fails when doing a make all

    Cause: Apparently some caching takes place in $GOPATH/pkg/linux_amd64/github.com/vmware/vic and can cause go vet to fail when evaluating outdated files in this cache.

    Solution: Delete everything under $GOPATH/pkg/linux_amd64/github.com/vmware/vic and re-run make all.

  3. vic-machine upgrade integration tests fail due to BUILD_NUMBER being set incorrectly when building locally

    Cause: vic-machine checks the build number of its binary to determine upgrade status and a locally-built vic-machine binary may not have the BUILD_NUMBER set correctly. Upon running vic-machine upgrade, it may fail with the message foo-VCH has same or newer version x than installer version y. No upgrade is available.

    Solution: Set BUILD_NUMBER to a high number at the top of the Makefile - BUILD_NUMBER ?= 9999999999. Then, re-build binaries - sudo make distclean && sudo make clean && sudo make all and run vic-machine upgrade with the new binary.

Integration Tests

VIC Engine Integration Test Suite includes instructions to run locally.

Debugging with DLV

VIC Engine DLV Debugging with DLV includes instruction on how to use dlv.

License

VIC Engine is available under the Apache 2 license.

More Repositories

1

photon

Minimal Linux container host
Python
2,879
star
2

govmomi

Go library for the VMware vSphere API
Go
2,177
star
3

pyvmomi

VMware vSphere API Python Bindings
Python
2,168
star
4

open-vm-tools

Official repository of VMware open-vm-tools project
C
2,048
star
5

differential-datalog

DDlog is a programming language for incremental computation. It is well suited for writing programs that continuously update their output in response to input changes. A DDlog programmer does not write incremental algorithms; instead they specify the desired input-output mapping in a declarative manner.
Java
1,339
star
6

pyvmomi-community-samples

A place for community contributed samples for the pyVmomi library.
Python
989
star
7

PowerCLI-Example-Scripts

PowerShell
738
star
8

vsphere-automation-sdk-python

Python samples, language bindings, and API reference documentation for vSphere, VMC, and NSX-T using the VMware REST API
Python
721
star
9

splinterdb

High Performance Embedded Key-Value Store
C
664
star
10

burp-rest-api

REST/JSON API to the Burp Suite security tool.
Java
546
star
11

versatile-data-kit

One framework to develop, deploy and operate data workflows with Python and SQL.
Python
412
star
12

concord-bft

Concord byzantine fault tolerant state machine replication library
C++
374
star
13

chap

chap analyzes un-instrumented core files for leaks, memory growth, and corruption
C++
345
star
14

kube-fluentd-operator

Auto-configuration of Fluentd daemon-set based on Kubernetes metadata
Go
318
star
15

vsphere-automation-sdk-java

Java samples, language bindings, and API reference documentation for vSphere, VMC, and NSX-T using the VMware REST API
Java
202
star
16

goipmi

Go IPMI library
Go
181
star
17

vic-product

vSphere Integrated Containers enables VMware customers to deliver a production-ready container solution to their developers and DevOps teams.
RobotFramework
174
star
18

ansible-for-nsxt

Ansible delivers simple IT automation that ends repetitive tasks and frees up DevOps teams for more strategic work. This project is to enable this automation for NSX-T installation.
Python
164
star
19

mangle

Git Repository for the Mangle tool
Java
159
star
20

weathervane

Virtual-Infrastructure and Cloud Performance Benchmark
Java
154
star
21

vmware-go-kcl

KCL Implementation in Go lang by VMware
Go
149
star
22

dscr-for-vmware

The Repository contains Microsoft PowerShell Desired State Configuration (DSC) Resources for managing VC and ESXi settings.
PowerShell
139
star
23

terraform-provider-vcd

Terraform VMware Cloud Director provider
Go
138
star
24

dod-compliance-and-automation

Security hardening content for VMware solutions to US Department of Defense standards
Ruby
135
star
25

ansible-module-vcloud-director

ansible-module-vcloud-director
Python
108
star
26

tdnf

Tiny Dandified Yum
C
106
star
27

terraform-provider-nsxt

Terraform VMware NSX-T provider
Go
105
star
28

declarative-cluster-management

Declarative cluster management using constraint programming, where constraints are described using SQL.
Java
99
star
29

powerclicore

PowerCLI Core Dockerfile
Dockerfile
96
star
30

terraform-provider-vra

Terraform VMware vRealize Automation provider
Go
96
star
31

clarity-city

Clarity City
CSS
91
star
32

load-balancer-and-ingress-services-for-kubernetes

Load Balancer and Ingress services for Kubernetes
Go
87
star
33

hamlet

Multi-Vendor Service Mesh Interoperation
86
star
34

open-vmdk

Python
85
star
35

container-service-extension

Container Service for VMware vCloud Director
Python
78
star
36

go-vcloud-director

Golang SDK for VMware Cloud Director
Go
76
star
37

vrealize-developer-tools

Extension for Visual Studio Code that provides code intelligence features and enables a more developer-friendly experience when creating vRealize content
TypeScript
73
star
38

nsx-t-datacenter-ci-pipelines

CI pipelines for VMware NSX-T Datacenter
Python
72
star
39

flowgate

Project FlowGate is an open-source vendor-neutral project that helps enterprises integrate facility systems data and IT data to form a single holistic view of their operations. By combining these two disparate data sets into one view, data center operators/IT admins are better equipped to optimize operations which were previously impossible.
Java
71
star
40

nsx-powerops

NSX-v Operationalization project. Automate Networking Documentation and HealthCheck.
Python
68
star
41

singleton

A service that provides support for Software Internationalization and Localization
Java
68
star
42

alb-sdk

Avi SDK and Utilities
Java
66
star
43

esx-boot

The ESXi bootloader
C
65
star
44

node-replication

An operation-log based approach for data replication.
Rust
57
star
45

ansible-security-hardening

ansible playbooks for linux distro security hardening
56
star
46

go-vmware-nsxt

golang library for NSX-T REST API
Go
55
star
47

data-annotator-for-machine-learning

Data annotator for machine learning allows you to centrally create, manage and administer annotation projects for machine learning
TypeScript
54
star
48

te-ns

Traffic Emulator for Network Services
C
53
star
49

idm

51
star
50

replay-app-for-tvos

tvOS application that converts an Apple TV into to a digital signage / kiosk
Swift
49
star
51

bitfusion-with-kubernetes-integration

Bitfusion with Kubernetes Integration Support
Go
48
star
52

photon-docker-image

Shell
44
star
53

vmw-guestinfo

Go
41
star
54

terraform-provider-tanzu-mission-control

Terraform provider to manage resources of Tanzu Mission Control
Go
40
star
55

terraform-provider-vra7

Terraform VMware vRealize Automation 7 provider
Go
40
star
56

c-rest-engine

C
39
star
57

power-validated-solutions-for-cloud-foundation

PowerShell Module for VMware Validated Solutions
PowerShell
39
star
58

nsx-alb-datascript-samples-library

DataScript Examples Library
Lua
38
star
59

build-tools-for-vmware-aria

Build Tools for VMware Aria provides development and release management tools for implementing automation solutions based on the VMware Aria Suite and VMware Cloud Director. The solution enables Virtual Infrastructure Administrators and Automation Developers to use standard DevOps practices for managing and deploying content.
Java
38
star
60

harbor-boshrelease

CFF BOSH Release for Project Harbor
Shell
37
star
61

ansible-vsphere-gos-validation

Guest OS validation test set for vSphere using Ansible
Python
37
star
62

cluster-api-provider-cloud-director

Cluster API Provider for VMware Cloud Director. The project is an open source implementation of K8s ClusterAPI project and allows customers to provision resources directly from VMware Cloud Director. It enables Cloud Director powered Clouds to be treated as yet-another-cloud in the multi-cloud journey for VMware Cloud Providers.
Go
36
star
63

script-runtime-service-for-vsphere

The Repository contains Script Runtime Service for vSphere. A service for managing server-side PowerCLI instances to run commands and scripts against VCenter servers.
Smalltalk
35
star
64

vrops-export

vRealize Operations Export Tool
Java
34
star
65

powershell-module-for-vmware-cloud-foundation

PowerShell Module for VMware Cloud Foundation
PowerShell
34
star
66

photon-packer-templates

VMware Photon Packer Templates
HCL
32
star
67

vsphere-automation-sdk-go

Go programming language SDK (Beta) for VMC. NSX-T and vSphere services will be added soon.
Go
32
star
68

likewise-open

Likewise OSS project
C
32
star
69

terraform-provider-avi

Terraform AVI Networks provider
Go
31
star
70

go-ipfix

An ipfix library in Go
Go
30
star
71

network-config-manager

Network configuration manager is utility for easily configuring networking on a linux system
C
30
star
72

nsx-container-plugin-operator

Kubernetes Operator for the NSX Container Plugin (NCP)
Go
30
star
73

nerpa

Network Programming with Relational and Procedural Abstractions (NERPA)
Rust
30
star
74

json-template-engine

This project provides implementations for the JSON template specification.
C++
30
star
75

vidm-saml-toolkit

VMware Identity Manager SAML Toolkit for Developers
Java
28
star
76

vic-ui

vSphere Integrated Containers Plug-In for vSphere Client provides information about your VIC setup and allows you to deploy VCHs directly from the vSphere Client.
TypeScript
28
star
77

cloud-director-named-disk-csi-driver

Container Storage Interface (CSI) driver for VMware Cloud Director
Go
27
star
78

vmware-cloud-director-ui-components

VMware Cloud Director UI Common Components
TypeScript
26
star
79

terraform-provider-vmc

Terraform provider for VMware Cloud on AWS
Go
25
star
80

vsphere-guest-run

Python library for guest operations
Python
24
star
81

python-client-for-vmware-cloud-on-aws

Python Client for VMware Cloud on AWS is an open-source Python-based tool. Written in Python, the tool enables VMware Cloud on AWS users to automate the consumption of their VMware Cloud on AWS SDDC.
Python
24
star
82

vmware-openapi-generator

VMware-openapi-generator tool generates open-api documents from vapi metamodel format.
Python
23
star
83

nsx-advanced-load-balancer-tools

Repository to build Docker container with all Avi tools.
Dockerfile
22
star
84

vSphere-machine-learning-extension

vSphere Machine Learning Extension
Shell
21
star
85

vmware-go-kcl-v2

vmware-go-kcl is a vmware originated open-source project for AWS Kinesis Client Library in Go. It has been widely used by many external companies and internally by Carbon Black. vmware-go-kcl-v2 is its companion project by utilizing AWS Go SDK V2 which introduces lots of breaking changes. To keep the repo clean, it is better to have a separated repo vmware-go-kcl-v2 with better golang project structure improvement.
Go
21
star
86

workflowTools

Developer workflow tooling for jenkins, jira, reviewboard and git
Java
20
star
87

global-load-balancing-services-for-kubernetes

Global Load Balancing Services for Kubernetes
Go
20
star
88

network-event-broker

manages network configuration
Go
20
star
89

crest

Crest machine learning based automated accessibility tests
Python
20
star
90

django-yamlconf

Django settings values via external YAML formatted files simplifying the c onfiguration of Django applications
Python
19
star
91

ansible-collection-alb

VMware Advanced Load Balancer (formerly Avi) Ansible Collection
Python
18
star
92

kernel-event-collector-module

This is the Linux kernel module event collector for the Carbon Black Cloud.
C
18
star
93

vra-sdk-go

VMware vRealize Automation SDK for Go
Python
18
star
94

cloud-provider-for-cloud-director

Kubernetes External Cloud Provider for VMware Cloud Director
Go
18
star
95

vhpc-toolkit

Virtualized High Performance Computing Toolkit - A toolkit to help configure and manage virtual high performance computing (HPC) clusters by leveraging vSphere APIs
Python
17
star
96

upgrade-framework

A product-agnostic framework for defining and sequencing upgrades
Java
17
star
97

powershell-module-for-vmware-cloud-foundation-reporting

PowerShell Module for VMware Cloud Foundation Reporting
PowerShell
17
star
98

nsx-integration-for-openshift

NSX-T deployment playbooks for Openshift integration
Python
16
star
99

trace-cruncher

Trace-Cruncher provides an interface between the existing instrumentation for collection and visualization of Linux kernel tracing data and the ecosystem of instruments for data analysis available in Python.
C
16
star
100

cloud-director-extension-standard-library

Standard Library for VMware Cloud Director solutions add-ons and add-on elements.
TypeScript
16
star