You are here

Part3. Ignite Series: Automated system install using Golden Images and IGNITE-UX(bootsys)

We are going to do and unattended install using the golden image created in the previous post, check out:

http://www.hpuxtips.es/?q=content/part2-ignite-series-creating-golden-im...

With the configuration of the previous post, we are going to use bootsys to install golden image unattended on the client. This way you can launch from the ignite server all the unattended installations you need on different clients, the only thing is that, to use bootsys you need to have the SO installed and the network configured, if you are re-provisioning old systems and reinstalling them this is a great time server.In this post we are just going to install the Golden Image with no pre/post modifications of the server configuration.

Firs we are going to analyse the bootsys options we are using:

bootsys -S -a -f -i 'HP-UX B.11.31 Golden Image DCOE 1003' -l 'Golden image 11.31 DCOE 1009'=true BL870c:19.132.168.75

-S use secure ssh, don't use .rsh
-a Automated install, no user interaction
-f Deletes all previous information from the client
-i 'HP-UX B.11.31 Golden Image DCOE 1003' --> This has to have the same name as we have in the /var/opt/ignite/INDEX file
-l 'Golden image 11.31 DCOE 1009'=true --> This has to have the same names as we have in the sw_sel in /var/opt/ignite/data/HP-UX_B.11.31_DCOE/core_archive_cfg file.
BL870c:19.132.168.75 The clients hostname and IP address

If we use the -S secure option, we need to have a ssh key pair on the ignite server, if not we get and error like this one:
root@fowler:/>bootsys -S -a -f -i 'HP-UX B.11.31 Golden Image DCOE 1003' -l 'Golden image 11.31 DCOE 1009'=true BL870c:19.132.168.75
ERROR: Secure mode was specified, but no RSA or DSA public key files
could be found. You may need to use ssh-keygen(1) to create
a public/private key pair.

Just create the key:

root@fowler:/.ssh> ssh-keygen -t rsa
Generating public/private rsa key pair.
Please be patient.... Key generation may take a few minutes
Enter file in which to save the key (//.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in //.ssh/id_rsa.
Your public key has been saved in //.ssh/id_rsa.pub.
The key fingerprint is:
0b:46:f6:35:1b:17:a4:2d:fc:1a:9e:ef:30:45:84:d5 root@fowler

And launch it again :

root@fowler:/.ssh> bootsys -S -a -f -i 'HP-UX B.11.31 Golden Image DCOE 1003' -l 'Golden image 11.31 DCOE 1009'=true BL870c:19.132.168.75
Starting ssh-agent process.
Agent pid 27382
Identity added: //.ssh/id_rsa (//.ssh/id_rsa)

The target system "gerrard", is not allowing root ssh access by
you (root@fowler). Would you like bootsys to copy your
public key to the root ~/.ssh/authorized_keys file on that system
at this time? ([y]/n) y
The authenticity of host '19.132.168.75 (19.132.168.75)' can't be established.
RSA key fingerprint is f4:51:e5:c6:5e:95:31:e2:90:93:cf:ba:7e:36:dd:47.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '19.132.168.75' (RSA) to the list of known hosts.
Password:
bootsys copied public key //.ssh/id_rsa.pub to client 19.132.168.75
bootsys_prep 100% 30KB 29.7KB/s 00:00
IINSTALL 100% 49MB 9.7MB/s 00:05
B.11.31.gerrard.iux_sig.a27436 100% 60 0.1KB/s 00:00
Primary boot path set to 0/2/1/0.0x5000c500014cbb3d.0x0 (/dev/disk/disk4_p2)
Rebooting gerrard now.
bootsys_prep return code = 0

At this point The client reboots by itself,and directly boots the ignite kernel copied before:

(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 /stand/IINSTALL
Seconds left till autoboot - 7

.................................

* Number of SAS devices swapped to be in physical location order: 2
* Scanning system for IO devices...
* Boot device is: 0/2/1/0.0x5000c500014cbb3d.0x0
NOTE: Default (boot) source does not appear to be a valid (or complete)
install source, switching source to Network

WARNING: The configuration information calls for a non-interactive
installation.

Press within 10 seconds to cancel batch-mode installation:
* Bringing up Network (lan0)
add net default: gateway 19.132.168.1
* Reading configuration information from server...
* NFS mounting clients directory.
* Using client directory: /var/opt/ignite/clients/0x0017A4770000
* Checking configuration for consistency...
WARNING: The disk at: 0/2/1/0:SAS:ENC1:BAY03 (HP_DH072ABAA6) appears to contain
a file system and boot area. Continuing the installation will destroy
any existing data on this disk.
s within 5 seconds to cancel batch-mode installation:
* Continuing despite above warnings.
* Attempting a non-interactive installation.
* Loading configuration utility...
* Beginning installation from source: 19.132.168.63
======= 01/12/12 06:32:02 EST Starting system configuration...
* Configure_Disks: Begin
* Will install B.11.31 onto this system.
* Creating LVM physical volume "/dev/rdisk/disk4_p2"

....................

* Enabling swap areas.
* Backing up LVM configuration for "vg00".
* Processing the archive source (GOLDEN IMAGE 11.31 DCOE).
* Thu Jan 12 06:34:22 EST 2012: Starting archive load of the source
(Golden image 11.31 Release:1009 DCOE).
* Processed 10% of archive
* Processed 20% of archive
* Processed 30% of archive
* Processed 40% of archive
* Processed 50% of archive
* Processed 60% of archive
* Processed 70% of archive
.............

* The currently running configuration has been imported from
'/stand/system'.
* Build_Kernel: Complete
* Boot_From_Client_Disk: Begin
======= 01/12/12 12:48:27 MET Rebooting machine as expected.
NOTE: Rebooting system.
Calling function e000000001d980e0 for Shutdown State 1 type 0x1

sync'ing disks (0 buffers to flush):
0 fcache pages still dirty
0 buffers not flushed
0 buffers still dirty

After 2 reboots the server will ask for the hostname,date,network information,root passwd, before booting completely. Once you fill the info you are ready to go.

Unix Systems: 

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
By submitting this form, you accept the Mollom privacy policy.

Fatal error: Class CToolsCssCache contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (DrupalCacheInterface::__construct) in /homepages/37/d228974590/htdocs/sites/all/modules/ctools/includes/css-cache.inc on line 52