[libvirt] some unsorted questions

Daniel P. Berrange berrange at redhat.com
Thu Jul 17 08:24:36 UTC 2008


On Thu, Jul 17, 2008 at 01:29:45AM +0200, Stefan de Konink wrote:
> Secondly; I am a bit distracted by the domids concept. These ids are not 
> available before a domain is launched. I think it would be interesting 
> to allow signed values. In this way the 'defined' not active domains 
> would get a negative value and a running domain a positive value. (Dom0 
> gets 0)  This would have far less implications than using an uuid 
> through the codebase consistently (not speaking the about the extra 
> overhead).

There are 3 identifiers for domains 

 - ID   - unique amongst all running domains on a hypervisor
 - Name - unique amongst all domains on a hypervisor
 - UUID - unique amongst all domains in a datacenter 

So if you want to track inactive domains, you have a choice of name or
UUID. The recommendation is always that applications use UUID to track
domains internally. Name should mostly be used when interacting with a
user, not for internal application tracking.

Daniel
-- 
|: Red Hat, Engineering, London   -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org  -o-  http://virt-manager.org  -o-  http://ovirt.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-  F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|




More information about the libvir-list mailing list