Saturday, November 3, 2012

VIOS Intall Through Command Line

VIOS Installing This is ref doc will give basic idea to install VIOS on VIO Lpar created from HMC Menu. We can Install VIOS three ways .. 1.Install directly from Media (CD/DVD) 2.Install from the HMC Command line (installios) 3.Install from NIM master. Note: To migrate VIOs from v1.x to v2.x we need to use Migration DVD that will be supplied from IBM. 1.Install directly from Media (CD/DVD): To use this procedure , we Need to place VIOS media in system drive and make sure that DVD drive slot is available for VIOS partition. (we need to define SAS non-Raid Adapter as required adapter for VIO Lpar). Activate the partition, when starting the partition, select the checkbox to open a terminal window --> Click Advanced button and replace the default mode with selection of Diagnostic with Default bootlist. This makes us to boot from the DVD device. Note: Once the installation is complete the VIO partition will reboot automatically. ***********************************************************************************************************************xxxxxxx********************************************************************************************************************** 2.Install from the HMC Command line (installios): The below procedure will useful for Installing the VIOS from HMC menu. 1.Place the VIOS DVD media in HMC DVD drive (VIO lapr should be part of that HMC) 2.Run installios as a hscroot with SSH connection. This command will prompt required details to install IOS. hscroot@XXXXXXX:~> installios The following objects of type "managed system" were found. Please select one: 1. AXXXXXA 2. AXXXXXB 3. AXXXXXC 4. AXXXXXD 5. AXXXXXE 6. AXXXXXF 7. AXXXXXG 8. AXXXXXH Enter a number (1-8): 5 The following objects of type "virtual I/O server partition" were found. Please select one: 1. violabdal1a 2. violabdal1b 3. viotesta Enter a number (1-3): 3 The following objects of type "profile" were found. Please select one: 1. Normal Enter a number: 1 Enter the source of the installation images [/dev/cdrom]: Note: We need to configure few parameters a. network (VIOS IP,Subnet mask, gateway) b. Ethernet settings (Speed and Duplex) c. if you’re willing to configure client network. Note: Once the installation is complete the VIO partition will reboot automatically. ****************************************************xxxxxxx************************************************** 3.Install from NIM master: Installing the VIOS from NIM is similar to installing VIOS from the HMC (both mechanism will use network boot method). We have option installios from NIM master as like HMC. Here creating of NIM object s to corresponding resources and client (The VIOS) is done automatically. ***********************************************************************************************************************xxxxxxx********************************************************************************************************************** Configuring VIOS after Installation: 1.After installation login to the VIOS as padmin (not root). This will be prompted to set the password. 2.When we are doing first time installation we Need to accept software maintenance terms. This will provide three options as shown below Accept (a) | decline (d) | View terms (v) ----- > Enter A to accept license. 3.Accept the license agreement by using follow command $ license -accept (If we forgot issue at first time install, The VIOS won't allow next login) 4.To make any configuration changes use cfgassist (we can change time zone, password Set, Security, VIOS TCP/IP settings, Install/update software.Storage,Performance ....) ***********************************************************************************************************************xxxxxxx********************************************************************************************************************** VIOS Command Line interface: VIOS command line interface is restricted Kron shell and some of the basic operations will not be available. 1.Limited Set of commands available. 2.we cannot change directory or set SHELL,ENV or PATH 3.No I/O redirection (>,>>,<,<<) $ pwd /home/padmin $ cd /tmp rksh: cd: restricted $ ioslevel >> /tmp/ioslevel.subha.out rksh: /tmp/ioslevel.subha.out: restricted