[Pkg-libvirt-maintainers] Bug#707201: libvirt-bin: Controller 'devices' is not wanted, but 'cpu' is co-mounted: Invalid argument

Niels Boehm schnurzelpieps2000-dbts at yahoo.com
Sun Sep 15 02:37:41 UTC 2013


Package: libvirt-bin
Version: 1.1.2-3
Followup-For: Bug #707201

Dear Maintainer,

I've recently upgraded libvirt* to 1.1.2-3 and made sure there's no old
cgroup stuff lying around by rebooting the host machine.

When I have cgroup mounted and try to start a VM, I get the following
error:

# virsh start test
error: Failed to start domain test
error: Controller 'devices' is not wanted, but 'cpu' is co-mounted: Invalid argument

When unmounting cgroup, the VM starts up, but that's useless for me,
since then I don't have control over resource distribution anymore.

My cgroup entry in /etc/fstab is that (it's mounted at system start):

cgroup		/sys/fs/cgroup	cgroup	defaults	0	0

/var/log/libvirt/qemu/test.log shows the following:

2013-09-15 02:01:31.995+0000: starting up
LC_ALL=C PATH=/root/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin HOME=/root USER=root LOGNAME=root /usr/bin/kvm -name test -S -machine pc-1.1,accel=kvm -cpu SandyBridge,+osxsave,+pdcm,+xtpr,+tm2,+est,+smx,+vmx,+ds_cpl,+monitor,+dtes64,+pbe,+tm,+ht,+ss,+acpi,+ds,+vme -m 1024 -smp 2,sockets=1,cores=1,threads=2 -uuid f69b028e-dcec-c2d9-35fe-7a37f7262666 -nographic -no-user-config -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/test.monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc -no-shutdown -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -drive file=/dev/vg_sys/vm_test,if=none,id=drive-virtio-disk0,format=raw,cache=none,aio=native -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1 -fsdev local,security_model=mapped,id=fsdev-fs0,path=/home/niels/src -device virtio-9p-pci,id=fs0,fsdev=fsdev-fs0,mount_tag=/mnt,bus=pci.0,addr=0x6 -netdev tap,fd=26,id=host
 net0,vhost=on,vhostfd=27 -device virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:54:b8:1b,bus=pci.0,addr=0x3 -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5
2013-09-15 02:01:31.996+0000: 17945: debug : virFileClose:90 : Closed fd 25
2013-09-15 02:01:31.996+0000: 17945: debug : virFileClose:90 : Closed fd 32
2013-09-15 02:01:31.996+0000: 17945: debug : virFileClose:90 : Closed fd 3
2013-09-15 02:01:31.997+0000: 17946: debug : virExec:630 : Run hook 0x7f50c68b77c0 0x7f50cc8753d0
2013-09-15 02:01:31.997+0000: 17946: debug : qemuProcessHook:2568 : Obtaining domain lock
2013-09-15 02:01:31.997+0000: 17946: debug : virDomainLockProcessStart:170 : plugin=0x7f50bc006440 dom=0x7f50bc1aa370 paused=1 fd=0x7f50cc874f54
2013-09-15 02:01:31.997+0000: 17946: debug : virDomainLockManagerNew:128 : plugin=0x7f50bc006440 dom=0x7f50bc1aa370 withResources=1
2013-09-15 02:01:31.997+0000: 17946: debug : virLockManagerPluginGetDriver:289 : plugin=0x7f50bc006440
2013-09-15 02:01:31.997+0000: 17946: debug : virLockManagerNew:313 : driver=0x7f50d33d76e0 type=0 nparams=5 params=0x7f50cc874df0 flags=0
2013-09-15 02:01:31.997+0000: 17946: debug : virLockManagerLogParams:107 :   key=uuid type=uuid value=f69b028e-dcec-c2d9-35fe-7a37f7262666
2013-09-15 02:01:31.997+0000: 17946: debug : virLockManagerLogParams:100 :   key=name type=string value=test
2013-09-15 02:01:31.997+0000: 17946: debug : virLockManagerLogParams:88 :   key=id type=uint value=13
2013-09-15 02:01:31.997+0000: 17946: debug : virLockManagerLogParams:88 :   key=pid type=uint value=17946
2013-09-15 02:01:31.997+0000: 17946: debug : virLockManagerLogParams:103 :   key=uri type=cstring value=qemu:///system
2013-09-15 02:01:31.997+0000: 17946: debug : virDomainLockManagerNew:140 : Adding leases
2013-09-15 02:01:31.997+0000: 17946: debug : virDomainLockManagerNew:145 : Adding disks
2013-09-15 02:01:31.997+0000: 17946: debug : virDomainLockManagerAddDisk:86 : Add disk /dev/vg_sys/vm_test
2013-09-15 02:01:31.997+0000: 17946: debug : virLockManagerAddResource:340 : lock=0x7f50b0001520 type=0 name=/dev/vg_sys/vm_test nparams=0 params=(nil) flags=0
2013-09-15 02:01:31.997+0000: 17946: debug : virLockManagerAcquire:358 : lock=0x7f50b0001520 state='(null)' flags=3 action=0 fd=0x7f50cc874f54
2013-09-15 02:01:31.997+0000: 17946: debug : virLockManagerFree:395 : lock=0x7f50b0001520
2013-09-15 02:01:31.997+0000: 17946: debug : virObjectUnref:256 : OBJECT_UNREF: obj=0x7f50bc009d10
2013-09-15 02:01:31.997+0000: 17946: debug : qemuProcessHook:2595 : Hook complete ret=0
2013-09-15 02:01:31.997+0000: 17946: debug : virExec:632 : Done hook 0
2013-09-15 02:01:31.997+0000: 17946: debug : virExec:669 : Setting child uid:gid to 115:124 with caps 0
2013-09-15 02:01:31.997+0000: 17946: debug : virCommandHandshakeChild:360 : Notifying parent for handshake start on 29
2013-09-15 02:01:31.997+0000: 17946: debug : virCommandHandshakeChild:368 : Waiting on parent for handshake complete on 30
2013-09-15 02:01:31.999+0000: 17946: debug : virFileClose:90 : Closed fd 29
2013-09-15 02:01:31.999+0000: 17946: debug : virFileClose:90 : Closed fd 30
2013-09-15 02:01:31.999+0000: 17946: debug : virCommandHandshakeChild:388 : Handshake with parent is done
char device redirected to /dev/pts/3
2013-09-15 02:01:32.718+0000: shutting down
qemu: terminating on signal 15 from pid 17640


Regards,
Niels Böhm


-- System Information:
Debian Release: jessie/sid
  APT prefers testing-proposed-updates
  APT policy: (930, 'testing-proposed-updates'), (930, 'stable-updates'), (930, 'testing'), (90, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.10-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libvirt-bin depends on:
ii  adduser              3.113+nmu3
ii  gettext-base         0.18.3.1-1
ii  init-system-helpers  1.8
ii  libaudit1            1:2.3.2-2
ii  libavahi-client3     0.6.31-2
ii  libavahi-common3     0.6.31-2
ii  libblkid1            2.20.1-5.5
ii  libc6                2.17-92+b1
ii  libcap-ng0           0.7.3-1+b1
ii  libdbus-1-3          1.6.12-1
ii  libdevmapper1.02.1   2:1.02.77-6
ii  libgcrypt11          1.5.3-2
ii  libgnutls26          2.12.23-5
ii  libnetcf1            1:0.2.3-4
ii  libnl-3-200          3.2.21-1
ii  libnl-route-3-200    3.2.21-1
ii  libnuma1             2.0.8-3
ii  libparted0debian1    2.3-15
ii  libpcap0.8           1.4.0-2
ii  libpciaccess0        0.13.2-1
ii  libreadline6         6.2+dfsg-0.1
ii  libsasl2-2           2.1.25.dfsg1-14
ii  libudev1             204-3
ii  libvirt0             1.1.2-3
ii  libxen-4.3           4.3.0-1
ii  libxenstore3.0       4.3.0-1
ii  libxml2              2.9.1+dfsg1-3
ii  libyajl2             2.0.4-4
ii  logrotate            3.8.6-1

Versions of packages libvirt-bin recommends:
ii  bridge-utils    1.5-6
ii  dmidecode       2.12-2
ii  dnsmasq-base    2.66-4
ii  ebtables        2.0.10.4-3
ii  gawk            1:4.0.1+dfsg-2.1
ii  iproute         1:3.10.0-1
ii  iptables        1.4.20-2
ii  libxml2-utils   2.9.1+dfsg1-3
ii  netcat-openbsd  1.105-7
ii  parted          2.3-15
ii  pm-utils        1.4.1-11
ii  qemu            1.1.2+dfsg-6a
ii  qemu-kvm        1.1.2+dfsg-6

Versions of packages libvirt-bin suggests:
pn  auditd       <none>
pn  policykit-1  <none>
pn  radvd        <none>
pn  systemtap    <none>

-- Configuration Files:
/etc/default/libvirt-guests changed:
ON_BOOT=start
ON_SHUTDOWN=suspend

/etc/libvirt/libvirt.conf changed:
uri_default = "qemu:///system"

/etc/libvirt/qemu.conf [Errno 13] Permission denied: u'/etc/libvirt/qemu.conf'
/etc/libvirt/qemu/networks/default.xml [Errno 13] Permission denied: u'/etc/libvirt/qemu/networks/default.xml'

-- no debconf information



More information about the Pkg-libvirt-maintainers mailing list