Skip to content

Use with Nested KVM and oVirt

kurokobo edited this page Feb 2, 2022 · 3 revisions

Please note this page doesn't describe basic operations like installation, starting the daemon, registration, and so on. Please check README.md first.

In the oVirt, by using VirtualBMC for vSphere, you can enable the Power Management feature for Nested-KVM host that is running in your VMware vSphere environment.

VirtualBMC for vSphere configuration

Nothing special. Add your virtual BMC for your Nested-KVM VMs by vsbmc command. There is no restriction of IP addresses or ports to bind.

For example, here I have 3 VMs as Nested-KVMs named lab-vkvm01, 02, and 03 on the ESXi in my VMware vSphere environment.

VirtualBMC for vSphere with Nested-KVM and oVirt

To register as BMC of KVM on oVirt, there is no restriction of IP addresses or ports. So I can share the single IP address of VirtualBMC host for those 3 vBMCs. In this example, as shown in the diagram, the VirtualBMC host has 192.168.0.241. The only thing I have to consider is to change port per VM. Then I should invoke:

$ vsbmc add lab-vkvm01 --port 6231 --viserver 192.168.0.201 --viserver-username vsbmc@vsphere.local --viserver-password Vmware123!
$ vsbmc add lab-vkvm02 --port 6232 --viserver 192.168.0.201 --viserver-username vsbmc@vsphere.local --viserver-password Vmware123!
$ vsbmc add lab-vkvm03 --port 6233 --viserver 192.168.0.201 --viserver-username vsbmc@vsphere.local --viserver-password Vmware123!

oVirt configuration

Configure the Fence Agent with the following parameters:

  • Enter the IP address of your VirtualBMC host in the Address field.
    • In this example, 192.168.0.241.
  • Enter the User Name and Password as configured in VirtualBMC.
    • By default, username and password are configured as admin and password.
  • Select ipmilan in the Type drop-down list.
    • Required configuration to use IPMI to communicate VirtualBMC.
  • Enter lanplus=1,ipport=<your-port-number> in the Options field.
    • In this example, for the KVM host nested in VM lab-vkvm01, it should be configured as lanplus=1,ipport=6231.
    • Do the same with the rest of them, configure lanplus=1,ipport=6232 for lab-kvm02 and lanplus=1,ipport=6233 for lab-kvm03.