setup-hw
is a tool to configure BMC and BIOS of the running server.
- Run
setup-hw
container as a system service. See README. - Prepare
/etc/neco/bmc-address.json
and/etc/neco/bmc-user.json
. See config page. - Use
docker exec
to runsetup-hw
inside the container. - If
setup-hw
exits with status code 10, the server need to be rebooted.
$ docker exec setup-hw setup-hw
$ if [ $? -eq 10 ]; then sudo reboot; fi