<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=koi8-r">
<meta content="MSHTML 6.00.2900.3429" name="GENERATOR">
<style title="owaParaStyle">P {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
</style>
</head>
<body ocsi="x">
<div dir="ltr"><font face="Tahoma" color="#000000" size="2">
<div class="gmail_quote">
<div>Hi, Anton.</div>
<font face="tahoma"></font></div>
<div class="gmail_quote"> </div>
<div class="gmail_quote"><font face="tahoma">Sorry for double posting.</font>
<div><br>
 </div>
<div class="Ih2E3d">
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<div>
<div>
<div class="gmail_quote">
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<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/<wbr>formatnetwork.html#<wbr>elementsAddress</a><br>
Such bridge will be automatically set up.</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
</div>
<div><br>
- thanks for the hint. I assigned <a href="http://0.0.0.0/" target="_blank">0.0.0.0</a> as I don't need IP on bridges at the moment.<br>
 </div>
<div class="Ih2E3d">
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<div>
<div>
<div class="gmail_quote">
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<div>
<div>
<div class="gmail_quote">
<div class="gmail_quote">
<div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<div><font face="Tahoma" color="#000000" size="2">
<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>
<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>
<div class="Ih2E3d">
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<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/<wbr>archives/libvir-list/2008-<wbr>October/msg00323.html</a><br>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<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>
<div class="Ih2E3d">
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<div>
<div>
<div class="gmail_quote">
<div class="gmail_quote">
<div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<div><font face="Tahoma" color="#000000" size="2">
<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="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<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>
<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?
<div class="Ih2E3d"><br>
<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<div>
<div>
<div class="gmail_quote">
<div class="gmail_quote">
<div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<div><font face="Tahoma" color="#000000" size="2">
<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>
<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>
<div class="Ih2E3d">
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<div><font face="Tahoma" color="#000000" size="2">
<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="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<div><font face="Tahoma" color="#000000" size="2">
<div>vzctl enter <domain ID></div>
</font></div>
</blockquote>
</div>
<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" target="_blank">http://libvirt.org/<wbr>formatdomain.html#<wbr>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="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<div><font face="Tahoma" color="#000000" size="2"></font></div>
</blockquote>
</div>
<div>
<div class="Ih2E3d">
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<div><font face="Tahoma" color="#000000" size="2">
<div>P.S. You can ask ALT-specific questions to me directly. </div>
</font></div>
</blockquote>
</div>
<div><br>
- thanks, will keep that in mind.<br>
<br>
__________</div>
<div>Best regards, <br>
Ivan V.</font></div>
</div>
</div>
</div>
</div>
</div>
<div id="divRpF822176" style="DIRECTION: ltr"> </div>
<br>
<hr>
<font face="Arial" color="Gray" size="1">This message (including attachments) is private and confidential. If you have received this message in error, please notify us and remove it from your system.<br>
</font>
</body>
</html>