HP Insight Control server provisioning Capturing and Installing Linux System Images

4
Mount Server Image Script
Create a new script that creates a target directory (/mnt/target) and then mounts the target server’s image to
/mnt/target. The example script below uses a standard RH6.3 installation with only two mount points. If the server’s
/etc/fstab indicates more than just /boot and /root as mount points, then the script will need to be modified to reflect
the mount points of the image to be captured.
IMPORTANT: Do not mount a swap partition. Reviewing the target servers /etc/fstab file will provide information on
what partitions are swap.
To create a new script to mount the server image:
1. On the IC server provisioning appliance, create a new script of Unix type and name it for the appropriate
function.
2. Create the script content, or copy and paste the script content from an external application. For example for a
standard Red Hat 6.3 installation, the script would contain:
#!/bin/sh
mkdir -p /mnt/target
mount /dev/mapper/VolGroup-lv_root /mnt/target
#mkdir p /mnt/target/home
#mount /dev/mapper/VolGroup-lv_home /mnt/target/home
mkdir p /mnt/target/boot
mount /dev/sda1 /mnt/target/boot
3. Click OK to save the script.
Capture Server Image Script
Create a new script that captures the target server’s image and transfers it to a location on the Media Server.
To create a new script to mount the server image:
1. On the IC server provisioning appliance, create a new script of Unix type and name it for the appropriate
function.
2. Create the script content or copy and paste the script content from an external application. For example, the
script would contain:
#!/bin/sh
cd /mnt/target
tar jcf /mnt/images/$1.tar.bz2 .
exit $?
where the image name will be passed in as a parameter to the script step and the Media Server is mounted on
/mnt/images.
3. Click OK to save the script.
Create the Capture Red Hat Linux Image OS Build Plan
Once the scripts from the Mount Server Image Script and Capture Server Image Script sections have been created, the
Linux capture OSBP can be created.
To create a Capture Linux System Image OSBP:
1. Make a copy of the ProLiant HW - Boot Linux Service OS OSBP by selecting Actions and Save As from the OS
Build Plan view.
2. Edit the new OS Build Plan with the following:
a. Keep the first step, Check iLO Service.
b. Modify the Boot step to ensure that the PXE LinuxPE service OS is booted by adding --method
network parameter to the Parameters field. It is possible to use the Intelligent Provisioning