<div dir="ltr"><div dir="ltr" style="font-size:12.8px">Thank you. It looks like after I 'ignore', nothing is persisted in xml for the app. Any idea what is the minimum version of libvirt required for this feature?</div><div><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature">Regards,<br>Harish</div></div>
<br><div class="gmail_quote">On Tue, Nov 8, 2016 at 1:36 PM, Martin Kletzander <span dir="ltr"><<a href="mailto:mkletzan@redhat.com" target="_blank">mkletzan@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="HOEnZb"><div class="h5">On Tue, Nov 08, 2016 at 09:01:34AM +0530, Harish Vishwanath wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
Hello<br>
<br>
Based on the lxc driver documentation, I am trying to create an xml to<br>
share an existing network namespace with another container. I am running<br>
libvirt 1.2.15.<br>
<br>
Here is the xml:<br>
<br>
<domain type='lxc' xmlns:lxc='<a href="http://libvirt.org/schemas/domain/lxc/1.0" rel="noreferrer" target="_blank">http://libvirt.org/<wbr>schemas/domain/lxc/1.0</a>'><br>
<br>
 <name>nt</name><br>
 <uuid>43c00192-e114-4e29-<wbr>8ce7-4b5487f60a75</uuid><br>
 <memory unit='KiB'>65536</memory><br>
 <currentMemory unit='KiB'>65536</currentMemor<wbr>y><br>
 <vcpu placement='static'>1</vcpu><br>
 <cputune><br>
   <shares>2000</shares><br>
 </cputune><br>
 <resource><br>
   <partition>/apphosting.partit<wbr>ion</partition><br>
 </resource><br>
 <os><br>
   <type arch='x86_64'>exe</type><br>
   <init>/sbin/init</init><br>
 </os><br>
 <clock offset='utc'/><br>
 <on_poweroff>destroy</on_powe<wbr>roff><br>
 <on_reboot>restart</on_<wbr>reboot><br>
 <on_crash>destroy</on_crash><br>
 <devices><br>
   <emulator>/usr/lib/libvirt/li<wbr>bvirt_lxc</emulator><br>
   <filesystem type='mount' accessmode='passthrough'><br>
     <source dir='/work/repo-lxc/nt/rootfs_<wbr>mnt'/><br>
     <target dir='/'/><br>
   </filesystem><br>
   <filesystem type='mount' accessmode='squash'><br>
     <driver type='path' wrpolicy='immediate'/><br>
     <source dir='/local/local1/core_dir/nt<wbr>'/><br>
     <target dir='/local/local1/core_dir'/><br>
   </filesystem><br>
<br>
<!--<br>
   <interface type='network'><br>
     <mac address='52:54:dd:6d:44:d2'/><br>
     <source network='dpbr_0'/><br>
     <guest dev='eth0'/><br>
   </interface><br>
--><br>
<br>
   <console type='pty'><br>
     <target type='lxc' port='0'/><br>
   </console><br>
 </devices><br>
<br></div></div>
*  <lxc:namespace>*<br>
*    <lxc:sharenet type='netns' value='node'/>*<br>
*  </lxc:namespace>*<span class=""><br>
</domain><br>
<br>
However, the virsh edit is unable to save this file:<br>
<br>
error: XML document failed to validate against schema: Unable to validate<br>
doc against /usr/share/libvirt/schemas/dom<wbr>ain.rng<br>
Element domain has extra content: namespace<br>
<br>
Failed. Try again? [y,n,i,f,?]:<br>
<br>
</span></blockquote>
<br>
the easiest check in these situations is:<br>
<br>
1) try whether it works when you press 'i':<br>
    a) it doesn't, but you get a better error message<br>
    b) it does continue with (2)<br>
2) if (b), then check if virsh dumpxml has all the info you had there<br>
   (i.e. libvirt doesn't lose track of something)<br>
    a) no data is missing -- we have an error in our Relax-NG schema<br>
    b) some part of the XML is missing -- your libvirt version doesn't<br>
       support it<span class=""><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Is this supported in libvirt 1.2.15 - the document doesnt specify a minimum<br>
version of libvirt.<br>
<br>
Appreciate your help.<br>
<br>
<br>
<br>
Regards,<br>
Harish<br>
</blockquote>
<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
______________________________<wbr>_________________<br>
libvirt-users mailing list<br>
<a href="mailto:libvirt-users@redhat.com" target="_blank">libvirt-users@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/libvirt-users" rel="noreferrer" target="_blank">https://www.redhat.com/mailman<wbr>/listinfo/libvirt-users</a><br>
</blockquote>
</blockquote></div><br></div>