Library for spvm and pvm_hmc backend to boot and install SLES
get_into_net_boot();
Get into SMS menu for booting from net.
reset_lpar_netboot();
Reset LPAR manually and attempt a second network boot when the first boot attempt failed in cases when the LPAR was reconfigured during the boot process or when it fails to load the linux kernel or initrd.
enter_netboot_parameters();
Type kernel and ramdisk parameters in grub command line.
prepare_pvm_installation();
Handle the boot and installation preparation process of PVM LPARs after the hypervisor specific actions to power them on is done
boot_pvm();
Decide whether job is booting a pvm_hmc backend system or a spvm via Novalink one and call the appropriate booting function.
check_lpar_is_down($hmc_machine_name, $lpar_id);
Check if an LPAR identified by $lpar_id
in the Power machine $hmc_machine_name
is down, by querying with the lssyscfg
command. Command will check 24 times in a loop while waiting 5 seconds between each run, and exit as soon as the LPAR is down. Check is performed by a needle match looking for the LPAR IS DOWN text which is printed by the check script on success.
boot_hmc_pvm();
Boot a system connected via the hmc_pvm backend. This function will connect to the HMC command line, issue the commands necessary to start a given LPAR (from the setting LPAR_ID), by first making sure the LPAR is down, before booting it into the System Management Services menu, and then opening a virtual terminal to the LPAR console to navigate the SMS to either boot the LPAR from network (for installations) or from the local disk.
boot_spvm();
Boot from spvm backend via novalink and switch to installation console (ssh or vnc).