cgroup-bin stops libvirt from starting domains

Bug #607849 reported by Serge Hallyn
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libcgroup (Ubuntu)
Fix Released
Medium
Serge Hallyn

Bug Description

When the cgroup-bin package is installed, it mounts two cgroups. Then
whenever libvirt tries to fire up a VM, it sees cgroups are mounted, and
wants to lock the VM into a devices cgroup to stop it accessing devices.
However the default config does not mount the devices cgroup, so libvirt
refuses to start up the VM.

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :
Changed in libcgroup (Ubuntu):
assignee: nobody → Serge Hallyn (serge-hallyn)
importance: Undecided → Medium
Revision history for this message
Jon Bernard (jbernard) wrote :

Hi Serge, thanks for the report. I'll test your change and if things look good (I expect so), I'll upload this patch to Debian. Then we should be able to file a sync-request to get it into maverick.

J

Revision history for this message
Philippe Clérié (pclerie) wrote :

I tried the proposed fix on the lucid package by manually modifying /etc/cgconfig.conf and restarting the cg services and libvirt-bin.

That appears to fix the reported problem, but it also uncovers another. The vm attempts to start but fails with the following message:

error: Failed to start domain phobos
error: operation failed: failed to retrieve chardev info in qemu with 'info chardev'

Revision history for this message
Philippe Clérié (pclerie) wrote :

Please scratch my last message. I'm only having problems with Windows XP vm's that do work in Karmic. My Linux vm's are unaffected. So it's most likely a configuration incompatibility between karmic and lucid.

Apologies...

Revision history for this message
Jon Bernard (jbernard) wrote :

Philippe, no worries. Thanks for the update.

Revision history for this message
Jon Bernard (jbernard) wrote :

Ok, I just uploaded version 0.36.2-3 to Debian. It should be in the archive within a few hours and a sync request can be filed to have it pulled into Maverick. In the mean time, I've uploaded backports of that version to my ppa:

    ppa:jbernard/libcgroup (https://launchpad.net/~jbernard/+archive/libcgroup)

I do not have permission to upload to Ubuntu, can someone help with this?

Cheers

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Thanks, confirmed this lets VMs start through libvirt on my testbox. I'll create a sync
request.

Revision history for this message
StefanPotyra (sistpoty) wrote :

Can you point to the sync request please? (from a glimpse, the update looks ok for a FFe at this point in maverick's release schedule, but I'd prefer to have another look at the sync request providing aggregated information on the Ubuntu delta and the Debian changeog).

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

I can't find it! Did something wrong? Created
https://bugs.edge.launchpad.net/ubuntu/+source/libcgroup/+bug/620434 now
using requestsync.

Changed in libcgroup (Ubuntu):
status: New → Fix Committed
Revision history for this message
StefanPotyra (sistpoty) wrote : Re: [Bug 607849] Re: cgroup-bin stops libvirt from starting domains

Hi,

Am Thursday 19 August 2010 15:14:56 schrieb Serge Hallyn:
> I can't find it! Did something wrong?

ah, sorry, my bad, thought you had filed it already, and I couldn't find it.
Everything is fine :).

> Created
> https://bugs.edge.launchpad.net/ubuntu/+source/libcgroup/+bug/620434 now
> using requestsync.

Thanks!

Cheers,
   Stefan.

Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (3.3 KiB)

This bug was fixed in the package libcgroup - 0.36.2-3

---------------
libcgroup (0.36.2-3) unstable; urgency=low

  * [a1bd2b] Add device controller to the default configuration
    (LP: #607849) - thanks to Serge Hallyn

libcgroup (0.36.2-2) unstable; urgency=low

  * [ae0921] Replace sysconfig with default in cgconfig initscript patch
    (Closes: #588494)
  * [412460] Fix config file reference in cgred initscript patch
  * [3822c1] Update cgred default configuration file
  * [17fdaf] Add cgconfig default configuration file
  * [577ac2] Bump standards version to 3.9.0, no changes necessary
  * [f28c7d] Fix typo in copyright file
  * [14244b] Remove redundant reference to BSD license in copyright file

libcgroup (0.36.2-1) unstable; urgency=low

  * [df1c38] Imported Upstream version 0.36.2
  * [afe1f0] Remove cgdelete manpage, included upstream
  * [afecca] Remove lscgroup manpage, included upstream
  * [e68c9a] Remove lssubsys manpage, included upstream
  * [54f5da] Fix install override to handle changed location of pam
    module

libcgroup (0.36.1-2) unstable; urgency=low

  * [8a9de6] Install shared object and symlinks in /lib (Closes: #583513)

libcgroup (0.36.1-1) unstable; urgency=low

  * [d1d65a] Add Vcs fields to debian/control
  * [2ca672] Exclude release candidates from debian/watch
  * [36e728] Imported Upstream version 0.36.1
  * [41bdfa] Remove missing-includes patch, included upstream

libcgroup (0.36-1) unstable; urgency=low

  * [be0275] Fix typo in debian/watch
  * [1db135] Imported Upstream version 0.36 (Closes: #582440)
  * [63e1bd] Remove cgget manpage, included upstream
  * [66f232] Remove manpages patch, included upstream
  * [5ab7ce] Remove pkg-config patch, included upstream
  * [47ea10] Remove sa_restorer patch, included upstream
  * [124d53] Add patch for missing includes, fixes build

libcgroup (0.35-3) unstable; urgency=low

  * [b5eb1b] Drop .la files (Closes: #579812)
  * [c9f683] Backport libcgroup.pc pkg-config file from upstream
    (Closes: #579753)

libcgroup (0.35-2) unstable; urgency=low

  * Use memset to initialize sigaction struct (Closes: #549581)

libcgroup (0.35-1) unstable; urgency=low

  * Imported Upstream version 0.35
  * Remove manpage for cgclear, included upstream
  * Remove obsolete debian patches
  * Add missing manpages from upstream
  * Update debian/watch to support new upstream versioning scheme
  * Run autoreconf before configure
  * Stop removing RPATH from certain files, fixed upstream
  * Remove chrpath and docbook-to-man from build dependencies
  * Bump standards version to 3.8.4, no changes necessary
  * Remove redundant section definition for libcgroup1
  * debian/libcgroup1.install: replace hardcoded version with wildcard
  * debian/libcgroup1.install: include .la file in libcgroup1
  * debian/cgroup-bin.manpages: update installed manpages
  * Update manpages patch to escape hyphens
  * Depend on 'cgconfig' in cgred initscript (Closes: #549480)
  * Refresh cgconfig initscript patch
  * Include patch tags on vendor patches (DEP3)

libcgroup (0.34-2) unstable; urgency=low

  * Fix initscript dependencies (Closes: #549480) - thanks to Petter
    Reinholdtsen <email address hidden>
...

Read more...

Changed in libcgroup (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.