[libvirt] [PATCH] qemudDomainCreate check if domain is already active

Guido Günther agx at sigxcpu.org
Thu Jul 24 04:49:13 UTC 2008


Hi,
currently virsh create foo.xml overwrites running domains. In case of
qemu this leaves detached qemu processes around and the domain creation
fails later on being unable to start other domains afterwards - not
nice.
Attached patch checks if we already have a running domain by that name
and in this case refuses to create a new domain from xml by that name.

Probably this check needs to be pushed further upward since this might
affect other hypervisors too, haven't checked that though.
Cheers,
 -- Guido
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-qemudDomainCreate-check-if-domain-is-already-active.patch
Type: text/x-diff
Size: 1039 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20080724/1815052e/attachment-0001.bin>


More information about the libvir-list mailing list