On Fri, Oct 15, 2010 at 05:33:31PM +0200, Peter Palfrader wrote: > On Thu, 14 Oct 2010, Guido Günther wrote: > > > The file missing is memory.limit_in_bytes which needs > > > > CONFIG_RESOURCE_COUNTERS=y > > CONFIG_CGROUP_MEM_RES_CTLR=y > > > > wich we don't have in Squeeze. This fixes it by ignoring errors due to > > memory limit setting: > > > > --- libvirt-0.8.3.orig/src/util/cgroup.c > > +++ libvirt-0.8.3/src/util/cgroup.c > > @@ -870,6 +870,8 @@ int virCgroupGetMemoryUsage(virCgroupPtr > > "memory.usage_in_bytes", &usage_in_bytes); > > if (ret == 0) > > *kb = (unsigned long) usage_in_bytes >> 10; > > + else > > + *kb = 0; > > return ret; > > } > > > > --- libvirt-0.8.3.orig/src/lxc/lxc_driver.c > > +++ libvirt-0.8.3/src/lxc/lxc_driver.c > > @@ -516,7 +516,6 @@ static int lxcDomainGetInfo(virDomainPtr > > if (virCgroupGetMemoryUsage(cgroup, &(info->memory)) < 0) { > > lxcError(VIR_ERR_OPERATION_FAILED, > > "%s", _("Cannot read memory usage for domain")); > > - goto cleanup; > > } > > } > > > > --- libvirt-0.8.3.orig/src/lxc/lxc_controller.c > > +++ libvirt-0.8.3/src/lxc/lxc_controller.c > > @@ -107,7 +107,6 @@ static int lxcSetContainerResources(virD > > virReportSystemError(-rc, > > _("Unable to set memory limit for domain %s"), > > def->name); > > - goto cleanup; > > } > > > > rc = virCgroupDenyAllDevices(cgroup); > > Any chance to get this fix included in squeeze? Would be kinda nice. Current libvirt has two more days to go until it hits Squeeze. I'll upload a new version afterwards, Since LXC domains are completely broken with Debian stock kernels at the moment I hope we'll get a freeze exception. Cheers, -- Guido
-- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org