[Pkg-libvirt-maintainers] Bug#566180: Bug#566180: virsh can define lxc domain but does not list nor properly start it
Guido Günther
agx at sigxcpu.org
Thu Oct 14 17:32:58 UTC 2010
Hi ALexander,
On Thu, Oct 14, 2010 at 12:42:26PM +0200, Alexander Wirt wrote:
> Hi,
>
> I'm currently having the same problem. vm0.log gives the following:
What problem exactly? The crash?
>
> 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>
I'm using the examples from:
http://libvirt.org/drvlxc.html
which seems to work here. I see you're using /sbin/init but separate
'/'. Doesn't this call for problems? Could you try to reproduce with the
simple example from the URL above?
Cheers,
-- Guido
More information about the Pkg-libvirt-maintainers
mailing list