On Thu, Nov 5, 2020, 16:00 jb <jonbae77@gmail.com> wrote:
Hello,

I would like to build a hyperconverged gluster with hosted engine in a
virtual environment, on Fedora 33 with KVM.

The setup is for testing purposes, specially for test upgrades before
running them on the real physical Servers. But I want to have the setup
as close as possible to the real environment, so the only thing is
missing is a fence agent.

Is there a way to simulate power management in a virtual environment?

I had successfully used the following approach not much time ago:

# Setup power management for VMs:
at hardware host install:
```
yum install python-pip -y
yum install -y zeromq-devel
yum install -y gcc python-devel libvirt-devel
firewall-cmd --permanent --zone=public --add-port=623-624/udp
firewall-cmd --reload
vbmc add CentOS7-ovirt0 --username root --password yourpass --port 623
vbmc add CentOS7-ovirt1 --username root --password yourpass --port 624
[root@baremetal ~]# vbmc list
+----------------+--------+---------+------+
| Domain name | Status | Address | Port |
+----------------+--------+---------+------+
| CentOS7-ovirt0 | down | :: | 623 |
| CentOS7-ovirt1 | down | :: | 624 |
+----------------+--------+---------+------+
[root@v2 ~]# vbmc start CentOS7-ovirt0
2019-10-16 18:44:57,397.397 26596 INFO VirtualBMC [-] Started vBMC instance for domain CentOS7-ovirt0
[root@v2 ~]# vbmc start CentOS7-ovirt1
2019-10-16 18:45:38,056.056 26596 INFO VirtualBMC [-] Started vBMC instance for domain CentOS7-ovirt1
[root@v2 ~]# vbmc list
+----------------+---------+---------+------+
| Domain name | Status | Address | Port |
+----------------+---------+---------+------+
| CentOS7-ovirt0 | running | :: | 623 |
| CentOS7-ovirt1 | running | :: | 624 |
+----------------+---------+---------+------+
at node0 host (VM) check:
ipmitool -I lanplus -U root -P yourpass -H <hardware host IP> power status (default port is 623)
ipmitool -I lanplus -U root -P yourpass -H <hardware host IP> power status -p 624
at ovirt GUI you need lanplus=1,-p623 and lanplus=1,-p624 options for each host.
```


Jonathan
_______________________________________________
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-leave@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/
List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/V5SHGKNLTK24DQ3G7ZX6AGKIHLNCFS2J/