[libvirt] FW: Libvirt and openvz?

Thomas Graves tgraves at yahoo-inc.com
Thu Mar 4 17:06:39 UTC 2010


Ok, after recompiling libvirt 0.7.4 I am able to get it to connect and sort of works with openvz.

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?

Original I passed to virsh:

<domain type='openvz' id='600'>
  <uuid>9626e6b8-584c-729c-9e66-a583577821e6</uuid>
  <name>600</name>
  <vcpu>1</vcpu>
  <memory>4096</memory>
  <os>
    <type>exe</type>
    <init>/sbin/init</init>
  </os>
  <devices>
    <filesystem type='template'>
      <source name='rhel-5-x86_64-minimal'/>
      <target dir='/'/>
    </filesystem>
    <interface type='bridge'>
      <mac address='00:50:56:3b:5e:6d' />
      <source bridge='virbr0'/>
      <target dev='veth101.0'/>
    </interface>
  </devices>
</domain>

===========================
dumpxml:

<domain type='qemu'>
  <name>202</name>
  <uuid>3b20a001-b90a-abbe-a6ef-297f7b265119</uuid>
  <memory>0</memory>
  <currentMemory>0</currentMemory>
  <vcpu>8</vcpu>
  <os>
    <type>exe</type>
    <init>/sbin/init</init>
  </os>
  <clock offset='utc'/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>destroy</on_reboot>
  <on_crash>destroy</on_crash>
  <devices>
    <filesystem type='template'>
      <source name='rhel-5-x86_64-minimal'/>
      <target dir='/'/>
    </filesystem>
  </devices>
</domain>

Thanks,
Tom


On 3/3/10 3:51 PM, "Thomas Graves" <tgraves at yahoo-inc.com> wrote:





I just recently started using openvz and I'm trying to use libvirt/virsh
with it.

I followed the directions on page: http://libvirt.org/drvopenvz.html

But I get an error trying to run define with the example config file:

 virsh define virt.conf
error: Failed to define domain from virt.conf
error: unknown OS type exe

sudo virsh -c openvz:/// list
error: could not connect to openvz:///
error: failed to connect to the hypervisor

I'm using libvirt 0.7.2 with latest rhel5.4 openvz.

Does anyone have more example configuration files or other setup
instructions?

Does Libvirt allow you to specify other resource limits and controls that
openvz has - like vzctl set --devnodes device:rw or vzctl set kmemsize?

Thanks,
Tom



--
libvir-list mailing list
libvir-list at redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20100304/c2e5240c/attachment-0001.htm>


More information about the libvir-list mailing list