[Pkg-libvirt-maintainers] Bug#566180: Bug#566180: virsh can define lxc domain but does not list nor properly start it

Alexander Wirt formorer at formorer.de
Thu Oct 14 10:42:26 UTC 2010


Hi, 

I'm currently having the same problem. vm0.log gives the following: 

12:33:06.252: error : lxcSetContainerResources:109 : Unable to set memory
limit for domain vm0: No such file or directory

Running libvirt with LIBVIRT_DEBUG=1 gives me a bunch of message about qemu
stuff, but nothing from lxc. 

Here is my xml definition:

<domain type='lxc'>
  <name>vm0</name>
  <uuid>5ebf64d2-f045-16de-8252-dfbd38b101e1</uuid>
  <memory>500000</memory>
  <currentMemory>500000</currentMemory>
  <vcpu>1</vcpu>
  <os>
    <type arch='x86_64'>exe</type>
    <init>/sbin/init</init>
  </os>
  <clock offset='utc'/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>destroy</on_crash>
  <devices>
    <emulator>/usr/lib/libvirt/libvirt_lxc</emulator>
    <interface type='bridge'>
      <mac address='52:54:7a:34:e3:7c'/>
      <source bridge='br0'/>
      <target dev='veth0'/>
    </interface>
    <console type='pty'>
      <target type='serial' port='0'/>
    </console>
  </devices>
</domain>

Maybe that helps

Alex






More information about the Pkg-libvirt-maintainers mailing list