Skip to content

Commit 867f19e

Browse files
committed
document how to setup vbmc
1 parent 28f49c6 commit 867f19e

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

docs/bmc.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,32 @@ This is a set of simple simulation tools aimed at supporting the development and
1818
### VirtualBMC
1919

2020
* [Github](https://github.com/openstack/virtualbmc)
21+
* Fedora: `python3-virtualbmc`
2122

2223
A virtual BMC for controlling virtual machines using IPMI commands.
2324

25+
The virtual BMC consists of two parts:
26+
* `vbmcd` the daemon that exposes virtual BMCs
27+
* `vbmc` the client that can be used to configure the daemon
28+
29+
The `vbmcd` daemon needs to run as a user that has access to the libvirt instance.
30+
If you're using `qemu:///session` for libvirt, you can run `vbmcd --foreground` as your user.
31+
If you're using `qemu:///system` for libvirt, you can use the `vbmcd.service` provided by the Fedora package.
32+
33+
Once `vmbcd` is running, you can add virtual BMCs using the `vbmc` client:
34+
```
35+
$ vbmc add --libvirt-uri qemu:///session libvirt_domain_name
36+
```
37+
or
38+
```
39+
$ vbmc add --libvirt-uri qemu:///system libvirt_domain_name
40+
```
41+
42+
The username and password of the BMC can be changed using `--username` and `--password`.
43+
The port can't be changed with `--port` as Foreman doesn't allow configuring any other port than `623/udp`
44+
45+
You might need to allow `623/udp` in your firewall: `sudo firewall-cmd --zone=libvirt --add-port=623/udp`.
46+
47+
If you're running `vbmcd` as an unprivileged user, you'll need to allow it to bind to 623: `sudo sysctl net.ipv4.ip_unprivileged_port_start=0`.
48+
49+
Once everything is configured, you can start the virtual BMC with `vbmc start libvirt_domain_name` and Foreman should be able to control the machine using IPMI.

0 commit comments

Comments
 (0)