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

Advertisements

3 thoughts on “Deploy PowerKVM using xCAT

  1. Pingback: Bring Up PowerKVM | Pradeep K Surisetty
  2. I executed copycds. however, lsdef -t osimage shows nothing:

    [root@servicevm iso]# copycds -n pkvm3.1 ibm-powerkvm-3.1.0.0-23.0-ppc64le-alpha
    -201507151418.iso
    Copying media to /install/pkvm3.1/ppc64le
    Media copy operation successful
    [root@servicevm iso]# ls /install/pkvm3.1
    ppc64le
    [root@servicevm iso]# lsdef -t osimage
    Could not find any object definitions to display.

    Like

  3. The procedure works for powerkvm-2.1.1.2:

    [root@servicevm iso]# ISO=ibm-powerkvm-2.1.1.2-46.0-ppc64-service-201504201847.iso
    [root@servicevm iso]# ls
    ibm-powerkvm-2.1.1.2-46.0-ppc64-service-201504201847.iso
    ibm-powerkvm-3.1.0.0-23.0-ppc64le-alpha-201507151418.iso
    [root@servicevm iso]# copycds -n pkvm2.1 $ISO
    Copying media to /install/pkvm2.1/ppc64
    Media copy operation successful
    [root@servicevm iso]# lsdef -t osimage
    pkvm2.1-ppc64-install-compute (osimage)

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s