# Description: Use reasonable default settings at installation
# Author: Jon Bernard <jbernard@debian.org>

Index: libcgroup/samples/cgconfig.conf
===================================================================
--- libcgroup.orig/samples/cgconfig.conf	2009-08-25 18:57:09.194240159 -0400
+++ libcgroup/samples/cgconfig.conf	2009-08-25 18:57:18.350237575 -0400
@@ -42,7 +42,7 @@
 #	}
 #}
 #
-#mount {
-#	cpu = /mnt/cgroups/cpu;
-#	cpuacct = /mnt/cgroups/cpuacct;
-#}
+mount {
+	cpu = /mnt/cgroups/cpu;
+	cpuacct = /mnt/cgroups/cpuacct;
+}

# Description: Use reasonable default settings at installation
# Author: Jon Bernard <jbernard@debian.org>

--- a/samples/cgconfig.conf
+++ b/samples/cgconfig.conf
@@ -42,7 +42,8 @@
 #	}
 #}
 #
-#mount {
-#	cpu = /mnt/cgroups/cpu;
-#	cpuacct = /mnt/cgroups/cpuacct;
-#}
+mount {
+	cpu = /mnt/cgroups/cpu;
+	cpuacct = /mnt/cgroups/cpuacct;
+	devices = /mnt/cgroups/devices;
+}

Add device controller to the default configuration
Add device controller to the default configuration

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.

LP: #607849
Thanks: Serge Hallyn
