Creating a mksysb image of an on-premises AIX LPAR

Step 1 – Configure the local AIX LPAR as a NIM client

Before you begin, make sure that there is 5 GB or more of free space on the client rootvg.

  1. Start the client.
  2. Change the hostname of the AIX LPAR (NIM client) to aix72tl2sp2.

    For instructions about changing the VM hostname, see Editing a VM hostname or primary IP address.

  3. Edit /etc/hosts to add IP addresses and hostnames for both the NIM master and NIM client.

    For example:

    • 10.0.0.1 nimmaster.example.com
    • 10.0.0.2 aix72tl2sp2
  4. From the command line, type chvg -g rootvg.
  5. Make sure bootps and tfptd are uncommented in /etc/inetd.conf.
  6. Change the permissions for tftpd with the command: chmod 555 /usr/sbin/tftpd.
  7. Restart the client.

Add the client to the NIM Master

  1. From the command line, type smit niminit.
  2. Enter the following values (and leave the rest as default):

    • Machine Name (to identify the client on the NIM master): aix72tl2sp2.
    • Primary Network Install Interface: en0
    • Host Name of Network Install Master: nimmaster.example.com
    • Communication Protocol used by client: shell

Step 2 – Check resources on the local NIM Master

  1. From the command line, type lsnim. You should see the client listed as type machines.
  2. From the command line, type lsnim -l {resource name}. This should list the details for the client. cstate should be ready for a NIM operation.

Step 3 – Create a mksysb image from the client

On the NIM master:

  1. Make sure that /etc/hosts on both the NIM master and the client include the IP address and fully qualified domain name for both the NIM master and the client.
  2. From the command line, type smit nim.
  3. Select Perform NIM Administration Tasks > Manage Resources > Define a Resource.

    If you have multiple clients, you’ll be prompted to select a NIM client.

  4. Select mksysb.
  5. Provide values for the following:

    • Resource name: aix72tl2sp2mksysb1
    • Server of Resource: master
    • Location of Resource: /export/mksysbimages/aix72tl2sp2mksysb
    • CREATE system backup image?: yes
    • NIM CLIENT to backup: [use F4 to select the appropriate client machine]
    • EXPAND /tmp if needed?: yes
    • Create MAP files?: yes
  6. From the command line, type lsnim to verify that the resource has been added.
  7. From the command line, type nim -o define -t spot -a server=master -a source=aix72tl2sp2mksysb1 -a location=/export/spot/aix72tl2sp2spot aix72tl2sp2spot1.
  8. From the command line, type lsnim to verify that the resource has been added.

Step 4 – Upload the mksysb image to the Skytap NIM master

Upload a copy of the mksysb image to the NIM master in Skytap using one of the methods described in Transferring files to a VM.

To create an AIX VM in Skytap from the msksysb image, see Restoring a mksysb image to an AIX VM.