[libvirt] [RFC] Power Hypervisor Libvirt support
Eduardo Otubo
otubo at linux.vnet.ibm.com
Thu Apr 23 21:44:13 UTC 2009
Hello again,
I very am glad with all the feedback I got. The following attachtment is
the result of the work using all the suggestions the list made. I also
have a few comments over this new RFC. Here is a little Changelog:
* Now the URI is recognized as phyp://user@hmc/managed_system. To use
path component of the uri struct, I had to implement a little function
to strip out the first slash of the string, giving me only 'path',
instead of '/path'.
* I implemented the option --with-libssh and --with-phyp right according
to what Daniel Berrange suggested.
* Now all the variable-size string buffers are manipulated with the
internal API virBuffer* to make it safer.
|
+- This made me think and change the __inner_exec_command function. Now
it returns char * with all the textual return, and I am passing int * as
reference to get the exit status - all the information I need about the
remote executed command.
|
+- And this also made me write a little auxiliar function to strip out
the '\n' from the textual return.
Known and unsolved issues:
* Authentication - need to improve the authenticantion as Daniel
Berrange said. Still in progress.
* Error codes.
* Logging and debugging messages.
Any comments are welcome,
[]'s
Em Sex, 2009-03-20 às 13:58 -0300, Eduardo Otubo escreveu:
> Hello all,
>
> I've been working on a libvirt extension to manage IBM's Power VMs
> (LPARs). The Power systems are managed through management console
> referred to as the HMC or using a management partition (IVM). Both HMC
> and IVM runs an SSH, then you can reach it via command line, and an HTTP
> server, then you can reach it via web browser.
>
> The protocol between the console and the partition (LPAR) is not
> disclosed, therefore I propose the driver to execute commands remoetly
> over an SSH connection to the consoles to manage IBM LPARs.
>
> The patch attached is the first scratch of the driver that will interact
> with HMC over a SSH connection. The URI model that is
> used in virsh command line is:
>
> virsh --conect phyp://$user@$server
>
> Some known issues are:
> * Next step is to make the URI like this: phyp://$user@
> $HMC/@managed_system. Almost finished. What it takes now is
> $server = $HMC = $managed_system.
> * Next features in my TODO list are "resume", "stop" and "reboot" the
> LPAR.
>
> Any comments are welcome.
>
> Thanks,
>
>
> --
> Libvir-list mailing list
> Libvir-list at redhat.com
> https://www.redhat.com/mailman/listinfo/libvir-list
--
Eduardo Otubo
Software Engineer
Linux Technology Center
IBM Systems & Technology Group
Mobile: +55 19 8135 0885
otubo at linux.vnet.ibm.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libvirt_phyp.patch
Type: text/x-patch
Size: 23440 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20090423/08190c62/attachment-0001.bin>
More information about the libvir-list
mailing list