Red Hat Bugzilla – Bug 696218
Unable to create cgroup: No such file or directory
Last modified: 2011-06-13 11:13:20 EDT
Description of problem:
Unable to complete install: 'Unable to create cgroup for Fedora_15_1204: No such file or directory'
Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 45, in cb_wrapper
callback(asyncjob, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/create.py", line 1643, in do_install
File "/usr/lib/python2.7/site-packages/virtinst/Guest.py", line 1187, in start_install
start_xml, final_xml, is_initial)
File "/usr/lib/python2.7/site-packages/virtinst/Guest.py", line 1246, in _create_guest
dom = self.conn.createLinux(start_xml or final_xml, 0)
File "/usr/lib64/python2.7/site-packages/libvirt.py", line 1446, in createLinux
if ret is None:raise libvirtError('virDomainCreateLinux() failed', conn=self)
libvirtError: Unable to create cgroup for Fedora_15_1204: No such file or directory
Version-Release number of selected component (if applicable):
Every time a new vm is created
Steps to Reproduce:
1. Start Virtual Machine Manager
2. Choose "Create a new virtual machine" and follow al steps
3. At step 5 press button "Finish" -> the above error appears
New vm is not created
New vm is created
Just tried to start an existing vm. Got the same error message.
Not sure if it's relevant but cgroup.service failed at boot time:
[martin@ps-1866 ~]$ systemctl status cgconfig.service
cgconfig.service - LSB: start and stop the WLM configuration
Loaded: loaded (/etc/rc.d/init.d/cgconfig)
Active: failed since Wed, 13 Apr 2011 13:36:03 +0200; 3h 51min ago
An update (libguestfs?) solved this issue. Please close this report.
Closing per comment #4
I'm getting again the error:
libvirtError: Unable to create cgroup for $VIRTIMAGE: No such file or
Checking the logs I see:
May 19 13:38:30 piernb libvirtd: 13:38:30.440: 1643: error : qemuSetupCgroup:199 : Unable to create cgroup for $VIRTIMAGE: No such file or directory
May 19 13:38:30 piernb libvirtd: 13:38:30.452: 1643: error : qemuRemoveCgroup:350 : internal error Unable to find cgroup for $VIRTIMAGE
May 19 13:38:30 piernb libvirtd: 13:38:30.452: 1643: warning : qemudShutdownVMDaemon:3115 : Failed to remove cgroup for $VIRTIMAGE
I was able to solve it by modifying the configuration in the file /etc/libvirt/qemu.conf:
cgroup_controllers = [ ]
I'm using the latest F15, with the testing repo enabled.
I am also experiencing this error in a fresh install of Fedora 15.
Same "unable to create cgroup" problem for me. Using updated rawhide.
I hit this on Fedora 15 GA. I (re)started cgconfig, then restarted libvirtd and I was able to start my VMs again. It looks like cgconfig is crashing. I didn't see an abrt alert, so I didn't catch the crash.
The works with the latest rawhide (so with systemd 28-1)
This would seem to be a dupe of 666130. - Justin
*** Bug 709164 has been marked as a duplicate of this bug. ***
Restarting cgconfig fixes it here too, it was also in a failed state here.
Does anyone know what is actually causing these errors? Perhaps more
importantly, does anyone care?
Restarting libvirtd is a fairly painful workaround, particularly when one
hits the error while creating a new VM (since everything has to be
This is a systemd bug already being tracked. Closing as DUPLICATE
*** This bug has been marked as a duplicate of bug 678555 ***