
On Wed, Jan 12, 2011 at 11:20:42PM +0100, Matthias Bolte wrote:
2011/1/11 Jake Xu <jake@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 is always guestOS="other-64" - which doesn't tell us much about the guest operating system. I have looked at the C libvirt source code a bit, and it seems like libvirt does not support defining guest os type using XML description yet.
That's correct, currently there is no way to pass guest OS type/variant information to the ESX driver, as the domain XML config doesn't include such information.
IIUC, VMWare doesn't actually want a type/variant split. That split is only something that is used in the UI. The actual VMX file just uses a single short string to identify the OS. Daniel