Create VM on PowerKVM using virt-install

VM can be created in multiple ways

1) Management layers like Openstack/PowerVC/CMO, Kimchi..etc

PowerVC: https://psuriset.wordpress.com/2014/08/11/powervc-managing-powerkvm/

Kimchi:  https://psuriset.wordpress.com/2014/08/09/kimchi-on-powerkvm/

2) If user would like to create VM using virt-install,

a) Create an image using qemu-img and start install

qemu-img create -f qcow2 /var/lib/libvirt/images/powerkvm.qcow2 8G
virt-install  --bridge= --mac= --disk path=/var/lib/libvirt/images/powerkvm.qcow2,size=8,format=qcow2 
--name= --ram=1024 --cdrom=

b) Access console of VM using virsh or virt-veiwer and continue install

virsh console

or

virt-viewer

Advertisements

Monitor PowerKVM using Nagios

Why Nagios?

Nagios is a system and network monitoring application. It watches PowerKVM hosts and  services that user specify

Nagios monitoring will be enabled via NRPE (nagios remote plugin-executor) which is the preferred method for remote monitoring of hosts.

What it can do ?

Alerting user when things go bad and when they get better. Nagios plugins that will be available by default
◦ Load average
◦ Disk usage
◦ Process Count and Resource Usage
◦ Log analysis
custom python scripts as nagios plugins provide any additional monitoring capability

Install packages:

[root@powerkvm-host ~]#  yum -y install nagios nagios-common nagios-plugins-*

Add PowerKVM node to nagios server:

#restart nrpe agent

Add configuration file for each powerkvm node in nagios server

Powerkvm Host state Breakdown by nagios

Program wide performance by nagios

Thanks to Yogananth Subramanian1