How to boot from RHEL ISO on HP ILO CLI to recover a server ?
Suppose our system is down and is not booting up correctly.
We need to boot it from an ISO image/CD-DVD drive to repair the system back.
Lets have a look at the steps we can perform to boot our system from an ISO to recover the server which is not booting up on HP ILO.
1. Check out the current CD Drive configuration.
</>hpiLO-> show /map1/oemhp_vm1/cddr1 status=0 status_tag=COMMAND COMPLETED Tue Jan 18 12:26:24 2022 /map1/oemhp_vm1/cddr1 Targets Properties oemhp_image=None oemhp_connect=No oemhp_boot=No_Boot oemhp_wp=No vm_applet=No Verbs cd version exit show set
As we can see above currently there is no CD/DVD drive/iso mapped and boot options are also not from CD.
2. Insert the ISO image from our ILO.
</>hpiLO-> vm cdrom insert http://ngelinux001/pub/rhel6.10/rhel6boot.iso status=0 status_tag=COMMAND COMPLETED Wed Jan 19 11:52:30 2022
3. Checkout if ISO drive is mapped now.
</>hpiLO-> show /map1/oemhp_vm1/cddr1 status=0 status_tag=COMMAND COMPLETED Wed Jan 19 11:53:21 2022 /map1/oemhp_vm1/cddr1 Targets Properties oemhp_image=http://ngelinux001/pub/rhel6.10/rhel6boot.iso oemhp_connect=No oemhp_boot=No_Boot oemhp_wp=Yes vm_applet=No Verbs cd version exit show set
4. Connect the CD ROM drive to boot always.
</>hpiLO-> vm cdrom set connect status=0 status_tag=COMMAND COMPLETED Wed Jan 19 11:54:12 2022 </>hpiLO->
5. Check out the changes now.
</>hpiLO-> vm cdrom get info status=0 status_tag=COMMAND COMPLETED Wed Jan 19 11:55:01 2022 Image Connected = Yes Image URL = http://ngelinux001/pub/rhel6.10/rhel6boot.iso VM Applet = No Boot Option = BOOT_ALWAYS Write Protect = Yes </>hpiLO->
6. Reset/Reboot the system from ILO to boot from ISO now.
</>hpiLO-> power reset status=0 status_tag=COMMAND COMPLETED Wed Jan 19 11:55:37 2022 Server resetting .......
7. Take the serial console now to check progress.
</>hpiLO-> VSP Virtual Serial Port Active: COM2 Starting virtual serial port. Press 'ESC (' to return to the CLI Session.