> »çÀü ¼³Ä¡ ÀÛ¾÷
# yum -y install python3 python3-pip
# pip3 install -U pip
-----------------------------------------------------------------
¸¸¾à¿¡ ¿¡·¯°¡ ¹ß»ýÇϸé,
# yum install -y libvirt-devel gcc python3-devel ipmitool
-----------------------------------------------------------------
# pip3 install virtualbmc
# yum install -y ipmitool
> vbmc ±âµ¿
# vbmcd
> VM¿¡ ipmi¿¬µ¿À» À§ÇÑ virtualbmc Æ÷Æ®, »ç¿ëÀÚ, Æнº¿öµå Á¤º¸ »ý¼º
vbmc add rhel8.6_RHCS01 --port 7001 --username admin --password redhat
vbmc add rhel8.6_RHCS02 --port 7002 --username admin --password redhat
> »ý¼ºÈ®ÀÎ
[root@theko RHCS]# vbmc list
+----------------+--------+---------+------+
| Domain name | Status | Address | Port |
+----------------+--------+---------+------+
| rhel8.6_RHCS01 | down | :: | 7001 |
| rhel8.6_RHCS02 | down | :: | 7002 |
+----------------+--------+---------+------+
> vbmc ±âµ¿
[root@theko RHCS]# vbmc start rhel8.6_RHCS01
[root@theko RHCS]# vbmc start rhel8.6_RHCS02
[root@theko RHCS]# vbmc list
+----------------+---------+---------+------+
| Domain name | Status | Address | Port |
+----------------+---------+---------+------+
| rhel8.6_RHCS01 | running | :: | 7001 |
| rhel8.6_RHCS02 | running | :: | 7002 |
+----------------+---------+---------+------+
> ipmi¸¦ ÅëÇØ vmÀÇ ÆÄ¿ö »óÅ ȮÀÎ
[root@theko RHCS]# ip -4 -o a show virbr1
4: virbr1 inet 100.100.100.1/24 brd 100.100.100.255 scope global virbr1\ valid_lft forever preferred_lft forever
[root@theko RHCS]# ip -4 -o a show virbr0
3: virbr0 inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0\ valid_lft forever preferred_lft forever
[root@theko RHCS]# ipmitool -I lanplus -H 192.168.122.1 -p 7001 -U admin -P redhat power status
Chassis Power is on
[root@theko RHCS]# ipmitool -I lanplus -H 100.100.100.1 -p 7001 -U admin -P redhat power status
Chassis Power is on
> Fence TEST(KVM ¹× VM¿¡¼ È®ÀÎ °¡´É- port°¡ °ð VM À» ÁöĪ)
# ipmitool -I lanplus -H 192.168.122.1 -p 7001 -U admin -P redhat power off
Âü°íÇÑ »çÀÌÆ®
. https://chhanz.github.io/linux/2022/04/14/vbmcd-ipminode/
. https://cloudlab.tistory.com/entry/RHEL8-KVM-%ED%99%98%EA%B2%BD%EC%97%90%EC%84%9C-VirtualBMC-%EA%B5%AC%EC%84%B1-%EB%B0%8F-IPMI-%EC%97%B0%EB%8F%99