Bring Up PowerKVM

So you got S822L or S824 machine which is shipped from factory.  Here we go to set up Powerkvm.  This blog talks about “How to bring up your Power8 box with PowerKVM”  and Manage/Monitor/….etc

1) Configure FSP IP

https://psuriset.wordpress.com/2014/10/18/configure-fsp-ip-on-powerkvm-machine/

2) Configure IPMI

https://psuriset.wordpress.com/2014/11/23/configure-ipmi-on-power8-box/

3) Access IMPI console to start install

https://psuriset.wordpress.com/2014/08/11/access-powerkvm-console-using-ipmi/

4) You can install PowerKVM using DVD or over network

https://psuriset.wordpress.com/2014/11/23/install-powerkvm-using-dvd/

5) Choose which management layer to use based on your requirement

Kimchi or PowerVC  or IBM Cloud Manager (ICM) or just devstack

Kimchi  :

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

Devstack:

https://psuriset.wordpress.com/2014/11/04/creating-an-openstack-cloud-using-devstack-and-ibm-powerkvm-compute-nodes/

PowerVC: 

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

xcat: ( To deploy PowerKVM)

https://psuriset.wordpress.com/2014/09/16/deploy-powerkvm-using-xcat/

Create Power Images for Openstack

https://psuriset.wordpress.com/2014/11/25/create-openstack-powerkvm-images/

6) if you have simple use case to use create VM with libvirt/virt-install and play with VM

virt-install

https://psuriset.wordpress.com/2014/08/28/create-vm-on-powerkvm-using-virt-install/

Clone VM:

https://psuriset.wordpress.com/2014/08/20/clone-vm-on-powerkvm/

pci passthrough to VM

https://psuriset.wordpress.com/2014/11/07/pci-passthrough-on-powerkvm/

Memory Balloon

https://psuriset.wordpress.com/2014/10/25/configure-memory-balloon-for-powerkvm/

NUMA on VM

https://psuriset.wordpress.com/2014/10/25/configure-numa-on-powerkvm-vm/

Enable/Disable SMT on VM

https://psuriset.wordpress.com/2014/10/25/enabledisable-smt-on-powerkvm-guest/

VM Migration

https://psuriset.wordpress.com/2014/08/21/virtual-machine-migration-between-powerkvm-machines/

Openvswitch

https://psuriset.wordpress.com/2014/08/20/open-vswitch-bridge-configuration-on-powerkvm/

7) If you want to Monitor your PowerKVM using various tools

Ganglia

https://psuriset.wordpress.com/2014/08/10/monitor-powerkvm-using-ganglia/

Nagios

https://psuriset.wordpress.com/2014/08/28/monitor-nagios-using-powerkvm/

lm_sensors

https://psuriset.wordpress.com/2014/11/20/health-monitoring-with-lm_sensors-on-power/

8) Devops tools on PowerKVM

chef

https://psuriset.wordpress.com/2014/09/16/setup-chef-on-standalone-powerkvm-environment/

9) Upgrade

Upgrade PowerKVM

https://psuriset.wordpress.com/2014/10/25/upgrade-powerkvm-to-latest-release/

Upgrade OPAL

https://psuriset.wordpress.com/2014/08/22/open-power-absraction-layer-opal-upgradation/?relatedposts_hit=1&relatedposts_origin=289&relatedposts_position=0

Upgrade Disk Adapter Microcode

https://psuriset.wordpress.com/2014/10/18/update-disks-mircorcode-attached-to-raid-adapter-on-power8-server/

10)  Tools

PowerLinux Tools

https://psuriset.wordpress.com/2014/08/26/ibm-power-linux-tools/

Profiler Utility tool

https://psuriset.wordpress.com/2014/08/22/linux-performance-customer-profiler-utility-for-powerkvmxkvm/

11) Docker on Power8

Running Docker on Power Servers:

Running Docker on Ubuntu for Power Servers

Create Dockerised applications for  Ubuntu on PPC64 servers:

How to create a Dockerized Application for Ubuntu on Power (ppc64) Servers

Running Docker on Power8

https://blog.jtlebi.fr/2014/10/28/getting-docker-to-run-on-power8/

By Jean-tiare from OVH

How to create repeatable development environments on PowerKVM using Vagrant and Docker

How to create repeatable development environments on PowerKVM using Vagrant and Docker

How to use Vagrant Docker provisioner with PowerKVM

How to use Vagrant Docker provisioner with PowerKVM

How to use Vagrant with PowerKVM

How to use Vagrant with PowerKVM

Hadoop on PowerKVM

RHEVM Managing PowerKVM

Advertisements

Deploy PowerKVM using xCAT

This blog shows how to install powerkvm & managing powerkvm node using xCAT.  Increasing need for dynamics re-provisioning , need a management tool to install PowerKVM on Power8 servers.

PS: powerkvm support is added in xcat-2.9 ( which is in development version)

Use  http://sourceforge.net/projects/xcat/files/yum/devel/core-rpms-snap.tar.bz2 and also download latest xcat-dep package from  sourceforge.net/projects/xcat/files/xcat-dep/2.x_Linux/

1. Use copycds to copy powerkvm ISO to install deploy

[root@xcat]# copycds -n pkvm2.1 ibm-powerkvm-201410101243.iso

Copying media to /install/pkvm2.1/ppc64                                                                                         Media copy operational successful

[root@xcat]

2. verify copycds using lsdef to list data objects definitions.

[root@xcat] lsdef -t osimage

pkvm2.1-ppc64-install-compute (osimage)

ubuntu14.04-ppc64-install-compute (osimage)

ubuntu14.04-ppc64-install-kvm (osimage)

[root@xcat]

3. Define a new node “n1” using mkdef, to modify existing node chdef can be used

[root@xcat] chdef n1 groups=all,kvm cons=ipmi mgt=ipmi

1 object definitions have been created or modified.

4.  Configure IPMI IP and password by setting “bmc” and “bmcpassword

[root@xcat] chdef n1 bmc=10.10.10.11 bmcpassword=pkvm1234

1 object definitions have been created or modified.

5. Configure mac address for node “n1” by setting “mac

[root@xcat] chdef n1 mac=6c:ae:8b:6a:d7:a0

1 object definitions have been created or modified.

6. Configure tftp and console server IP by setting “tftpserver” and “conserver

[root@xcat] chdef n1 tftpserver=10.10.10.12 conserver=10.10.10.12 nfsserver=10.10.10.12

1 object definitions have been created or modified.

7. Configure domain for node “n1” by setting “domain

[root@xcat] chdef -t site domain=example.com

1 object definitions have been created or modified.

8.  Configure IP for the node “n1” by setting “IP

[root@xcat] chdef n1 ip=10.10.10.14

1 object definitions have been created or modified.

9. Sets up /etc/hosts from the xCAT hosts table using “makehosts

[root@xcat] makehosts n1

10. set network boot type to “petotboot” by setting “netboot”

[root@xcat] chdef n1 netboot=petitboot

1 object definitions have been created or modified.

11. Use “nodeset” command to start installation on node “n1”, next time it boots up

[root@xcat] nodeset n1 osimagpkvm2.1-ppc64-install-compute

n1: install pkvm2.1-ppc64-compute

12. Reboot the node “n1” using “rpower

[root@xcat] rpower n1 reset

n1: reset

13. Monitor installation through the IPMI serial console using “rcons

[root@xcat] rcons n1

[Enter ‘^Ec?” for help]

[SOL session operational. Use ~? for help]

Pettitboot bootloader automatically boots the “xCAT” entry obtained from dhcp server

Figure 2: Petitboot

14. nodestat can be used to get status of machine. Status of node changed to sshd once install is complete

Commands can be run on installed node using psh

[root@xcat] nodestat n1

n1: sshd

[root@xcat] psh n1 uptime

n1: 6c:ae:8b:6a:d7:a0, 1 user, load average: 0.14, 0.07, 0.0.6