[Pkg-libvirt-maintainers] Bug#694393: Bug#694393: libvirt-bin: error: Unable to create cgroup

Guido Günther agx at sigxcpu.org
Tue Nov 27 18:31:42 UTC 2012


On Tue, Nov 27, 2012 at 03:01:15AM +0000, brian m. carlson wrote:
> On Mon, Nov 26, 2012 at 09:06:14AM +0100, Guido Günther wrote:
> > On Mon, Nov 26, 2012 at 12:31:53AM +0000, brian m. carlson wrote:
> > > Package: libvirt-bin
> > > Version: 1.0.0-1
> > > Severity: important
> > > 
> > > I have a single VM set up with libvirt.  When I try to start it, I get
> > > the following:
> > > 
> > >   vauxhall ok % sudo virsh start azure
> > >   error: Failed to start domain azure
> > >   error: Unable to create cgroup for azure: No such file or directory
> > > 
> > > I get a similar error with virt-manager.  cgroup-bin is not installed,
> > > but installing it has no effect.  If it matters, I am using systemd as
> > > my init system.  Please let me know if you need more information.
> > 
> > The libvirt log would indeed be helpful, see /var/log/libvirt. Also see
> > 
> > http://wiki.debian.org/libvirt/Debugging.
> 
> It doesn't look very interesting, but it's attached.
> 
> > I'm using systemd here myself so that alone probably isn't the issue.
> > Please also show us the output of /proc/mounts.
> 
> vauxhall ok % cat /proc/mounts 
> rootfs / rootfs rw 0 0
> sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
> proc /proc proc rw,relatime 0 0
> udev /dev devtmpfs rw,relatime,size=10240k,nr_inodes=1008207,mode=755 0 0
> devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0
> tmpfs /run tmpfs rw,nosuid,relatime,size=1615696k,mode=755 0 0
> /dev/mapper/vauxhall-root / ext4 rw,noatime,discard,errors=remount-ro,data=ordered 0 0
> tmpfs /dev/shm tmpfs rw,nosuid,nodev,relatime 0 0
> tmpfs /sys/fs/cgroup tmpfs rw,nosuid,nodev,noexec,relatime,mode=755 0 0
> cgroup /sys/fs/cgroup/systemd cgroup rw,nosuid,nodev,noexec,relatime,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd 0 0
> cgroup /sys/fs/cgroup/cpuset cgroup rw,nosuid,nodev,noexec,relatime,cpuset 0 0
> cgroup /sys/fs/cgroup/cpu,cpuacct cgroup rw,nosuid,nodev,noexec,relatime,cpuacct,cpu 0 0
> cgroup /sys/fs/cgroup/devices cgroup rw,nosuid,nodev,noexec,relatime,devices 0 0
> cgroup /sys/fs/cgroup/freezer cgroup rw,nosuid,nodev,noexec,relatime,freezer 0 0
> cgroup /sys/fs/cgroup/net_cls cgroup rw,nosuid,nodev,noexec,relatime,net_cls 0 0
> cgroup /sys/fs/cgroup/blkio cgroup rw,nosuid,nodev,noexec,relatime,blkio 0 0
> cgroup /sys/fs/cgroup/perf_event cgroup rw,nosuid,nodev,noexec,relatime,perf_event 0 0
> systemd-1 /proc/sys/fs/binfmt_misc autofs rw,relatime,fd=26,pgrp=1,timeout=300,minproto=5,maxproto=5,direct 0 0
> debugfs /sys/kernel/debug debugfs rw,relatime 0 0
> hugetlbfs /dev/hugepages hugetlbfs rw,relatime 0 0
> securityfs /sys/kernel/security securityfs rw,relatime 0 0
> mqueue /dev/mqueue mqueue rw,relatime 0 0
> fusectl /sys/fs/fuse/connections fusectl rw,relatime 0 0
> /dev/mapper/vauxhall-tmp /tmp ext4 rw,noatime,discard,data=ordered 0 0
> /dev/mapper/vauxhall-home /home ext4 rw,noatime,discard,data=ordered 0 0
> /dev/sda1 /boot ext4 rw,noatime,discard,data=ordered 0 0
> binfmt_misc /proc/sys/fs/binfmt_misc binfmt_misc rw,relatime 0 0
> /home/bmc/.Private /home/bmc/Private ecryptfs rw,nosuid,nodev,relatime,ecryptfs_fnek_sig=c792de995cb426e9,ecryptfs_sig=d3d1f4b74dbeed2d,ecryptfs_cipher=aes,ecryptfs_key_bytes=16,ecryptfs_unlink_sigs 0 0
> gvfs-fuse-daemon /run/user/bmc/gvfs fuse.gvfs-fuse-daemon rw,nosuid,nodev,relatime,user_id=1000,group_id=1000 0 0
> 
> -- 
> brian m. carlson / brian with sandals: Houston, Texas, US
> +1 832 623 2791 | http://www.crustytoothpaste.net/~bmc | My opinion only
> OpenPGP: RSA v4 4096b: 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187

> 2012-05-06 00:20:51.977+0000: 107726: info : libvirt version: 0.9.11.3
> 2012-05-06 00:20:51.977+0000: 107726: error : qemuMonitorIO:617 : internal error End of file from monitor
> 2012-05-06 00:21:33.157+0000: 107726: error : qemuMonitorIO:617 : internal error End of file from monitor
> 2012-05-06 19:02:09.148+0000: 107726: error : qemuMonitorIO:617 : internal error End of file from monitor
> 2012-05-06 19:04:08.275+0000: 107734: error : virCommandWait:2306 : internal error Child process (tc qdisc del dev virbr0 root) status unexpected: exit status 2
> 2012-05-06 19:04:08.283+0000: 107734: error : virCommandWait:2306 : internal error Child process (tc qdisc del dev virbr0 ingress) status unexpected: exit status 2
> 2012-05-06 19:04:34.205+0000: 107728: error : networkCheckRouteCollision:1705 : internal error Network is already in use by interface virbr1
> 2012-05-06 19:04:39.941+0000: 107735: error : virCommandWait:2306 : internal error Child process (tc qdisc del dev virbr1 root) status unexpected: exit status 2
> 2012-05-06 19:04:39.948+0000: 107735: error : virCommandWait:2306 : internal error Child process (tc qdisc del dev virbr1 ingress) status unexpected: exit status 2
> 2012-05-06 19:49:54.903+0000: 107726: error : qemuMonitorIO:617 : internal error End of file from monitor
> 2012-11-26 00:09:40.237+0000: 1360: info : libvirt version: 0.9.12
> 2012-11-26 00:09:40.237+0000: 1360: error : qemuSetupCgroup:214 : Unable to create cgroup for azure: No such file or directory
We should figure out which part of the cgroup hierachy is missing. Could
you install debugging symbols, attach to libvirtd and break at
cgroup.c::virCgroupForDomain? Alternatively you can run libvirtd as
documented on the wiki. This will also print out the names of the
cgroups it tries to create. Once you got the cgroups name you should be
able to check which part in the cgroup hierachy is missing.
Cheers,
 -- Guido


> 2012-11-26 00:09:40.239+0000: 1360: error : qemuRemoveCgroup:583 : internal error Unable to find cgroup for azure
> 2012-11-26 00:09:40.239+0000: 1360: warning : qemuProcessStop:4032 : Failed to remove cgroup for azure



More information about the Pkg-libvirt-maintainers mailing list