项目作者: cybozu-go

项目描述 :
Build container image to configure BMC and BIOS
高级语言: Go
项目地址: git://github.com/cybozu-go/setup-hw.git
创建时间: 2019-01-24T05:20:26Z
项目社区:https://github.com/cybozu-go/setup-hw

开源协议:Other

下载


CI

Hardware setup container

This repository contains a Dockerfile and associated tools to build a
container image for configuring/monitoring server BMC and BIOS.

Specifically, the image bundles racadm from OMSA for Dell servers.

Usage

Build

  1. $ cd setup-hw
  2. $ make build-image

Run as a system service

The container need to be run as a system service before using racadm or setup-hw.

  1. $ sudo mkdir -p /var/lib/setup-hw
  2. $ docker run -d --name=setup-hw \
  3. --net=host --privileged \
  4. -v /dev:/dev \
  5. -v /lib/modules:/lib/modules:ro \
  6. -v /etc/neco:/etc/neco:ro \
  7. -v /var/lib/setup-hw:/var/lib/setup-hw \
  8. setup-hw:latest

Docker images

Docker images are available on ghcr.io

Access monitor-hw

monitor-hw is the default command of the container.
When you run the container, it starts exporting hardware metrics for
Prometheus. You can see the metrics from http://localhost:9105/metrics
by default.

You must prepare configuration files before running
monitor-hw.

Run racadm

  1. $ docker exec setup-hw racadm ...

Run setup-hw

setup-hw is a tool to configure BMC and BIOS of the running server.
See the document for details.