<div dir="ltr"><div class="gmail_quote">On Tue, Apr 26, 2011 at 2:05 AM, Eric Blake <span dir="ltr"><<a href="mailto:eblake@redhat.com">eblake@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On 04/25/2011 03:54 PM, Emre Erenoglu wrote:<br>
> yes, libvirt 0.8.7 was silently reverting the change I made manually in the<br>
> xml file. Neither virsh edit nor editing the xml and re-defining it worked.<br>
> Once libvirt saw the "spicevmc" there, it just removed it and put "null"<br>
> instead.<br>
<br>
</div>There has been some upstream work to make libvirt do better at detecting<br>
bogus configurations, but I'm not sure off the top of my head if it<br>
includes the instance you tripped over.  So, the question remains<br>
whether we have already fixed the bug in 0.9.0, or whether, if you put<br>
in some other random string in place of "spicevmc", then would libvirt<br>
still silently change that to "null" instead of rejecting the XML.  If<br>
the former, great - we've cleaned it up!  If the latter, then this is a<br>
bug still in libvirt worth fixing.<br>
<font color="#888888"><br></font></blockquote><div><br>I re-installed 0.8.7. It re-wrote the existing virtual machine channel device definition (which used to be "spicevmc" with 0.9.0) back to 'null'.<br>
<br>I tried to edit it by hand, with any string, always reverted to 'null'.<br><br>In libvirt 0.9.0, editing by hand to replace 'null' with 'spicevmc' works. Editing by hand to an arbitrary string, fails with the following error message (when I put 'emre' instead of 'null'):<br>
<br><div style="margin-left: 40px;">error: XML description for unknown type presented to host for character device: emre is not well formed or invalid<br></div><br>So looks like it's fixed in 0.9.0 but I let you conclude the 0.8.7 behaviour.<br>
<br></div></div>-- <br>Emre<br>
</div>