Under Construction

vios installios

Verfügbar: ab 1.9.2

Mit Hilfe des Kommandos „vios installios“ kann ein Virtual-I/O-Server über eine HMC installiert werden:

 vios [-h <hmc>] [-m <ms>] [-p <profile>] installios [-C] [-N] [-v] <vios> [<ip> [<netmask> [<gateway> [<path>]]]] <attribute> ...
-C : cache label name and installation image for later use
-N : do not configure the network on the client after installation

Die Installation verläuft nicht interaktiv! Daher müssen alle notwendigen Informationen für die Installation auf der Kommandozeile in Form von Attributen angegeben werden.

Es müssen mindestens die folgenden Informationen angegeben werden:

    • IP-Adresse für den Virtual-I/O-Server
    • zu verwendende Netzmaske
    • Default Gateway
    • Installations Source

Diese Informationen können direkt als Kommandozeilen-Argumente in der oben genannten Reihenfolge angegeben werden, oder alternativ in Form von Attributen. Unterstützt werden die folgenden Attribute:

addr              - the IP address or hostname of the VIOS
netmask - the netmask of the VIOS (required)
gateway - the default gateway for the VIOS (required)
path - the path to an installation image (required)
bosisnt_pvid - the PVID of the LUN to use for installation
interface - the interface to use on the HMC for the installation
mac_addr - the MAC address of the VIOS interface
nfs_options - the mount option to use for NFS (e.g. vers=4)
dest_dir - directory where to copy the source, default is /extra filesystem
label - label name to use instead of 'default1'
language - language the license agreement will be displayed
speed - the speed wo configure the client's network interface
10, 100 (default), 1000, auto
duplex - the duplex setting to configure the client network interface
half, full (default), auto
vlan_tag - the VLAN tag id to use for the client network interface
vlan_priority - the VLAN tag priority to use
bootp_retry_count - maximum number of BOOTP retries (0-9)
tftp_retry_count - maximum number of TFTP retries (0-9)

Die folgenden Aufrufe sind äquivalent:

$ vios installios vio1 10.255.255.59 255.255.255.0 10.255.255.1 VIOS_4.1.0.0
$ vios installios vio1 10.255.255.59 255.255.255.0 10.255.255.1 path=VIOS_4.1.0.0
$ vios installios vio1 10.255.255.59 255.255.255.0 gateway=10.255.255.1 path=VIOS_4.1.0.0
$ vios installios vio1 10.255.255.59 netmask=255.255.255.0 gateway=10.255.255.1 path=VIOS_4.1.0.0
$ vios installios vio1 addr=10.255.255.59 netmask=255.255.255.0 gateway=10.255.255.1 path=VIOS_4.1.0.0

Als Installations Quelle kann entweder ein Installations Image (ISO) oder ein Fullback (NIM Ressource)  angegeben werden.

Welche Installations Images für einen Virtual-I/O-Server verfügbar sind, kann mit „vios lsviosimg“ oder „hmc lsviosimg“ angezeigt werden. Es reicht dann als path lediglich den Namen des Images anzugeben. In Dual-HMC Konfigurationen werden automatisch beide HMC nach dem angegebenen Image durchsucht und die entsprechende HMC ausgewählt.

Welche Backups für einen Virtual-I/O-Server auf den HMCs verfügbar sind, kann mit „vios lsviosbk“ oder „hmc lsviosbk“ ermittelt werden. Auch hier reicht die Angabe des Namens.

Es kann aber auch ein absoluter Pfad für ein zu verwendendes Image oder Backup angegeben werden. Ist ein Backup auf einem NFS-Server verfügbar, kann als Pfad auch server:/absolute/path angegeben werden. Der angegebene Share muss für die HMC zugreifbar sind!

Nachfolgend einige Beispiele für einen Virtual-I/O-Server mit Namen „vio1“, mit IP-Adresse 10.255.255.59, Netzmaske 255.255.255.0 und Gateway 10.255.255.57.

Beispiel 1: Der Virtual-I/O-Server soll mit dem Installations Image VIOS_4.1.0.0 installiert werden. Das Image ist schon auf einer der HMCs verfügbar:

$ vios installios vio1 10.255.255.59 255.255.255.0 10.255.255.57 VIOS_4.1.0.0
Logging session output to /tmp/installios.415053.log.

Retrieving information for available network adapters
This will take several minutes...

Beispiel 2: Das Fullback nim_resources.tar des Virtual-I/O-Servers vio1 soll auf diesem installiert werden (Restore). Das Fullback ist auf einer der HMCs abgespeichert:

$ vios installios vio1 10.255.255.59 255.255.255.0 10.255.255.57 nim_resources.tar
Logging session output to /tmp/installios.418403.log.

Retrieving information for available network adapters
This will take several minutes...

Beispiel 3: Das auf dem NFS-Server aixnim (10.255.255.57) im Verzeichnis /export/vios/vio1 hinterlegte Fullback nim_resources.tar soll auf dem Virtual-I/O-Server vio1 installiert werden. Das Verzeichnis /export/vios/vios1 ist für die HMC(s) exportiert:

$ vios installios vio1 10.255.255.59 255.255.255.0 10.255.255.57 10.255.255.57:/export/test/nim_resources.tar
Logging session output to /tmp/installios.421750.log.

Retrieving information for available network adapters
This will take several minutes...