Lpar netboot
From Linux on Power wiki
On the HMC lpar_netboot command allows you to collect Mac-Addresses and initiate a network boot without going to SMS or OpenFirmware screens.
Contents |
Get Mac Address
- Lpar-Name -> op720-1-Client3-Debian-3.1
- Profile-Name -> normal
- Machine Name -> op720-1
(if you are not sure about the Machine and LPAR name, runs "lsyscfg -r sys" command to get machine name and "lssyscfg -m MACHINE-NAME -r lpar" to get LPAR and profile names.
- Attention: this command will immediately shutdown your partition !
- Make sure you have closed all vterm connections to the partition
hscroot@hmc-op:~> lpar_netboot -M -n -t ent "op720-1-Client3-Debian-3.1" "normal" "op720-1" # Connecting to op720-1-Client3-Debian-3.1 # Connected # Checking for power off. # Power off complete. # Power on op720-1-Client3-Debian-3.1 to Open Firmware. # Power on complete. # Getting adapter location codes. # Type Location Code MAC Address ent U9124.720.100486A-V5-C2-T1 bad3f0005002
Initiate netboot
Directed bootp request (for bootp server)
-S Serveradress (AIX running bootp): 9.156.175.8 -G Gateway -C Client IP
lpar_netboot -t ent -m bad3f0005002 -s auto -d auto -S 9.156.175.8 -G 9.156.175.1 -C 9.156.175.247 "op720-1-Client3-Debian-3.1" "normal" "op720-1" # Connecting to op720-1-Client3-Debian-3.1 # Connected # Checking for power off. # Power off complete. # Power on op720-1-Client3-Debian-3.1 to Open Firmware. # Power on complete. # Network booting install adapter. # bootp sent over network. # Network boot proceeding, lpar_netboot is exiting. # Finished.
Broadcast bootp request (for DHCP)
If you are installing from DHCP server make a broadcast request:
hscroot@hmc-op:~> lpar_netboot -t ent -m bad3f0005002 -s auto -d auto "op720-1-Client3-Debian-3.1" "normal" "op720-1-SN100486A" # Connecting to op720-1-Client3-Debian-3.1 # Connected # Checking for power off. # Power off the node # Wait for power off. # Power off complete. # Power on op720-1-Client3-Debian-3.1 to Open Firmware. # Power on complete. # Network booting install adapter. # bootp sent over network.
You can see installation starting in vterm, but be patient, do not open vterm session before the lpar_netboot command returns.
mkvterm -m "op720-1-SN100486A" -p op720-1-Client3-Debian-3.1
