seveas / python-hpilo

Accessing the HP iLO XML interface from python
https://seveas.github.io/python-hpilo
Other
321 stars 101 forks source link

power reset is not working #171

Open maabik opened 6 years ago

maabik commented 6 years ago

I am trying to build a server from an iso file I construct using python-hpilo 4.1 module. When I try to reset the power in order the server will reboot and boot off the ISO image, but the ilo.reset_server() does not work. No thing appenned. Here is what I do: ilo = hpilo.Ilo('10...* ','hpadmin', '**') ilo.insert_virtual_media('cdrom', 'http:///CentOS-7.3-x86_64.iso') ilo.set_vm_status(device='cdrom', boot_option='boot_once', write_protect=True) ilo.reset_server() Any help is welcome !

seveas commented 6 years ago

That should work. Add ilo.debug=2 before the insert_virtual_media call and all the XML that's being generated and received will be shown on stderr. Paste that in here and let's debug :)