On 22/02/2011, at 8:21 PM, Daniel P. Berrange wrote: On Tue, Feb 22, 2011 at 12:12:03PM +0800, Lyre wrote: <snip> >> I'm really amazed, the behavior of "defined" in libvirt development guide >> seems to be equivalent to "inactive". > > There are two types of guest > > - Persistent: This has a config file on disk. It will appear > either in the ListDefinedDomains or ListDomains, depending > on whether it is currently running > - Transient: This has *no* config on disk. It will only appear > in ListDomains and will disappear completely when it is > shutdown. > > Every inactive domain is thus a persistent domain. A running domain can > be either transient or persistent. There is a virDomainIsPersistent() > API to distinguish them. This *might* be useful further reading info: http://wiki.libvirt.org/page/VM_lifecycle#Transient_guest_domains_vs_Persistent_guest_domains -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list