<html><head></head><body><div class="gmail_quote">On 19. Juni 2014 14:38:06 MESZ, Laine Stump <laine@laine.org> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">On 06/19/2014 02:47 PM, Thomas Stein wrote:<br /><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;"> Hello.<br /><br /> I have a strange error with one of my VMs. If i use dumpxml to save a VM <br /> description the source part of the network part is missing. This prevents <br /> redifining the machine from the dumped xml file:<br /><br /> This is how it looks before dumpxml:<br /><br />     <interface type='bridge'><br />       <mac address='52:54:00:34:a1:56'/><br />       <source bridge='br406'/><br />       <model type='virtio'/><br />       <address type='pci' domain='0x0000' bus='0x00' slot='0x03' <br /> function='0x0'/><br />     </interface><br /><br /><br /> And afterwards:<br /><br />     <interface type='bridge'><br />       <mac address='52:54:00:34:a1:56'/><br />       <target dev='vnet6'/><br />       <model
type='virtio'/><br />       <alias name='net0'/><br />       <address type='pci' domain='0x0000' bus='0x00' slot='0x03' <br /> function='0x0'/><br />     </interface><br /><br /> Someone has an idea whats causing this? Is there a special option maybe?</blockquote><br /><br />1) what is the libvirt version?<br /><br />2) are you using "virsh dumpxml --inactive"?<br /><br />The source should anyway be there when you do virsh dumpxml with or<br />without --inactive, but the proper way to get the config of a domain<br />that can be fed back into the domain is by using --inactive (otherwise<br />you get the current status of the interface, which may have some<br />differences).<br /><br />(I'm interested to learn the libvirt version because when I look at the<br />virsh dumpxml of an <interface type='bridge'> on my system running<br />current upstream libvirt, I *do* see the <source> element. Given the<br />version you're running, I can possibly t!
 ake a
look at that vintage of<br />source to see if there was a bug in that version)<br /><br /></pre></blockquote></div><br clear="all"><p dir="ltr">Hi.</p>
<p dir="ltr">Thanks for the response. --inactive solves the problem. Didn't even know this switch exits. I'm using 1.2.5 at the moment.</p>
<p dir="ltr">thanks again<br>
t.</p>
</body></html>