Re: domain XML for tracking libosinfo ID

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Sep 04, 2018 at 03:44:12PM -0400, Cole Robinson wrote:
> Right now in virt-manager we only track a VM's OS name (win10, fedora28,
> etc.) during the VM install phase. This piece of data is important
> post-install though: if the user adds a new disk to the VM later, we want to
> be able to ask libosinfo about what devices the installed OS supports, so we
> can set optimal defaults, like enabling virtio.
> 
> There isn't any standard libvirt XML field to track this kind of info
> though, so apps have to invent their own schema. nova and rhev do it
> indirectly AFAICT. gnome-boxes does it directly with XML like this:
> 
>   <metadata>
>     <boxes:gnome-boxes xmlns:boxes="https://wiki.gnome.org/Apps/Boxes";>
>       <os-id>http://fedoraproject.org/fedora/28</os-id>
>       ....
>     </boxes:gnome-boxes>
>   </metadata>
> 
> I want to add something similar to virt-manager but it seems a shame to
> invent our own private schema for something that most non-trivial virt apps
> will want to know about. I was thinking a schema we could document with
> libosinfo, something like
> 
> <metadata>
>   <libosinfo
> xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0";>
>     <os-id>http://fedoraproject.org/fedora/28</os-id>
>   </libosinfo>
> </metadata>

Yes, I would like to see this standardized under <matadata>.


Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|

_______________________________________________
Libosinfo mailing list
Libosinfo@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libosinfo



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux