<div class="gmail_quote"><div>Hi, Anton.<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div><div class="gmail_quote"><div class="gmail_quote">You can specify an IP address and a netmask like this:<br><div>
<a href="http://libvirt.org/formatnetwork.html#elementsAddress" target="_blank">http://libvirt.org/formatnetwork.html#elementsAddress</a><br>
Such bridge will be automatically set up.</div></div></div></div></div></blockquote></div></div></div></blockquote><div><br>- thanks for the hint. I assigned <a href="http://0.0.0.0">0.0.0.0</a> as I don't need IP on bridges at the moment.<br>
 </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div><div class="gmail_quote"><div class="gmail_quote">
<div>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><font size="2" color="#000000" face="Tahoma">
<div dir="ltr"></div>
<div dir="ltr">2) there is a default network "Default" with enabled 'Autostart'. Is there any way to remove this network completely?</div>
</font></div>
</blockquote>
</div>
<div>Yes,<br>
# virsh net-destroy defaul</div>
</div>
</div>
</div>
</div>
</blockquote>
<div>correct answer is<br>
# virsh net-undefine default</div></div></div></div></blockquote><div><br>- you were correct in both cases: you can't undefine active network so it should be destroyed and after that undefine. So it worked!<br> </div>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div><div class="gmail_quote"><div class="gmail_quote">
<div>Short answer: it doesn't work now. Wait for nex libvirt release (libvirt-4.6-alt2). I will try to make it as soon as possible.<br>
For details see <br>
</div>
<div><a href="http://www.redhat.com/archives/libvir-list/2008-October/msg00323.html" target="_blank">http://www.redhat.com/archives/libvir-list/2008-October/msg00323.html</a><br>
</div></div></div></div></div></blockquote><div><br>- yeah, i've already read that thread and known it was a bug. Just needed a confirmation that it was going to be fixed in next release. So may be my question will be a bit indelicate, but is there a hope to see this release by the end of november?<br>
 <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div><div class="gmail_quote"><div class="gmail_quote">
<div>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><font size="2" color="#000000" face="Tahoma">

<div dir="ltr">5) Is there any way to destroy domain completely like it can be done via 'vzctl destroy <ID>'?</div>

</font></div>
</blockquote>
</div>
<div>Yes,<br>
# virsh destroy <domain-name></div>
</div>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
<div>
<div class="gmail_quote">

</div>
</div>
</div>
</blockquote>
<div>And here too, if domain was previously defined, command must be:<br>
# virsh undefine <domain-name> </div></div></div></div></blockquote><div class="gmail_quote"><br>- got the idea. And noticed the following:<br><br>virsh # define ovz.xml<br>Domain 3005 defined from ovz.xml<br><br>virsh # start 3005<br>
Domain 3005 started<br><br>virsh # shutdown 3005<br>Domain 3005 is being shutdown<br><br>virsh # undefine 3005<br>libvir: OpenVZ error : Domain not found<br>Domain 3005 has been undefined<br><br>It really removes domain from file system, but why does it throw that error message?<br>
<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div><div class="gmail_quote"><div class="gmail_quote"><div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div><font size="2" color="#000000" face="Tahoma">

<div dir="ltr">6) Where does libvirt store info about already created domains? I can't create a new domain with ID 3005 after I completely destroy previous one via 'vzctl destroy 3005'.</div>
</font></div>
</blockquote>
</div>
<div dir="ltr">And what does it saying?</div></div></div></div></div></blockquote><div class="gmail_quote"><br>- if i simply destroy domain via vzctl (without undefining it via virsh):<br>[root@alt-03 ~]# vzctl destroy 3005<br>
Destroying container private area: /var/lib/vz/private/3005<br>Container private area was destroyed<br><br>- and then try to create another one (this time via virsh)<br>virsh # create ovz.xml<br>libvir: OpenVZ error : operation failed: Already an OPENVZ VM defined with the id '3005'<br>
error: Failed to create domain from ovz.xml<br><br>It seems domain is still defined from LibVirt's point of view but actually it doesn't exist any more. It was removed via native OpenVZ tool. In case I try to undefine it:<br>
virsh # undefine 3005<br>libvir: OpenVZ error : Domain not found<br>libvir: error : vzctl exited with non-zero status 14 and signal 0<br>libvir: OpenVZ error : internal error Could not exec vzctl<br>error: Failed to undefine domain 3005<br>
<br>And from this moment it is imposible to create domain with ID 3005. So how can I obtain a list of already defined domains? And how can it be purged?<br><br><div>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><font size="2" color="#000000" face="Tahoma">

<div>7) Is there any way to publish domain's console on a host system so that I can connect via telnet to HW node on some TCP/4567 and get into domain's console? <br></div></font></div></blockquote><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><font size="2" color="#000000" face="Tahoma"><div>vzctl enter <domain ID></div></font></div></blockquote><div> <br>- yeah, that for sure is true wheh you are on HW node itself. But I need to organize access into domain's consoles from remote mashines. In my case there is no network connectivity between real lan and domains. I believed, this XML definition could help me:<br>
<br><a href="http://libvirt.org/formatdomain.html#elementsCharTCP">http://libvirt.org/formatdomain.html#elementsCharTCP</a> - "<i>The character device acts as a TCP client connecting to a remote server, or 
as a server waiting for a client connection</i>", so when you connect to HW node on some TCP port you get into domain's console. But it seems I got it in a wrong way because is didn't work in case of OpenVZ. <br>
<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><font size="2" color="#000000" face="Tahoma">
</font></div>
</blockquote>
</div>
<div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><font size="2" color="#000000" face="Tahoma"><div>P.S. You can ask ALT-specific questions to me directly. </div>
</font></div></blockquote><div><br>- thanks, will keep that in mind.<br><br></div></div></div></div></div>___________<br>Best regards, <br>Ivan V.<br>