2008/11/10 Anton Protopopov <span dir="ltr"><<a href="mailto:aspsk2@gmail.com">aspsk2@gmail.com</a>></span><br><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><div class="Wj3C7c">Hi!<br><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 face="Tahoma" size="2" color="#000000">
<div dir="ltr">I faced with several difficulties / misunderstandings and I hope someone could clarify me (at the moment I use 'virsh' for testing).</div>
<div dir="ltr"> </div>
<div dir="ltr">1) after creating network via 'virsh # net-create network.xml' i get vzbr0 bridge in down state and have to make ip up manually. Is there any way to automatically make it up?</div></font></div></blockquote>


</div><div>You can specify an IP address and a netmask like this:<br><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.<br>


 </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 face="Tahoma" size="2" color="#000000"><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<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 class="Wj3C7c"><div class="gmail_quote"><div class="gmail_quote"><div><br>

 <br></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 face="Tahoma" size="2" color="#000000"><div dir="ltr">
</div>

<div dir="ltr">3) after creating domain via 'virsh # create ovz.xml' i get a new container, but it doesn't work as it should do:<br>
- at first, it has 'vzbr0' veth interface inside and its pair on a HW node is added into default bridge vmbr0. I believed tag <source bridge='vzbr0'/> should point to a bridge name on a HW node, but instead it created veth interface with such name. In openvz
 config file for created domain i see this:<br>
</div>

<div dir="ltr">[root@alt-03 ~]# cat /etc/vz/conf/3005.conf | grep NETIF<br>
NETIF="ifname=vzbr0,mac=52:54:00:35:10:6D,host_ifname=veth3005.0,host_mac=52:54:00:35:10:6D"</div></font></div></blockquote></div><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>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><font face="Tahoma" size="2" color="#000000"><div dir="ltr"></div><div dir="ltr">4) Is there any way to specify config file for created domain like it can be done via 'vzctl create <ID> --oostemplate <templname> --config <confname>'? </div>


</font></div></blockquote></div><div>No<br> </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 face="Tahoma" size="2" color="#000000"><div dir="ltr">


</div>

<div dir="ltr">5) Is there any way to destroy domain completely like it can be done via 'vzctl destroy <ID>'?</div>
<div dir="ltr"></div></font></div></blockquote></div><div>Yes,<br># virsh destroy <domain-name></div></div></div></div></div></blockquote><div>And here too, if domain was previously defined, command must be:<br># virsh undefine <domain-name> <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 class="Wj3C7c"><div class="gmail_quote"><div class="gmail_quote"><div><br></div>
<div><div><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 face="Tahoma" size="2" color="#000000"><div dir="ltr"></div>
<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?<font color="#000000"><font size="2"><font face="Tahoma"><br></font></font></font> <br></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 face="Tahoma" size="2" color="#000000"><div dir="ltr"></div>

<div dir="ltr">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?</div></font></div></blockquote></div><div>

vzctl enter <domain ID><br>
 </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 face="Tahoma" size="2" color="#000000"><div dir="ltr">
</div>


<div dir="ltr">8) Does libvirt use some OpenVZ bindings or simply executes vzctl and other stuff?</div></font></div></blockquote></div><div>simply executes vzctl and reading/writing <veid>.conf<br><br>P.S. You can ask ALT-specific questions to me directly.
</div></div>
</div><br>
</div></div></blockquote></div><br>