Virtual media

The iLO can make an iso file located on another machine available to the server as virtual floppy or cdrom device. This can be used to e.g. install an operating system remotely.

class hpilo.Ilo
get_vm_status(device='CDROM')

Get the status of virtual media devices. Valid devices are FLOPPY and CDROM

>>> ilo.get_vm_status()
{'boot_option': 'NO_BOOT',
 'device': 'CDROM',
 'image_inserted': 'NO',
 'image_url': '',
 'vm_applet': 'DISCONNECTED',
 'write_protect': 'NO'}
set_vf_status(boot_option='boot_once', write_protect=True)

Set the parameters of the RILOE virtual floppy specified virtual media. Valid boot options are boot_once, boot_always, no_boot, connect and disconnect.

set_vm_status(device='cdrom', boot_option='boot_once', write_protect=True)

Set the parameters of the specified virtual media. Valid boot options are boot_once, boot_always, no_boot, connect and disconnect. Valid devices are floppy and cdrom

insert_virtual_media(device, image_url)

Insert a virtual floppy or CDROM. Note that you will also need to use set_vm_status() to connect the media

eject_virtual_floppy()

Eject the virtual floppy

eject_virtual_media(device='cdrom')

Eject the virtual media attached to the specified device