Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] Updated libvirt - can't create vcpu cgroup
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
BlueFusion
Apprentice
Apprentice


Joined: 08 Mar 2006
Posts: 251
Location: Cleveland, Ohio

PostPosted: Thu Jun 13, 2013 12:37 am    Post subject: [solved] Updated libvirt - can't create vcpu cgroup Reply with quote

I just updated my libvirt today. I can no longer start my VMs. I'm using qemu+KVM.

What is required to allow the VMs to work again? I see no "vcpu" cgroup in the kernel.

Quote:
rich@area51 ~ $ virsh -c qemu:///system
Welcome to virsh, the virtualization interactive terminal.

Type: 'help' for help with commands
'quit' to quit

virsh # start mail
error: Failed to start domain mail
error: Unable to create vcpu cgroup for mail(vcpu: 0): No such file or directory


Quote:
Portage 2.1.12.2 (default/linux/amd64/13.0/no-multilib, gcc-4.6.3, glibc-2.15-r3, 3.8.13-gentoo x86_64)
=================================================================
System uname: Linux-3.8.13-gentoo-x86_64-Intel-R-_Core-TM-_i7_CPU_940_@_2.93GHz-with-gentoo-2.2
KiB Mem: 6097200 total, 5388444 free
KiB Swap: 0 total, 0 free
Timestamp of tree: Wed, 12 Jun 2013 22:30:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash: 4.2_p45
dev-java/java-config: 2.1.12-r1
dev-lang/python: 2.7.3-r3, 3.2.3-r2
dev-util/cmake: 2.8.10.2-r2
dev-util/pkgconfig: 0.28
sys-apps/baselayout: 2.2
sys-apps/openrc: 0.11.8
sys-apps/sandbox: 2.5
sys-devel/autoconf: 2.13, 2.69
sys-devel/automake: 1.11.6, 1.12.6
sys-devel/binutils: 2.22-r1
sys-devel/gcc: 4.6.3
sys-devel/gcc-config: 1.7.3
sys-devel/libtool: 2.4-r1
sys-devel/make: 3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc: 2.15-r3
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://supernova/gentoo-portage"
USE="64bit X a52 aac acl acpi aim alsa amarok amd64 apng asf berkdb bitmap-fonts bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus device-mapper divx dri dts dvd dvdr dvdread encode esd fam ffmpeg firefox flac fortran gdbm gif glitz gnutls gpm gstreamer gtk gtk2 hddtemp iconv java javascript jpeg kde lame libnotify lm_sensors logitech-mouse lzo mad matroska mmap mmx mmxext modules mp3 mpeg mplayer mudflap ncurses nls nptl nsplugin nvidia offensive ogg openal opengl openmp pam pcre pdf phonon plasma png ppds pulseaudio qemu qt3support qt4 quicktime rdesktop readline samba sdk sdl session smp spell sse sse2 sse3 sse4 ssl startup-notification svg symlink tcpd threads tiff truetype truetype-fonts type1-fonts udev unicode usb vdpau vnc x264 xine xinerama xpm xv xvid zlib" ABI_X86="64" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

_________________
Desktop: i7-940 @ 2.93GHz, ASUS P6T Deluxe, 6GB RAM, 2x 160GB, 2x 500GB, 1x 1TB Seagate Barracuda SATA, nVidia 8800GTS 512MB, Hauppage PVR-250


Last edited by BlueFusion on Wed Jul 03, 2013 3:01 am; edited 1 time in total
Back to top
View user's profile Send private message
lumiere
n00b
n00b


Joined: 05 Oct 2006
Posts: 21

PostPosted: Tue Jun 18, 2013 12:57 pm    Post subject: Reply with quote

Had the same problem and after googling and trying for hours, I finally noticed these peculiar warning messages when beginning to emerge libvirt (again):
Code:

 * Checking for suitable kernel configuration options...
 *   CONFIG_CGROUP_FREEZER:      is not set when it should be.
 *   CONFIG_CGROUP_DEVICE:       is not set when it should be.
 *   CONFIG_CGROUP_CPUACCT:      is not set when it should be.
 *   CONFIG_CGROUP_PERF:         is not set when it should be.
 *   CONFIG_NET_CLS_CGROUP:      is not set when it should be.
 *   CONFIG_CPUSETS:     is not set when it should be.
 *   CONFIG_RESOURCE_COUNTERS:   is not set when it should be.
 *   CONFIG_UTS_NS:      is not set when it should be.
 *   CONFIG_IPC_NS:      is not set when it should be.
 *   CONFIG_DEVPTS_MULTIPLE_INSTANCES:   is not set when it should be.
 *   CONFIG_MEMCG:       is not set when it should be.
 *   CONFIG_MEMCG_SWAP:  is not set when it should be.
 *   CONFIG_MEMCG_KMEM:  is not set when it should be.
 * Please check to make sure these options are set correctly.
 * Failure to do so may cause unexpected problems.


I must have activated cgroups in the kernel but not half of a dozen necessary sub-options, which you can find here:
Code:

     -> General setup                                                                                                             
       -> Control Group support


Fixed. I wished those warnings were assembled at the end of the emerge, not at the beginning!

If this fixed your problem, too. Please don't forget to add "[SOLVED]" to the thread title.

Cheers!
Back to top
View user's profile Send private message
feiticeir0
Apprentice
Apprentice


Joined: 13 Jul 2005
Posts: 245
Location: Castelo Branco, Portugal

PostPosted: Wed Jun 26, 2013 2:16 pm    Post subject: Reply with quote

lumiere wrote:
Had the same problem and after googling and trying for hours, I finally noticed these peculiar warning messages when beginning to emerge libvirt (again):
Code:

 * Checking for suitable kernel configuration options...
 *   CONFIG_CGROUP_FREEZER:      is not set when it should be.
 *   CONFIG_CGROUP_DEVICE:       is not set when it should be.
 *   CONFIG_CGROUP_CPUACCT:      is not set when it should be.
 *   CONFIG_CGROUP_PERF:         is not set when it should be.
 *   CONFIG_NET_CLS_CGROUP:      is not set when it should be.
 *   CONFIG_CPUSETS:     is not set when it should be.
 *   CONFIG_RESOURCE_COUNTERS:   is not set when it should be.
 *   CONFIG_UTS_NS:      is not set when it should be.
 *   CONFIG_IPC_NS:      is not set when it should be.
 *   CONFIG_DEVPTS_MULTIPLE_INSTANCES:   is not set when it should be.
 *   CONFIG_MEMCG:       is not set when it should be.
 *   CONFIG_MEMCG_SWAP:  is not set when it should be.
 *   CONFIG_MEMCG_KMEM:  is not set when it should be.
 * Please check to make sure these options are set correctly.
 * Failure to do so may cause unexpected problems.


I must have activated cgroups in the kernel but not half of a dozen necessary sub-options, which you can find here:
Code:

     -> General setup                                                                                                             
       -> Control Group support


Fixed. I wished those warnings were assembled at the end of the emerge, not at the beginning!

If this fixed your problem, too. Please don't forget to add "[SOLVED]" to the thread title.

Cheers!


I have all of those options set, but still no cigar...

I have all of them set, rebuild libvirt and still nothing... The same error ...

Cheers everyone !
_________________
Do It With Rhythm
Back to top
View user's profile Send private message
BlueFusion
Apprentice
Apprentice


Joined: 08 Mar 2006
Posts: 251
Location: Cleveland, Ohio

PostPosted: Wed Jul 03, 2013 3:02 am    Post subject: Reply with quote

lumiere wrote:
Had the same problem and after googling and trying for hours, I finally noticed these peculiar warning messages when beginning to emerge libvirt (again):
Code:

 * Checking for suitable kernel configuration options...
 *   CONFIG_CGROUP_FREEZER:      is not set when it should be.
 *   CONFIG_CGROUP_DEVICE:       is not set when it should be.
 *   CONFIG_CGROUP_CPUACCT:      is not set when it should be.
 *   CONFIG_CGROUP_PERF:         is not set when it should be.
 *   CONFIG_NET_CLS_CGROUP:      is not set when it should be.
 *   CONFIG_CPUSETS:     is not set when it should be.
 *   CONFIG_RESOURCE_COUNTERS:   is not set when it should be.
 *   CONFIG_UTS_NS:      is not set when it should be.
 *   CONFIG_IPC_NS:      is not set when it should be.
 *   CONFIG_DEVPTS_MULTIPLE_INSTANCES:   is not set when it should be.
 *   CONFIG_MEMCG:       is not set when it should be.
 *   CONFIG_MEMCG_SWAP:  is not set when it should be.
 *   CONFIG_MEMCG_KMEM:  is not set when it should be.
 * Please check to make sure these options are set correctly.
 * Failure to do so may cause unexpected problems.


I must have activated cgroups in the kernel but not half of a dozen necessary sub-options, which you can find here:
Code:

     -> General setup                                                                                                             
       -> Control Group support


Fixed. I wished those warnings were assembled at the end of the emerge, not at the beginning!

If this fixed your problem, too. Please don't forget to add "[SOLVED]" to the thread title.

Cheers!


This did work for me.

I think this is silly, however - I don't want cgroups. I'm just using KVM/Qemu. Than again, I guess I don't have to use libvirt.
_________________
Desktop: i7-940 @ 2.93GHz, ASUS P6T Deluxe, 6GB RAM, 2x 160GB, 2x 500GB, 1x 1TB Seagate Barracuda SATA, nVidia 8800GTS 512MB, Hauppage PVR-250
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum