Re: [libvirt] esx driver: XML format for guest OS type/variant

2011-01-13 Thread Matthias Bolte
2011/1/13 Richard W.M. Jones rjo...@redhat.com: On Wed, Jan 12, 2011 at 03:51:04PM -0700, Eric Blake wrote: [adding Richard Jones, as he is more familiar with OS inspection] On 01/12/2011 03:29 PM, Matthias Bolte wrote: One thing I wonder about is, where to get the list of possible values

Re: [libvirt] esx driver: XML format for guest OS type/variant

2011-01-13 Thread Richard W.M. Jones
On Thu, Jan 13, 2011 at 09:50:52AM +0100, Matthias Bolte wrote: Actually, for the ESX/VMware and VirtualBox driver I don't really care about detailed OS inspection, I think. The initial point was that some hypervisors allow to specify OS type and distro in order to enable OS dependent stuff

Re: [libvirt] esx driver: XML format for guest OS type/variant

2011-01-13 Thread Daniel P. Berrange
On Wed, Jan 12, 2011 at 03:16:00PM -0700, Eric Blake wrote: On 01/10/2011 06:53 PM, Jake Xu wrote: Hi, I am trying to create a VM using the Python bindings of Libvirt. I can successfully create VM from a XML template, but I can't find any way to define the guest OS type/variant like

Re: [libvirt] esx driver: XML format for guest OS type/variant

2011-01-13 Thread Daniel P. Berrange
On Wed, Jan 12, 2011 at 11:20:42PM +0100, Matthias Bolte wrote: 2011/1/11 Jake Xu j...@demonwaremail.net: Hi, I am trying to create a VM using the Python bindings of Libvirt. I can successfully create VM from a XML template, but I can't find any way to define the guest OS type/variant

Re: [libvirt] esx driver: XML format for guest OS type/variant

2011-01-13 Thread Richard W.M. Jones
On Thu, Jan 13, 2011 at 12:47:34PM +0100, Matthias Bolte wrote: 2011/1/13 Richard W.M. Jones rjo...@redhat.com: It's probably impossible from the ESX driver itself, but you could run virt-inspector on the domain and translate the result into a suitable guestOS string.  virt-inspector

Re: [libvirt] esx driver: XML format for guest OS type/variant

2011-01-13 Thread Matthias Bolte
2011/1/13 Daniel P. Berrange berra...@redhat.com: On Wed, Jan 12, 2011 at 03:16:00PM -0700, Eric Blake wrote: On 01/10/2011 06:53 PM, Jake Xu wrote: Hi, I am trying to create a VM using the Python bindings of Libvirt. I can successfully create VM from a XML template, but I can't find any

Re: [libvirt] esx driver: XML format for guest OS type/variant

2011-01-13 Thread Matthias Bolte
2011/1/13 Richard W.M. Jones rjo...@redhat.com: On Thu, Jan 13, 2011 at 09:50:52AM +0100, Matthias Bolte wrote: Actually, for the ESX/VMware and VirtualBox driver I don't really care about detailed OS inspection, I think. The initial point was that some hypervisors allow to specify OS type and

Re: [libvirt] esx driver: XML format for guest OS type/variant

2011-01-13 Thread Daniel P. Berrange
On Thu, Jan 13, 2011 at 01:06:00PM +0100, Matthias Bolte wrote: 2011/1/13 Daniel P. Berrange berra...@redhat.com: On Wed, Jan 12, 2011 at 03:16:00PM -0700, Eric Blake wrote: On 01/10/2011 06:53 PM, Jake Xu wrote: Hi, I am trying to create a VM using the Python bindings of Libvirt. I

Re: [libvirt] esx driver: XML format for guest OS type/variant

2011-01-13 Thread Daniel P. Berrange
On Thu, Jan 13, 2011 at 11:54:11AM +, Richard W.M. Jones wrote: On Thu, Jan 13, 2011 at 12:47:34PM +0100, Matthias Bolte wrote: 2011/1/13 Richard W.M. Jones rjo...@redhat.com: It's probably impossible from the ESX driver itself, but you could run virt-inspector on the domain and

Re: [libvirt] esx driver: XML format for guest OS type/variant

2011-01-13 Thread Richard W.M. Jones
On Thu, Jan 13, 2011 at 12:45:30PM +, Daniel P. Berrange wrote: On Thu, Jan 13, 2011 at 11:54:11AM +, Richard W.M. Jones wrote: On Thu, Jan 13, 2011 at 12:47:34PM +0100, Matthias Bolte wrote: 2011/1/13 Richard W.M. Jones rjo...@redhat.com: It's probably impossible from the ESX

Re: [libvirt] esx driver: XML format for guest OS type/variant

2011-01-13 Thread Daniel P. Berrange
On Thu, Jan 13, 2011 at 12:45:30PM +, Daniel P. Berrange wrote: On Thu, Jan 13, 2011 at 11:54:11AM +, Richard W.M. Jones wrote: On Thu, Jan 13, 2011 at 12:47:34PM +0100, Matthias Bolte wrote: 2011/1/13 Richard W.M. Jones rjo...@redhat.com: It's probably impossible from the ESX

Re: [libvirt] esx driver: XML format for guest OS type/variant

2011-01-13 Thread Matthias Bolte
2011/1/13 Daniel P. Berrange berra...@redhat.com: On Thu, Jan 13, 2011 at 01:06:00PM +0100, Matthias Bolte wrote: 2011/1/13 Daniel P. Berrange berra...@redhat.com: On Wed, Jan 12, 2011 at 03:16:00PM -0700, Eric Blake wrote: On 01/10/2011 06:53 PM, Jake Xu wrote: Hi, I am trying to

Re: [libvirt] esx driver: XML format for guest OS type/variant

2011-01-13 Thread Richard W.M. Jones
On Thu, Jan 13, 2011 at 12:55:27PM +, Daniel P. Berrange wrote: the list of all possible devices supported by the OS can be automaticlaly extracted by virt-inspector (for Linux by calling modinfo on every kernel module scraping the PCI alises), Intelligent use of modinfo is an RFE for

Re: [libvirt] esx driver: XML format for guest OS type/variant

2011-01-13 Thread Jake Xu
Agreed. Sounds very good, even though it might take sometime to be accomplished. I will hack the vmx configuration file for now and wait for the updates. Thanks everyone for making such useful libraries/tools. On Thu, Jan 13, 2011 at 5:07 AM, Richard W.M. Jones rjo...@redhat.comwrote: On Thu,

Re: [libvirt] esx driver: XML format for guest OS type/variant

2011-01-12 Thread Justin Clift
On 11/01/2011, at 12:53 PM, Jake Xu wrote: Hi, I am trying to create a VM using the Python bindings of Libvirt. I can successfully create VM from a XML template, but I can't find any way to define the guest OS type/variant like CentOS 5.5 64bit for my VM. The native format converted from

Re: [libvirt] esx driver: XML format for guest OS type/variant

2011-01-12 Thread Eric Blake
On 01/10/2011 06:53 PM, Jake Xu wrote: Hi, I am trying to create a VM using the Python bindings of Libvirt. I can successfully create VM from a XML template, but I can't find any way to define the guest OS type/variant like CentOS 5.5 64bit for my VM. The native format converted from XML is

Re: [libvirt] esx driver: XML format for guest OS type/variant

2011-01-12 Thread Matthias Bolte
2011/1/11 Jake Xu j...@demonwaremail.net: Hi, I am trying to create a VM using the Python bindings of Libvirt. I can successfully create VM from a XML template, but I can't find any way to define the guest OS type/variant like CentOS 5.5 64bit for my VM. The native format converted from XML

Re: [libvirt] esx driver: XML format for guest OS type/variant

2011-01-12 Thread Matthias Bolte
2011/1/12 Eric Blake ebl...@redhat.com: On 01/10/2011 06:53 PM, Jake Xu wrote: Hi, I am trying to create a VM using the Python bindings of Libvirt. I can successfully create VM from a XML template, but I can't find any way to define the guest OS type/variant like CentOS 5.5 64bit for my VM.

Re: [libvirt] esx driver: XML format for guest OS type/variant

2011-01-12 Thread Eric Blake
[adding Richard Jones, as he is more familiar with OS inspection] On 01/12/2011 03:29 PM, Matthias Bolte wrote: One thing I wonder about is, where to get the list of possible values for the guest OS type and variation from? Do we use what virt-install/virt-manager currently use and map that

Re: [libvirt] esx driver: XML format for guest OS type/variant

2011-01-12 Thread Richard W.M. Jones
On Wed, Jan 12, 2011 at 03:16:00PM -0700, Eric Blake wrote: It may be worth adding an optional XML element that records a string to use for the guestOS argument. In fact, the libguestfs tool suite already has some pretty decent ways to guess the OS of an arbitrary VM guest (even when using

Re: [libvirt] esx driver: XML format for guest OS type/variant

2011-01-12 Thread Jake Xu
Thanks everyone. It's time to go home now. I will finish reading the thread and respond later. Jake On Wed, Jan 12, 2011 at 4:09 PM, Richard W.M. Jones rjo...@redhat.comwrote: On Wed, Jan 12, 2011 at 03:16:00PM -0700, Eric Blake wrote: It may be worth adding an optional XML element that

[libvirt] esx driver: XML format for guest OS type/variant

2011-01-10 Thread Jake Xu
Hi, I am trying to create a VM using the Python bindings of Libvirt. I can successfully create VM from a XML template, but I can't find any way to define the guest OS type/variant like CentOS 5.5 64bit for my VM. The native format converted from XML is always guestOS=other-64 - which doesn't tell