<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    于 2011年07月15日 00:25, Eric Blake 写道:
    <blockquote cite="mid:4E1F1887.20104@redhat.com" type="cite">
      <pre wrap="">On 07/13/2011 09:56 PM, Osier Yang wrote:
</pre>
      <blockquote type="cite">
        <blockquote type="cite">
          <blockquote type="cite">
            <pre wrap="">-=item B<undefine>  I<domain-id>
+=item B<undefine>  I<domain-id>  optional I<--undefine-managed-state>

  Undefine the configuration for an inactive domain. Since it's not
running
  the domain name or UUID must be used as the I<domain-id>.
</pre>
          </blockquote>
          <pre wrap="">Oh, this is different than libvirt.c, which claimed you can run
'undefine' on a running persistent domain.  Which is it?  Can undefine
make a running domain transient, or must it be on an inactive domain?
</pre>
        </blockquote>
        <pre wrap="">
No, document in libvirt.c is not correct, undefining on a running domain
will be refused.
</pre>
      </blockquote>
      <pre wrap="">
I argue that we found a bug in the qemu driver then.

Right now, you can use 'virDomainDefineXML' to convert a transient guest
into a persistent one, but there is no counterpart operation to convert
a persistent guest back into a transient one.

That is, I think the libvirt.c docs are right in implying that you can
'undefine' a running domain, and that the qemu driver needs to be fixed
to allow this use case.

</pre>
    </blockquote>
    <br>
    It looks  to me all of the dirvers which supports domain undefine
    don't allow to<br>
    undefine a running domain, except xend, ESX, and xenapi, which leave
    the<br>
    determination to the underlying hypervisor.<br>
    <br>
    <blockquote cite="mid:4E1F1887.20104@redhat.com" type="cite">
      <pre wrap="">Either Dan, do you want to weigh in on this API question?

</pre>
    </blockquote>
    <blockquote cite="mid:4E1F1887.20104@redhat.com" type="cite">
      <pre wrap=""></pre>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
--
libvir-list mailing list
<a class="moz-txt-link-abbreviated" href="mailto:libvir-list@redhat.com">libvir-list@redhat.com</a>
<a class="moz-txt-link-freetext" href="https://www.redhat.com/mailman/listinfo/libvir-list">https://www.redhat.com/mailman/listinfo/libvir-list</a></pre>
    </blockquote>
    <br>
  </body>
</html>