<HTML>
<HEAD>
<TITLE>Re: [libvirt] FW: Libvirt and openvz?</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Ok, after recompiling libvirt 0.7.4 I am able to get it to connect and sort of works with openvz.  <BR>
<BR>
I always get an error about “error: internal error Could not set UUID”. It ends up defining the domain but uses the id of last id+1 instead of 600. If I dumpxml on the domain it created it looks different.  Any ideas on this error?  <BR>
<BR>
Original I passed to virsh:<BR>
<BR>
<domain type='openvz' id='600'><BR>
  <uuid>9626e6b8-584c-729c-9e66-a583577821e6</uuid><BR>
  <name>600</name><BR>
  <vcpu>1</vcpu><BR>
  <memory>4096</memory><BR>
  <os><BR>
    <type>exe</type><BR>
    <init>/sbin/init</init><BR>
  </os><BR>
  <devices><BR>
    <filesystem type='template'><BR>
      <source name='rhel-5-x86_64-minimal'/><BR>
      <target dir='/'/><BR>
    </filesystem><BR>
    <interface type='bridge'><BR>
      <mac address='00:50:56:3b:5e:6d' /><BR>
      <source bridge='virbr0'/><BR>
      <target dev='veth101.0'/><BR>
    </interface><BR>
  </devices><BR>
</domain><BR>
<BR>
===========================<BR>
dumpxml:<BR>
<BR>
<domain type='qemu'><BR>
  <name>202</name><BR>
  <uuid>3b20a001-b90a-abbe-a6ef-297f7b265119</uuid><BR>
  <memory>0</memory><BR>
  <currentMemory>0</currentMemory><BR>
  <vcpu>8</vcpu><BR>
  <os><BR>
    <type>exe</type><BR>
    <init>/sbin/init</init><BR>
  </os><BR>
  <clock offset='utc'/><BR>
  <on_poweroff>destroy</on_poweroff><BR>
  <on_reboot>destroy</on_reboot><BR>
  <on_crash>destroy</on_crash><BR>
  <devices><BR>
    <filesystem type='template'><BR>
      <source name='rhel-5-x86_64-minimal'/><BR>
      <target dir='/'/><BR>
    </filesystem><BR>
  </devices><BR>
</domain><BR>
<BR>
Thanks,<BR>
Tom<BR>
<BR>
<BR>
On 3/3/10 3:51 PM, "Thomas Graves" <<a href="tgraves@yahoo-inc.com">tgraves@yahoo-inc.com</a>> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
<BR>
<BR>
<BR>
I just recently started using openvz and I'm trying to use libvirt/virsh<BR>
with it. <BR>
<BR>
I followed the directions on page: <a href="http://libvirt.org/drvopenvz.html">http://libvirt.org/drvopenvz.html</a><BR>
<BR>
But I get an error trying to run define with the example config file:<BR>
<BR>
 virsh define virt.conf<BR>
error: Failed to define domain from virt.conf<BR>
error: unknown OS type exe<BR>
<BR>
sudo virsh -c openvz:/// list<BR>
error: could not connect to openvz:///<BR>
error: failed to connect to the hypervisor<BR>
<BR>
I'm using libvirt 0.7.2 with latest rhel5.4 openvz.<BR>
<BR>
Does anyone have more example configuration files or other setup<BR>
instructions?<BR>
<BR>
Does Libvirt allow you to specify other resource limits and controls that<BR>
openvz has - like vzctl set --devnodes device:rw or vzctl set kmemsize?<BR>
<BR>
Thanks,<BR>
Tom<BR>
<BR>
<BR>
<BR>
--<BR>
libvir-list mailing list<BR>
<a href="libvir-list@redhat.com">libvir-list@redhat.com</a><BR>
<a href="https://www.redhat.com/mailman/listinfo/libvir-list">https://www.redhat.com/mailman/listinfo/libvir-list</a><BR>
<BR>
</SPAN></FONT></BLOCKQUOTE>
</BODY>
</HTML>