How to clone Integrity VM Guests using Dynamic Root Disk

From Wiki-UX.info
Jump to: navigation, search

Abstract

The article shows the instructions about Using Dynamic Root Disk to Clone Integrity Virtual Machines to clone an HP-UX 11i v3 Integrity VM guest. The purpose is to provide a more detailed presentation of the process.

The Integrity VM host is running HP Virtual Machine 4.0 (11i v3). It should be a technical equivalent of the HP Virtual Machine 3.5 (11i v2) discussed on the previous whitepaper.

The Integrity VM Guest cloud will be cloned using the Dynamic Root Disk (DRD) to a spare drive. The DRD cloning method presented in the whitepaper assumes that the HPVM guest is installed, or at least, does not use additional storage devices as the bootable LVM disc.

Here it is the status of the HPVM guest and the disks available for the HPVM host prior to beging the cloning process.

# hpvmstatus -P cloud
[Virtual Machine Details]
Virtual Machine Name VM #  OS Type State
==================== ===== ======= ========
cloud                    1 HPUX    Off

[Authorized Administrators]
Oper Groups:
Admin Groups:
Oper Users:
Admin Users:

[Virtual CPU Details]
#vCPUs Entitlement Maximum
====== =========== =======
     1       10.0%  100.0%

[Memory Details]
Total    Reserved
Memory   Memory
=======  ========
   4 GB     64 MB

[Storage Interface Details]
Guest                                 Physical
Device  Adaptor    Bus Dev Ftn Tgt Lun Storage   Device
======= ========== === === === === === ========= =========================
disk    avio_stor    0   1   0   0   0 disk      /dev/rdisk/disk9

[Network Interface Details]
Interface Adaptor    Name/Num   PortNum Bus Dev Ftn Mac Address
========= ========== ========== ======= === === === =================
vswitch   lan        sw1        3         0   0   0 7e-fd-a8-b8-ca-02

[Misc Interface Details]
Guest                                 Physical
Device  Adaptor    Bus Dev Ftn Tgt Lun Storage   Device
======= ========== === === === === === ========= =========================
serial  com1                           tty       console

# ioscan -m dsf
Persistent DSF           Legacy DSF(s)
========================================
/dev/rdisk/disk7         /dev/rdsk/c2t0d0	<-- Spare drive for drd cloning
/dev/rdisk/disk8         /dev/rdsk/c3t3d0
/dev/rdisk/disk9         /dev/rdsk/c3t6d0
/dev/rdisk/disk9_p1      /dev/rdsk/c3t6d0s1
/dev/rdisk/disk9_p2      /dev/rdsk/c3t6d0s2
/dev/rdisk/disk9_p3      /dev/rdsk/c3t6d0s3
/dev/rdisk/disk10        /dev/rdsk/c3t5d0
/dev/rdisk/disk10_p1     /dev/rdsk/c3t5d0s1
/dev/rdisk/disk10_p2     /dev/rdsk/c3t5d0s2
/dev/rdisk/disk10_p3     /dev/rdsk/c3t5d0s3
/dev/rdisk/disk11        /dev/rdsk/c3t4d0
/dev/rdisk/disk12        /dev/rdsk/c3t2d0
/dev/rdisk/disk12_p1     /dev/rdsk/c3t2d0s1
/dev/rdisk/disk12_p2     /dev/rdsk/c3t2d0s2
/dev/rdisk/disk12_p3     /dev/rdsk/c3t2d0s3
/dev/rdisk/disk13        /dev/rdsk/c0t0d0

Creating a Boot Disk for a New Virtual Machine with "DRD clone"

The boot disk of the initial virtual machine can be cloned with the Dynamic Root Disk to obtain a new virtual machine following these steps:

1. Use the hpvmmodify command on the VM host to modify the initial virtual machine, my_vm1, by adding a disk that will become the boot disk of the new VM.

# hpvmmodify -P <my_vm1> -a disk:scsi::disk:/dev/rdsk/c#t#d#

Example:

# hpvmmodify -P cloud -a disk:scsi::disk:/dev/rdsk/c2t0d0
# hpvmstatus -P cloud
[Virtual Machine Details]
Virtual Machine Name VM #  OS Type State
==================== ===== ======= ========
cloud                    1 HPUX    Off

[Authorized Administrators]
Oper Groups:
Admin Groups:
Oper Users:
Admin Users:

[Virtual CPU Details]
#vCPUs Entitlement Maximum
====== =========== =======
     1       10.0%  100.0%

[Memory Details]
Total    Reserved
Memory   Memory
=======  ========
   4 GB     64 MB

[Storage Interface Details]
Guest                                 Physical
Device  Adaptor    Bus Dev Ftn Tgt Lun Storage   Device
======= ========== === === === === === ========= =========================
disk    avio_stor    0   1   0   0   0 disk      /dev/rdisk/disk9
disk    scsi         0   2   0   0   0 disk      /dev/rdsk/c2t0d0

[Network Interface Details]
Interface Adaptor    Name/Num   PortNum Bus Dev Ftn Mac Address
========= ========== ========== ======= === === === =================
vswitch   lan        sw1        3         0   0   0 7e-fd-a8-b8-ca-02

[Misc Interface Details]
Guest                                 Physical
Device  Adaptor    Bus Dev Ftn Tgt Lun Storage   Device
======= ========== === === === === === ========= =========================
serial  com1                           tty       console

2. Install the latest Dynamic Root Disk (DRD) version on the HPVM guest. Check that the new version is correctly installed.

# swinstall -s /var/tmp/DynRootDisk_B.1131.A.3.2.1962_HP-UX_B.11.31_IA_PA.depot "*" @

======  12/06/08 10:52:24 CST  BEGIN swinstall SESSION
         (non-interactive) (jobid=cloud-0003)

       * Session started for user "root@cloud".

       * Beginning Selection
       * Target connection succeeded for "cloud:/".
       * Source:
         /var/tmp/DynRootDisk_B.1131.A.3.2.1962_HP-UX_B.11.31_IA_PA.depot

       * Targets:                cloud:/
       * Software selections:
             DynRootDisk,r=B.1131.A.3.2.1962,a=HP-UX_B.11.31_IA/PA,v=HP
             Judy,r=B.11.31.04.18,a=HP-UX_B.11.31_IA/PA,v=HP
             SD,r=B.11.31.0809.325,a=HP-UX_B.11.31_IA/PA,v=HP
             DRD.DRD-ENG-A-MAN,r=B.1131.A.3.2.1962,a=HP-UX_B.11.31_IA/PA,v=HP,fr=B.1131.A.3.2.1962,fa=HP-UX_B.11.31_IA/PA
             DRD.DRD-RUN,r=B.1131.A.3.2.1962,a=HP-UX_B.11.31_IA/PA,v=HP,fr=B.1131.A.3.2.1962,fa=HP-UX_B.11.31_IA
             Judy-lib.JUDY,r=B.11.31.04.18,a=HP-UX_B.11.31_IA/PA,v=HP,fr=B.11.31.04.18,fa=HP-UX_B.11.31_IA
             Judy-lib.JUDY-COMMON,r=B.11.31.04.18,a=HP-UX_B.11.31_IA/PA,v=HP,fr=B.11.31.04.18,fa=HP-UX_B.11.31_IA/PA
             SW-DIST.GZIP,r=B.11.31.0809.325,a=HP-UX_B.11.31_IA/PA,v=HP,fr=B.11.31.0809.325,fa=HP-UX_B.11.31_IA/PA
             SW-DIST.GZIP2,r=B.11.31.0809.325,a=HP-UX_B.11.31_IA/PA,v=HP,fr=B.11.31.0809.325,fa=HP-UX_B.11.31_IA
             SW-DIST.SD-AGENT,r=B.11.31.0809.325,a=HP-UX_B.11.31_IA/PA,v=HP,fr=B.11.31.0809.325,fa=HP-UX_B.11.31_IA/PA
             SW-DIST.SD-CMDS,r=B.11.31.0809.325,a=HP-UX_B.11.31_IA/PA,v=HP,fr=B.11.31.0809.325,fa=HP-UX_B.11.31_IA/PA
             SW-DIST.SD-ENG-A-MAN,r=B.11.31.0809.325,a=HP-UX_B.11.31_IA/PA,v=HP,fr=B.11.31.0809.325,fa=HP-UX_B.11.31_IA/PA
             SW-DIST.SD-EXAMPLES,r=B.11.31.0809.325,a=HP-UX_B.11.31_IA/PA,v=HP,fr=B.11.31.0809.325,fa=HP-UX_B.11.31_IA/PA
             SW-DIST.SD-FAL,r=B.11.31.0809.325,a=HP-UX_B.11.31_IA/PA,v=HP,fr=B.11.31.0809.325,fa=HP-UX_B.11.31_IA/PA
             SW-DIST.SD-FRE-I-MSG,r=B.11.31.0809.325,a=HP-UX_B.11.31_IA/PA,v=HP,fr=B.11.31.0809.325,fa=HP-UX_B.11.31_IA/PA
             SW-DIST.SD-GER-I-MSG,r=B.11.31.0809.325,a=HP-UX_B.11.31_IA/PA,v=HP,fr=B.11.31.0809.325,fa=HP-UX_B.11.31_IA/PA
             SW-DIST.SD-HELP,r=B.11.31.0809.325,a=HP-UX_B.11.31_IA/PA,v=HP,fr=B.11.31.0809.325,fa=HP-UX_B.11.31_IA/PA
             SW-DIST.SD-JPN-E-HELP,r=B.11.31.0809.325,a=HP-UX_B.11.31_IA/PA,v=HP,fr=B.11.31.0809.325,fa=HP-UX_B.11.31_IA/PA
             SW-DIST.SD-JPN-E-MAN,r=B.11.31.0809.325,a=HP-UX_B.11.31_IA/PA,v=HP,fr=B.11.31.0809.325,fa=HP-UX_B.11.31_IA/PA
             SW-DIST.SD-JPN-E-MSG,r=B.11.31.0809.325,a=HP-UX_B.11.31_IA/PA,v=HP,fr=B.11.31.0809.325,fa=HP-UX_B.11.31_IA/PA
             SW-DIST.SD-JPN-S-HELP,r=B.11.31.0809.325,a=HP-UX_B.11.31_IA/PA,v=HP,fr=B.11.31.0809.325,fa=HP-UX_B.11.31_IA/PA
             SW-DIST.SD-JPN-S-MAN,r=B.11.31.0809.325,a=HP-UX_B.11.31_IA/PA,v=HP,fr=B.11.31.0809.325,fa=HP-UX_B.11.31_IA/PA
             SW-DIST.SD-JPN-S-MSG,r=B.11.31.0809.325,a=HP-UX_B.11.31_IA/PA,v=HP,fr=B.11.31.0809.325,fa=HP-UX_B.11.31_IA/PA
             SW-DIST.SD-KOR-E-MSG,r=B.11.31.0809.325,a=HP-UX_B.11.31_IA/PA,v=HP,fr=B.11.31.0809.325,fa=HP-UX_B.11.31_IA/PA
             SW-DIST.SD-PROVIDER,r=B.11.31.0809.325,a=HP-UX_B.11.31_IA/PA,v=HP,fr=B.11.31.0809.325,fa=HP-UX_B.11.31_IA/PA
             SW-DIST.SD-TCH-B-MSG,r=B.11.31.0809.325,a=HP-UX_B.11.31_IA/PA,v=HP,fr=B.11.31.0809.325,fa=HP-UX_B.11.31_IA/PA
             SW-DIST.SD-TCH-H-MSG,r=B.11.31.0809.325,a=HP-UX_B.11.31_IA/PA,v=HP,fr=B.11.31.0809.325,fa=HP-UX_B.11.31_IA/PA
             SW-DIST.SD2-AGENT,r=B.11.31.0809.325,a=HP-UX_B.11.31_IA/PA,v=HP,fr=B.11.31.0809.325,fa=HP-UX_B.11.31_IA
             SW-DIST.SD2-CMDS,r=B.11.31.0809.325,a=HP-UX_B.11.31_IA/PA,v=HP,fr=B.11.31.0809.325,fa=HP-UX_B.11.31_IA
             SW-DIST.SD2-PROVIDER,r=B.11.31.0809.325,a=HP-UX_B.11.31_IA/PA,v=HP,fr=B.11.31.0809.325,fa=HP-UX_B.11.31_IA
       * Selection succeeded.


       * Beginning Analysis and Execution
       * Session selections have been saved in the file
         "/.sw/sessions/swinstall.last".
       * "cloud:/":  25 filesets have the selected revision already
         installed.
       * "cloud:/":  25 software objects were determined to be skipped
         in the analysis phase.
       * Analysis and Execution succeeded.


NOTE:    More information may be found in the agent logfile using the
         command "swjob -a log cloud-0003 @ cloud:/".

=======  12/06/08 10:52:46 CST  END swinstall SESSION (non-interactive)
         (jobid=cloud-0003)
# swlist DynRootDisk
# Initializing...
# Contacting target "cloud"...
#
# Target:  cloud:/
#

# DynRootDisk           B.1131.A.3.2.1962 Dynamic Root Disk
  DynRootDisk.DRD       B.1131.A.3.2.1962 Dynamic Root Disk

3. Use the drd clone command on the VM <my_vm1> to create the boot disk for the new VM. The clone target is specified on the drd clone command as a block device special file. If <my_vm1> is setup as described above, it will contain two disks: the boot disk, and the newly added disk which will be the clone target.

4. To determine the device special files for both, the boot disk and the newly added disk, issue this command:

# ioscan -fnC disk

Example:

# ioscan -NfnkC disk
Class     I  H/W Path  Driver S/W State   H/W Type     Description
===================================================================
disk      1  64000/0xfa00/0x0  esdisk   CLAIMED     DEVICE       HP      Virtual Disk
                      /dev/disk/disk1      /dev/rdisk/disk1
                      /dev/disk/disk1_p1   /dev/rdisk/disk1_p1
                      /dev/disk/disk1_p2   /dev/rdisk/disk1_p2
                      /dev/disk/disk1_p3   /dev/rdisk/disk1_p3
disk      3  64000/0xfa00/0x4  esdisk   CLAIMED     DEVICE       HP      Virtual Disk
                      /dev/disk/disk3   /dev/rdisk/disk3                                  <-- New dsf

5. To be sure which of these disks is the boot disk, locate the device special file in the output of the following command:

# vgdisplay -v vg00

Example:

# vgdisplay -v /dev/vg00
--- Volume groups ---
VG Name                     /dev/vg00
VG Write Access             read/write
VG Status                   available
Max LV                      255
Cur LV                      8
Open LV                     8
Max PV                      16
Cur PV                      1
Act PV                      1
Max PE per PV               4238
VGDA                        2
PE Size (Mbytes)            8
Total PE                    4228
Alloc PE                    4228
Free PE                     0
Total PVG                   0
Total Spare PVs             0
Total Spare PVs in use      0
VG Version                  1.0
VG Max Size                 542464m
VG Max Extents              67808

   --- Logical volumes ---
   LV Name                     /dev/vg00/lvol1
   LV Status                   available/syncd
   LV Size (Mbytes)            1792
   Current LE                  224
   Allocated PE                224
   Used PV                     1

   LV Name                     /dev/vg00/lvol2
   LV Status                   available/syncd
   LV Size (Mbytes)            12288
   Current LE                  1536
   Allocated PE                1536
   Used PV                     1

   LV Name                     /dev/vg00/lvol3
   LV Status                   available/syncd
   LV Size (Mbytes)            1024
   Current LE                  128
   Allocated PE                128
   Used PV                     1

   LV Name                     /dev/vg00/lvol4
   LV Status                   available/syncd
   LV Size (Mbytes)            512
   Current LE                  64
   Allocated PE                64
   Used PV                     1

   LV Name                     /dev/vg00/lvol5
   LV Status                   available/syncd
   LV Size (Mbytes)            104
   Current LE                  13
   Allocated PE                13
   Used PV                     1

   LV Name                     /dev/vg00/lvol6
   LV Status                   available/syncd
   LV Size (Mbytes)            7216
   Current LE                  902
   Allocated PE                902
   Used PV                     1

   LV Name                     /dev/vg00/lvol7
   LV Status                   available/syncd
   LV Size (Mbytes)            4904
   Current LE                  613
   Allocated PE                613
   Used PV                     1

   LV Name                     /dev/vg00/lvol8
   LV Status                   available/syncd
   LV Size (Mbytes)            5984
   Current LE                  748
   Allocated PE                748
   Used PV                     1


   --- Physical volumes ---
   PV Name                     /dev/disk/disk12_p2     <--- Boot disk
   PV Status                   available
   Total PE                    4228
   Free PE                     0
   Autoswitch                  On
   Proactive Polling           On

6. Then, use the other block device special file as the target of the DRD clone command:

# drd clone -v -t _target_dsf_ -x overwrite=true

Example:

# drd clone -v -t /dev/disk/disk3 -x overwrite=true

=======  12/06/08 11:11:02 CST  BEGIN Clone System Image (user=root)
         (jobid=cloud)

       * Reading Current System Information
       * Selecting System Image To Clone
       * Selecting Target Disk
       * Selecting Volume Manager For New System Image
       * Analyzing For System Image Cloning
       * Creating New File Systems
       * Copying File Systems To New System Image
       * Making New System Image Bootable
       * Unmounting New System Image Clone
       * System image: "sysimage_001" on disk "/dev/disk/disk3"

=======  12/06/08 11:56:58 CST  END Clone System Image succeeded. (user=root)
         (jobid=cloud)

Set cloned HPVM guest Personality

Removing the hostname in the netconf file of the clone disk will cause a user interface to be displayed during bootup, where the system personality can be set. If DHCP determines all or part of the personality, you can combine this approach adding information to the DHCP or BOOTP server in the new virtual machine after creating it in the next step. To use this approach, do the following:

1. Log in to <my_vm1> as root and issue

# drd mount

Example:

# drd mount

=======  12/06/08 12:01:12 CST  BEGIN Mount Inactive System Image (user=root)
         (jobid=cloud)

       * Checking for Valid Inactive System Image
       * Locating Inactive System Image
       * Mounting Inactive System Image

=======  12/06/08 12:01:23 CST  END Mount Inactive System Image succeeded.
         (user=root)  (jobid=cloud)

# bdf
Filesystem          kbytes    used   avail %used Mounted on
/dev/vg00/lvol3    1048576  174064  867728   17% /
/dev/vg00/lvol1    1835008  185224 1636984   10% /stand
/dev/vg00/lvol7    4194304  975000 3198848   23% /var
/dev/vg00/lvol6    6291456 2921472 3343728   47% /usr
/dev/vg00/lvol5     524288   21168  499200    4% /tmp
/dev/vg00/lvol4    8388608 4348704 4008408   52% /opt
/dev/vg00/lvol8     106496    5792   99928    5% /home
/dev/drd00/lvol3   1048576  173392  868408   17% /var/opt/drd/mnts/sysimage_001
/dev/drd00/lvol8    106496    5792   99928    5% /var/opt/drd/mnts/sysimage_001/home
/dev/drd00/lvol4   8388608 4339192 4017848   52% /var/opt/drd/mnts/sysimage_001/opt
/dev/drd00/lvol1   1835008  185160 1636984   10% /var/opt/drd/mnts/sysimage_001/stand
/dev/drd00/lvol5    524288   21168  499200    4% /var/opt/drd/mnts/sysimage_001/tmp
/dev/drd00/lvol6   6291456 2853840 3410768   46% /var/opt/drd/mnts/sysimage_001/usr
/dev/drd00/lvol7   4194304  943288 3225648   23% /var/opt/drd/mnts/sysimage_001/var

2. Edit the file /var/opt/drd/mnts/sysimage_001/etc/rc.config.d/netconf and set HOSTNAME=””.

3. The clone disk also contains a copy of the DRD registry. Since the source disk that was cloned will not be present when the new virtual machine is booted, there will be no confusion if the DRD registry is removed from the clone:

# rm /var/opt/drd/mnts/sysimage_001/var/opt/drd/registry/registry.xml

4. Disable DRD image

# drd umount

Example:

# drd umount

=======  12/06/08 12:02:45 CST  BEGIN Unmount Inactive System Image (user=root)
         (jobid=cloud)

       * Checking for Valid Inactive System Image
       * Locating Inactive System Image
       * Unmounting Inactive System Image

=======  12/06/08 12:02:58 CST  END Unmount Inactive System Image succeeded.
         (user=root)  (jobid=cloud)

Creating a New Virtual Machine for the New Boot Disk

Once the boot disk has been populated, it can be removed from the original virtual machine and used as the boot disk for a new virtual machine. Then, enter the next commands on the VM host:

1. Use hpvmstatus on the VM host to determine the hardware address of the clone disk. You will need it in step 3.

# hpvmstatus -d -P <my_vm1>

Note the hardware address of the clone disk: In the section “Storage Interface Details” you should see a line that looks similar to the following:

disk:scsi:1,2,3:disk:/dev/rdsk/c1t1d0

Example:

# hpvmstatus -d -P cloud
[Virtual Machine Devices]

[Storage Interface Details]
disk:scsi:0,2,0:disk:/dev/rdsk/c2t0d0		<-- 0,2,0 /dev/rdisk/disk9
disk:avio_stor:0,1,0:disk:/dev/rdisk/disk9

[Network Interface Details]
network:lan:0,0,0x7efda8b8ca02:vswitch:sw1

[Misc Interface Details]
serial:com1::tty:console

2. Use hpvmmodify command on the VM host to delete the clone from the initial virtual machine:

Example:

# hpvmmodify -P cloud -d disk:scsi:0,2,0:disk:/dev/rdsk/c2t0d0

3. Use hpvmcreate on the VM host to create the new VM, specifying the clone target as a disk resource. It is critical that the hardware address of the disk on the new VM be the same as it was on the initial VM:

# hpvmcreate -P new_vm -c 1 -r 2G -a network:lan::vswitch:myvswtch \
-a disk:scsi:1,2,3:disk:/dev/rdsk/c1t1d0

Example:

# hpvmcreate -P cloned -c 1 -r 4G -a network:lan::vswitch:sw1 \
> -a disk:scsi:0,2,0:disk:/dev/rdsk/c2t0d0
# hpvmstatus -d -P cloned
[Virtual Machine Devices]

[Storage Interface Details]
disk:scsi:0,2,0:disk:/dev/rdsk/c2t0d0

[Network Interface Details]
network:lan:0,0,0xA2E504EB1E41:vswitch:sw1

[Misc Interface Details]
serial:com1::tty:console

Booting the New Virtual Machine

1. Issue the commands from the VM host

# hpvmstart –P <my_vm1>
# hpvmconsole –P <my_vm1>

Example:

# hpvmstart -P cloned
(C) Copyright 2000 - 2008 Hewlett-Packard Development Company, L.P.
Initializing System Event Log
Initializing Forward Progress Log
Opening minor device and creating guest machine container
Creation of VM, minor device 1
Allocating guest memory: 4096MB
  allocating low RAM (0-80000000, 2048MB)
/opt/hpvm/lbin/hpvmapp (/var/opt/hpvm/uuids/75d2d7e6-c3c4-11dd-8401-00306e4af350/vmm_config.current): Allocated 2147483648 bytes at 0x6000000100000000
    locking memory: 0-80000000
  allocating high RAM (100000000-180000000, 2048MB)
/opt/hpvm/lbin/hpvmapp (/var/opt/hpvm/uuids/75d2d7e6-c3c4-11dd-8401-00306e4af350/vmm_config.current): Allocated 2147483648 bytes at 0x6000000200000000
    locking memory: 100000000-180000000
  allocating datalogger memory: FF800000-FF810000 (64KB for 12KB)
/opt/hpvm/lbin/hpvmapp (/var/opt/hpvm/uuids/75d2d7e6-c3c4-11dd-8401-00306e4af350/vmm_config.current): Allocated 65536 bytes at 0x6000000300000000
    locking datalogger memory
  allocating firmware RAM (fff00000-fff20000, 128KB)
/opt/hpvm/lbin/hpvmapp (/var/opt/hpvm/uuids/75d2d7e6-c3c4-11dd-8401-00306e4af350/vmm_config.current): Allocated 131072 bytes at 0x6000000300020000
    locked SAL RAM: 00000000fff00000 (8KB)
    locked ESI RAM: 00000000fff02000 (8KB)
    locked PAL RAM: 00000000fff04000 (8KB)
    locked Min Save State: 00000000fff06000 (4KB)
    locked datalogger: 00000000ff800000 (64KB)
Loading boot image
Image initial IP=102000 GP=686000
Initialize guest memory mapping tables
Starting event polling thread
Starting thread initialization
No NVRAM persistent variables on disk
Daemonizing....
hpvmstart: Successful start initiation of guest 'cloned'
# hpvmconsole -P cloned


   vMP MAIN MENU

         CO: Console
         CM: Command Menu
         CL: Console Log
         SL: Show Event Logs
         VM: Virtual Machine Menu
         HE: Main Help Menu
          X: Exit Connection

[cloned] vMP> CO



        (Use Ctrl-B to return to vMP main menu.)
EFI Boot Manager ver 1.10 [14.62] [Build: Tue Jun 17 09:30:56 2008]

Please select a boot option

    EFI Shell [Built-in]             <-- Select EFI Shell
    Boot option maintenance menu


    Use ^ and v to change option(s). Use Enter to select an option
Loading.: EFI Shell [Built-in]
EFI Shell version 1.10 [14.62]
Device mapping table
  fs0  : Acpi(PNP0A03,0)/Pci(2|0)/Scsi(Pun0,Lun0)/HD(Part1,SigE3EF4554-C3B8-11DD-8000-D6217B60E588)
  fs1  : Acpi(PNP0A03,0)/Pci(2|0)/Scsi(Pun0,Lun0)/HD(Part3,SigE3EF45CC-C3B8-11DD-8000-D6217B60E588)
  blk0 : Acpi(PNP0A03,0)/Pci(2|0)/Scsi(Pun0,Lun0)
  blk1 : Acpi(PNP0A03,0)/Pci(2|0)/Scsi(Pun0,Lun0)/HD(Part1,SigE3EF4554-C3B8-11DD-8000-D6217B60E588)
  blk2 : Acpi(PNP0A03,0)/Pci(2|0)/Scsi(Pun0,Lun0)/HD(Part2,SigE3EF4590-C3B8-11DD-8000-D6217B60E588)
  blk3 : Acpi(PNP0A03,0)/Pci(2|0)/Scsi(Pun0,Lun0)/HD(Part3,SigE3EF45CC-C3B8-11DD-8000-D6217B60E588)
startup.nsh> echo -off

  setting hpux path(\EFI\HPUX)...
  type 'fs[x]:' where x is your bootdisk (0, 1, 2...)
  type 'hpux' to start hpux bootloader
Shell> fs0:

fs0:\> hpux
(C) Copyright 1999-2008 Hewlett-Packard Development Company, L.P.
All rights reserved

HP-UX Boot Loader for IPF  --  Revision 2.036

Press Any Key to interrupt Autoboot
\efi\hpux\AUTO ==> boot vmunix
Seconds left till autoboot -   0
AUTOBOOTING...> System Memory = 4090 MB
loading section 0
.................................................................. (complete)
loading section 1
............ (complete)
loading symbol table
loading System Directory (boot.sys) to MFS
.....
loading MFSFILES directory (bootfs) to MFS
.....................
Launching /stand/vmunix
SIZE: Text:33571K + Data:5885K + BSS:20547K = Total:60004K
Console is on Serial COM1
Booting kernel...

Disabling 8259s
Loaded ACPI revision 2.0 tables.
Using /stand/ext_ioconfig

Memory Class Setup
-------------------------------------------------------------------------
Class     Physmem              Lockmem              Swapmem
-------------------------------------------------------------------------
System :  3891 MB              3891 MB              3891 MB
Kernel :  3891 MB              3891 MB              3891 MB
User   :  3576 MB              3170 MB              3183 MB
-------------------------------------------------------------------------

ktracer is off until requested.
NOTE: nm_devvp_lock not a power of 2 or is outside of allowed range: (16)
NOTE: setting nm_devvp_lock to 32
Installing Socket Protocol families AF_INET and AF_INET6
Kernel EVM initialized
sec_init(): kernel RPC authentication/security initialization.
secgss_init():  kernel RPCSEC_GSS security initialization.
rpc_init(): kernel RPC initialization.
rpcmod_install(): kernel RPC STREAMS module "rpcmod" installation. ...(driver_install)
NOTICE: nfs_client_pv3_install(): nfs3 File system was registered at index 10.
NOTICE: nfs_client_pv4_install(): nfs4 File system was registered at index 11.
NOTICE: cachefsc_install: cachefs File system was registered at index 13.
hpvmdynmem load: complete hpvmdynmem_load=0xe000000132cf2ca0
Boot device's HP-UX HW path is: 0.0.2.0.0.0
iether0: INITIALIZING HP  PCI/PCI-X 1000Base-T  at hardware path 0/0/0/0

    System Console is on the Built-In Serial Interface
afinet_prelink: module installed
Starting the STREAMS daemons-phase 1
AF_INET socket/streams output daemon running, pid 39
LVM: Root VG activated
    Swap device table:  (start & size given in 512-byte blocks)
        entry 0 - major is 64, minor is 0x10002; start = 0, size = 8388608
Checking root file system.
file system is clean - log replay is not required
Root check done.
Create STCP device files
Starting the STREAMS daemons-phase 2
     $Revision: vmunix:    B.11.31_LR FLAVOR=perf
Memory Information:
    physical page size = 4096 bytes, logical page size = 4096 bytes
    Physical: 4188736 Kbytes, lockable: 2910492 Kbytes, available: 3326108 Kbytes

/sbin/ioinitrc:
/dev/vg00/lvol1:file system is clean - log replay is not required
/sbin/krs_sysinit:
       * The module 'rng' has been loaded.

insf: Installing special files for ipmi instance 0 address 250/0

/sbin/bcheckrc:
Checking for LVM volume groups and Activating (if any exist)
Volume group "/dev/vg00" is already active on this system.
Resynchronized volume group /dev/vg00
Checking vxfs file systems
vxfs fsck: V-3-20913: /dev/vg00/lvol3:sanity check: root file system OK (mounted read/write)
vxfs fsck: V-3-20948: /dev/vg00/lvol1:/dev/vg00/lvol1 is currently mounted
vxfs fsck: V-3-20914: /dev/vg00/lvol1:sanity check: /dev/vg00/lvol1 already mounted
vxfs fsck: V-3-20915: /dev/vg00/lvol4:sanity check: /dev/vg00/lvol4 OK
vxfs fsck: V-3-20915: /dev/vg00/lvol5:sanity check: /dev/vg00/lvol5 OK
vxfs fsck: V-3-20915: /dev/vg00/lvol6:sanity check: /dev/vg00/lvol6 OK
vxfs fsck: V-3-20915: /dev/vg00/lvol7:sanity check: /dev/vg00/lvol7 OK
vxfs fsck: V-3-20915: /dev/vg00/lvol8:sanity check: /dev/vg00/lvol8 OK

Cleaning /etc/ptmp...
(c)Copyright 1983-2006 Hewlett-Packard Development Company, L.P.
(c)Copyright 1979, 1980, 1983, 1985-1993 The Regents of the Univ. of California
(c)Copyright 1980, 1984, 1986 Novell, Inc.
(c)Copyright 1986-2000 Sun Microsystems, Inc.
(c)Copyright 1985, 1986, 1988 Massachusetts Institute of Technology
(c)Copyright 1989-1993  The Open Software Foundation, Inc.
(c)Copyright 1990 Motorola, Inc.
(c)Copyright 1990, 1991, 1992 Cornell University
(c)Copyright 1989-1991 The University of Maryland
(c)Copyright 1988 Carnegie Mellon University
(c)Copyright 1991-2006 Mentat Inc.
(c)Copyright 1996 Morning Star Technologies, Inc.
(c)Copyright 1996 Progressive Systems, Inc.

Confidential computer software. Valid license from HP required for
possession, use or copying.  Consistent with FAR 12.211 and 12.212,
Commercial Computer Software, Computer Software Documentation, and
Technical Data for Commercial Items are licensed to the U.S. Government
under vendor's standard commercial license.


/sbin/auto_parms: DHCP access is disabled (see /etc/auto_parms.log)
_______________________________________________________________________________

                       Welcome to HP-UX!

Before using your system, you will need to answer a few questions.

The first question is whether you plan to use this system on a network.

Answer "yes" if you have connected the system to a network and are ready
to link with a network.

Answer "no" if you:

     * Plan to set up this system as a standalone (no networking).

     * Want to use the system now as a standalone and connect to a
       network later.
_______________________________________________________________________________

Are you ready to link this system to a network?

Press [y] for yes or [n] for no, then press [Enter]

2. Complete all the wizard steps

_______________________________________________________________________________

Congratulations!  Your system is now configured for networking, with
system name cloned, and IP address 192.168.2.20!

You may later want to set up (or finish setting up) additional network
parameters for routing (gateways), DNS, and/or NIS.  If so, please run
the following command (you may want to note this for later reference):

     /sbin/set_parms addl_netwrk [Enter]

To fully utilize the capabilities of your system, you may have to
perform some additional system configuration tasks using the HP-UX
"sam" (System Administration Manager) command.  Consult your local
administrator or the "Managing Systems and Workgroups" manual for
more information.

The system will now complete its boot process, and allow you to login
as 'root'.
_______________________________________________________________________________


Press [Enter] to continue...
Press [Enter] to continue...

     HP-UX Start-up in progress
     __________________________

     Configure system crash dumps ................................ OK
     Start Integrity VM Guest Tools .............................. OK
     Removing old vxvm files ..................................... OK
     Mount file systems .......................................... OK
     Setting hostname ............................................ OK
     Start containment subsystem configuration ................... OK
     Set privilege group ......................................... N/A
     Display date ................................................ N/A
     Save system crash dump if needed ............................ N/A
     Start evp ................................................... OK
     Enable auxiliary swap space ................................. OK
     Start syncer daemon ......................................... OK
     Initializing livedump ....................................... N/A
     Start Utmp Daemon : manages User Accounting Database ........ OK
     Starting DevFS .............................................. N/A
     Configure Loopback interfaces (lo0) ......................... OK
     Starting Event Management (EVM) (phase 1) ................... OK
     Start Essential Services monitoring daemon .................. OK
     Continuing install jobs, configuring filesets ............... OK
     Configuring all unconfigured software filesets .............. OK
     Configuring PFIL ............................................ N/A
     Starting IPFilter ........................................... N/A
     Configuring Install Time Security ........................... N/A
     Recover editor crash files .................................. OK
     Clean UUCP .................................................. OK
     List and/or clear temporary files ........................... OK
     Clean up old log files ...................................... OK
     Start system message logging daemon ......................... OK
     Checking user database ...................................... OK
     Start pty allocator daemon .................................. OK
     Configuring OLA/R interface ................................. N/A
     Start network tracing and logging daemon .................... OK
     Configure HP igelan Gigabit Ethernet interfaces ............. OK
     Configure HP iether 100BT/Gigabit Ethernet interfaces ....... OK
     Configure HP gelan Gigabit Ethernet interfaces .............. OK
     Configure HP igssn Gigabit Ethernet interfaces .............. OK
     Configure INTEL 100BASE-T interfaces ........................ N/A
     Configure HP 100BASE-T interfaces ........................... N/A
     Configure HP AUTO-PORT AGGREGATION interfaces ............... OK
     Configure VLAN interfaces ................................... OK
     Configure LAN interfaces .................................... OK
     Configure LAN interfaces for IPv6 ........................... OK
     Starting Event Management (EVM) (phase 2) ................... OK
     Configure Auto-Port Aggregation(LAN Monitor) interfaces ..... N/A
     Starting DHCPv6 Server daemon ............................... N/A
     Configuring DHCPv6 Interfaces ............................... OK
     Start name server daemon .................................... N/A
     Starting HP-UX Secure Shell ................................. OK
     Start NFS core subsystem .................................... OK
     Start NFS IPv6 subsystem .................................... OK
     Start NIS server subsystem .................................. OK
     Start ldap client daemon .................................... N/A
     Start NIS/LDAP server subsystem ............................. N/A
     Start NIS client subsystem .................................. OK
     Start lock manager subsystem ................................ OK
     Start NFS client subsystem .................................. OK
     Start AUTOFS subsystem ...................................... OK
     Finish containment subsystem configuration .................. OK
     Start multicast routing daemon .............................. N/A
     Start Internet services daemon .............................. OK
     Start dynamic routing daemon ................................ N/A
     Start ramd routing daemon ................................... N/A
     Start router discover protocol daemon ....................... N/A
     Configuring PPP Interface ................................... OK
     Configuring PPPoE ........................................... N/A
     Start RARP protocol daemon .................................. N/A
     Start remote system status daemon ........................... N/A
     Configuring HPVM Host AVIO Storage Software ................. N/A
     Start IPv6 router advertisement daemon ...................... N/A
     Starting sendmail [Done] Starting sm-client [Done] .......... OK
     Starting cfengine's cfservd daemon .......................... N/A
     Starting syslog-ng daemons .................................. N/A
     Starting outbound connection daemons for DDFA software ...... N/A
     Starting sfmdb PostgreSQL daemons ........................... OK
     Start SNMP Master Network Management daemon ................. OK
     Start OSPF MIB Network Management subAgent .................. N/A
     Start SNMP HP-UNIX Network Management subAgent .............. OK
     Start SNMP IPv6 Network Management subAgent ................. OK
     Start SNMP MIB-2 Network Management subAgent ................ OK
     Start Native Adapter Agent .................................. N/A
     Start SNMP Trap Dest Network Management subAgent ............ OK
     Start HA cluster SNMP subagent .............................. OK
     Start DCE daemons ........................................... N/A
     Start RPC daemon if needed .................................. OK
     Start CIM cimserver subsystem ............................... OK
     Initialize Instant Capacity ................................. N/A
     Starting X Font Server at TCP port 7000 ..................... N/A
     Start vt daemon ............................................. N/A
     Start time synchronization .................................. N/A
     Start accounting ............................................ N/A
     Install/Load XF86 DLKM Helper Modules ....................... N/A
     Starting the password/group assist subsystem ................ OK
     Start print spooler ......................................... N/A
     Start clock daemon .......................................... OK
     Check Security Bulletin Compliance .......................... N/A
     Start diagnostic subsystem .................................. OK
     Start environment monitoring daemon ......................... OK
     Start auditing subsystem .................................... N/A
     Start USB hub daemon ........................................ OK
     SAM System administration configuration ..................... OK
     PA performance software is being started. ................... OK
     Configure PRM -or- Configure and Enable PRM ................. N/A
     Initialize Software Distributor agent daemon ................ OK
     Starting the System Management HomePage server .............. OK
     Starting the gWLM Agent ..................................... N/A
     Starting CIFS Client ........................................ N/A
     Configure HP RAID SA interfaces ............................. N/A
     Creating any missing lvm configuration backups .............. OK
     Starting Event Monitoring Service ........................... OK
     Start EMS SNMP subagent ..................................... OK
     Start interrupt balance daemon .............................. N/A
     Configuring Ultra320 SCSI Mass Storage interfaces ........... OK
     Starting the Winbind Daemon ................................. N/A
     Configuring HP SerialSCSI SASD Mass Storage interfaces ...... OK
     Reconfiguring setboot event subscription .................... OK
     Configuring HPVM AVIO Mass Storage interfaces ............... OK
     Configuring HP Fibre Channel FCD Mass Storage interfaces .... OK
     Start NFS server subsystem .................................. OK
     Start Highly Available cluster .............................. N/A
     Starting HP-UX Apache-based Web Server ...................... N/A
     Starting HP-UX Tomcat-based Servlet Engine .................. N/A
     Starting HP-UX Webmin-based Admin ........................... N/A
     Starting the HPUX Webproxy subsystem ........................ N/A
     Starting HP-UX XML Web Server Tools ......................... OK
     Start kwdbd ................................................. N/A
     Validating HP Virtual Machine Configuration ................. OK
     Starting OVTrcSrv ........................................... OK
     Starting the amgrd subsystem ................................ N/A
     Starting PRNGD (Pseudo Random Number Generator Daemon) ...... N/A
     Starting Control Daemon ..................................... N/A

The system is ready.

GenericSysName [HP Release B.11.31] (see /etc/issue)
Console Login: root
Password:
Last successful login:       Sat Dec  6 10:51:11 CST 2008 ::ffff:192.168.2.102
Please wait...checking for disk quotas
(c)Copyright 1983-2006 Hewlett-Packard Development Company, L.P.
(c)Copyright 1979, 1980, 1983, 1985-1993 The Regents of the Univ. of California
(c)Copyright 1980, 1984, 1986 Novell, Inc.
(c)Copyright 1986-2000 Sun Microsystems, Inc.
(c)Copyright 1985, 1986, 1988 Massachusetts Institute of Technology
(c)Copyright 1989-1993  The Open Software Foundation, Inc.
(c)Copyright 1990 Motorola, Inc.
(c)Copyright 1990, 1991, 1992 Cornell University
(c)Copyright 1989-1991 The University of Maryland
(c)Copyright 1988 Carnegie Mellon University
(c)Copyright 1991-2006 Mentat Inc.
(c)Copyright 1996 Morning Star Technologies, Inc.
(c)Copyright 1996 Progressive Systems, Inc.

Confidential computer software. Valid license from HP required for
possession, use or copying.  Consistent with FAR 12.211 and 12.212,
Commercial Computer Software, Computer Software Documentation, and
Technical Data for Commercial Items are licensed to the U.S. Government
under vendor's standard commercial license.

You have mail.

Value of TERM has been set to "vt100".
WARNING:  YOU ARE SUPERUSER !!

# uname -a
HP-UX cloned B.11.31 U ia64 1976752102 unlimited-user license
# ioscan -fnkC disk
Class     I  H/W Path     Driver S/W State   H/W Type     Description
=====================================================================
disk      2  0/0/2/0.0.0  sdisk   CLAIMED     DEVICE       HP      Virtual Disk
                         /dev/dsk/c1t0d0     /dev/rdsk/c1t0d0
                         /dev/dsk/c1t0d0s1   /dev/rdsk/c1t0d0s1
                         /dev/dsk/c1t0d0s2   /dev/rdsk/c1t0d0s2
                         /dev/dsk/c1t0d0s3   /dev/rdsk/c1t0d0s3
# ioscan -NfnkC disk
Class     I  H/W Path  Driver S/W State   H/W Type     Description
===================================================================
disk      3  64000/0xfa00/0x4  esdisk   CLAIMED     DEVICE       HP      Virtual Disk
                      /dev/disk/disk3      /dev/rdisk/disk3
                      /dev/disk/disk3_p1   /dev/rdisk/disk3_p1
                      /dev/disk/disk3_p2   /dev/rdisk/disk3_p2
                      /dev/disk/disk3_p3   /dev/rdisk/disk3_p3

Status of the cloned HPVM guest

# hpvmstatus
[Virtual Machines]
Virtual Machine Name VM #  OS Type State     #VCPUs #Devs #Nets Memory  Runsysid
==================== ===== ======= ========= ====== ===== ===== ======= ========
cloud                    1 HPUX    Off            1     1     1    4 GB        0
tifa                     2 HPUX    Off            1     1     1    2 GB        0
zack                     6 LINUX   Off            1     2     1    1 GB        0
cloned                   7 HPUX    On (OS)        1     1     1    4 GB        0

Reference

Authors

Editor