SolidCommand / docker-virtualbmc

VirtualBMC Docker Image

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VirtualBMC

Docker Automated build Docker Pulls Docker Stars

About

This is a Docker image for the OpenStack VirtualBMC project

Building

To build the project:

make

To list the images:

make list

To run any tests:

make test

To push image to remote docker repository:

REPO_PASSWORD='MyPassword!$' make push

To update README on remote docker repository (docker hub):

REPO_PASSWORD='MyPassword!$' make push-readme

To cleanup and remove built images:

make clean

Usage

The below example shows how to use this container by mounting an ssh key into the virtualbmc user's directory. This will start the VirtualBMC Daemon (vbmcd) and attach to your host's network.

To run the container:

docker run -d -v /home/someuser/.ssh/id_rsa:/virtualbmc/.ssh/id_rsa:ro --name virtualbmc --network host solidcommand/virtualbmc

Once you have started the daemon you can add hosts on a remote box by using something like the following:

docker exec -i -t virtualbmc vbmc add node01 --port 6230 --libvirt-uri 'qemu+ssh://root@my-libvirthost.example.com/system' --no-daemon
docker exec -i -t virtualbmc vbmc add node02 --port 6231 --libvirt-uri 'qemu+ssh://root@my-libvirthost.example.com/system' --no-daemon
docker exec -i -t virtualbmc vbmc start 'node01' --no-daemon
docker exec -i -t virtualbmc vbmc start 'node02' --no-daemon
docker exec -i -t virtualbmc vbmc list

On your host machine you should be able to run IPMI commands:

ipmitool -I lanplus -U admin -P password -H 127.0.0.1 -p 6230 power status

About

VirtualBMC Docker Image


Languages

Language:Makefile 50.0%Language:Dockerfile 42.5%Language:Shell 7.5%