Thanks! I get it!<div><br></div><div>Thanks again for your help!<br><br><div class="gmail_quote">2012/3/8 Eric Blake <span dir="ltr"><<a href="mailto:eblake@redhat.com">eblake@redhat.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 03/08/2012 02:04 AM, Osier Yang wrote:<br>
> On 03/08/2012 11:47 AM, suyi wang wrote:<br>
>><br>
>> Hi all:<br>
>>        My OS is now Fedora16 , and the spice server is installed on it<br>
>> by rpms. Then I run 'qemu-kvm -hda /root/vaddsoft.img -m 512 -vga qxl<br>
>> -spice port=5930,disable-ticketing' , I want to find out where is the<br>
>> libvirt.xml for the command .  Well , I mean that the libvirt.xml is<br>
>> genrated automatically,  not by myself manually.<br>
>>       Wish your help! Thanks a lot!<br>
><br>
> If you start a guest with qemu command line directly, there<br>
> is no libvirt XML for it, libvirt doesn't try to manage<br>
> guest which is not created through libvirt API.<br>
<br>
</div>However, you  _can_ teach libvirt about certain guests started directly<br>
by qemu; the 'virsh qemu-attach' command can attach to guests that were<br>
properly started with a socket monitor.<br>
<div class="im"><br>
><br>
> For a guest created through libvirt, and it's persistent,<br>
> the persistent XML is stored in /etc/libvirt/qemu/, and<br>
> the running state XML is in /var/run/libvirt/qemu/, and<br>
<br>
</div>Note that these files are to be treated as read-only.  If you want to<br>
modify the guest, you must not edit these files, but instead should use<br>
commands like 'virsh edit' for the persistent definition, and hotplug<br>
actions like 'virsh add-device' for the live definition.<br>
<div class="HOEnZb"><div class="h5"><br>
> you would see the generated qemu command line by libvirt<br>
> either by<br>
><br>
> # ps -ef | grep qemu<br>
><br>
> # cat /var/log/libvirt/qemu/$guest.log<br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
Eric Blake   <a href="mailto:eblake@redhat.com">eblake@redhat.com</a>    +1-919-301-3266<br>
Libvirt virtualization library <a href="http://libvirt.org" target="_blank">http://libvirt.org</a><br>
<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>Yours.<br>suyi<br><br>
</div>