This is a Docker image for the OpenStack VirtualBMC project
To build the project:
makeTo list the images:
make listTo run any tests:
make testTo push image to remote docker repository:
REPO_PASSWORD='MyPassword!$' make pushTo update README on remote docker repository (docker hub):
REPO_PASSWORD='MyPassword!$' make push-readmeTo cleanup and remove built images:
make cleanThe 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/virtualbmcOnce 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 listOn 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