On Mon, 2011-06-06 at 11:11 +0200, Alessandro Ghedini wrote:

> On Mon, Jun 06, 2011 at 10:12:36AM +0200, Frederik Himpe wrote:
> > It seems that since I installed ulatencyd, virtinst cannot create VM's 
> > anymore
> > and complains that it cannot create a cgroup for the VM instance with the
> > error: no such file or directory. Restarting libvirt-bin service, makes it 
> > work
> > again.
> > 
> > A similar bug occured in Fedora because systemd was deleting libvirt's 
> > cgroups.
> > :
> > 
> > https://bugzilla.redhat.com/show_bug.cgi?id=678555
> 
> I've never used virtinst, could you please provide a step-by-step procedure
> to reproduce the bug?

I don't know how to reliably reproduce it, it just happens now and then.

Currently I am suffering from this problem. I try to start a VM defined
in libvirt:
# virsh start Ubuntu
error: Failed to start domain Ubuntu
error: Unable to create cgroup for Ubuntu: No such file or directory

Notice that libvirt was moved under grp_31597, so now libvirt does not
find its cgroup anymore:

$ ulatency
/sys/fs/cgroup/cpu
└─┬»cpu«
  ├ 6 migration/0
  ├ 7 watchdog/0
  ├─┬»sys_essential«
  │ └ 30825 Xorg
  ├─┬»usr_1000«
  │ ├─┬»grp_6622«
  │ │ └ 6622 bash
  │ ├─┬»grp_1745«
  │ │ └ 1745 bash
  │ ├─┬»grp_19263«
  │ │ ├ 11324 ssh
  │ │ └ 19263 bash
  │ ├─┬»grp_24103«
  │ │ ├ 3020 ssh
  │ │ └ 24103 bash
  │ ├─┬»active«
  │ │ ├ 881 rsyslogd
  │ │ ├ 11363 su
  │ │ ├ 11373 bash
  │ │ ├ 11980 bash
  │ │ ├ 12404 bash
  │ │ ├ 12751 python
  │ │ ├ 19641 bash
  │ │ └ 31494 python
  │ ├─┬»grp_31597«
  │ │ ├ 1530 ssh
  │ │ ├ 24158 libvirtd
  │ │ ├ 31597 bash
  │ │ └─┬»libvirt«
  │ │   └─┬»lxc«
  │ ├─┬»grp_31509«
  │ │ └ 31563 gconf-helper
  │ ├─┬»grp_31511«
  │ │ └ 31511 gnome-screensav
  │ ├─┬»grp_31498«
  │ │ └ 31498 gnome-volume-co
  │ ├─┬»grp_31496«
  │ │ └ 31496 parcellite
  │ ├─┬»grp_31492«
  │ │ └ 31492 tracker-store
  │ ├─┬»grp_31489«
  │ │ └ 31489 nm-applet
  │ ├─┬»grp_31488«
  │ │ └ 31488 update-notifier
  │ ├─┬»grp_31485«
  │ │ └ 31485 tracker-miner-f
  │ ├─┬»grp_31481«
  │ │ └ 31481 evolution-alarm
  │ ├─┬»grp_31469«
  │ │ └ 31469 bluetooth-apple
  │ ├─┬»grp_31474«
  │ │ └ 31474 gdu-notificatio
  │ ├─┬»grp_31472«
  │ │ └ 31472 zeitgeist-datah
  │ ├─┬»grp_31470«
  │ │ └ 31470 python
  │ ├─┬»grp_31466«
  │ │ ├ 31466 bonobo-activati
  │ │ ├ 31532 python
  │ │ ├ 31533 multiload-apple
  │ │ └ 31534 sensors-applet
  │ ├─┬»grp_31453«
  │ │ └ 31453 compiz-ccp
  │ ├─┬»grp_31661«
  │ │ └ 31661 sh
  │ ├─┬»ui«
  │ │ ├ 5148 pan
  │ │ ├ 12339 plugin-containe
  │ │ ├ 22187 evolution
  │ │ ├ 27320 firefox-bin
  │ │ ├ 27356 pcscd
  │ │ ├ 29756 pino
  │ │ ├ 31204 python
  │ │ ├ 31455 compiz
  │ │ ├ 31462 gnome-panel
  │ │ ├ 31464 nautilus
  │ │ └ 31662 compiz-decorato
  │ ├─┬»grp_30980«
  │ │ └ 30980 notification-da
  │ ├─┬»grp_30973«
  │ │ └ 30973 gnome-power-man
  │ ├─┬»grp_30970«
  │ │ └ 30970 gnome-settings-
  │ ├─┬»grp_30968«
  │ │ └ 30968 polkit-gnome-au
  │ ├─┬»grp_30958«
  │ │ └ 30958 dbus-launch
  │ ├─┬»grp_30955«
  │ │ └ 30955 ssh-agent
  │ ├─┬»grp_30959«
  │ │ ├ 3614 gvfsd-http
  │ │ ├ 7528 dconf-service
  │ │ ├ 18499 gvfsd-metadata
  │ │ ├ 30959 dbus-daemon
  │ │ ├ 30964 gconfd-2
  │ │ ├ 31376 gvfsd
  │ │ ├ 31444 gvfs-gdu-volume
  │ │ ├ 31449 gvfs-afc-volume
  │ │ ├ 31452 gvfs-gphoto2-vo
  │ │ ├ 31491 zeitgeist-daemo
  │ │ ├ 31515 geoclue-master
  │ │ ├ 31539 e-calendar-fact
  │ │ ├ 31543 gvfsd-trash
  │ │ ├ 31555 e-addressbook-f
  │ │ ├ 31573 geoclue-manual
  │ │ ├ 31575 geoclue-hostip
  │ │ ├ 31600 cat
  │ │ └ 31655 gvfsd-burn
  │ ├─┬»grp_30917«
  │ │ └ 30917 x-session-manag
  │ ├─┬»grp_2498«
  │ │ └ 30894 gnome-keyring-d
  │ ├─┬»grp_6014«
  │ ├─┬»grp_6013«
  │ ├─┬»grp_6001«
  │ ├─┬»grp_6000«
  │ ├─┬»grp_5997«
  │ ├─┬»grp_12766«
  │ ├─┬»grp_5389«
  │ ├─┬»grp_5380«
  │ ├─┬»grp_5379«
  │ ├─┬»grp_5378«
  │ ├─┬»grp_5376«
  │ ├─┬»grp_5373«
  │ ├─┬»grp_5371«
  │ ├─┬»grp_4566«
  │ ├─┬»grp_4585«
  │ ├─┬»grp_6058«
  │ ├─┬»grp_4576«
  │ ├─┬»grp_5368«
  │ └─┬»grp_4575«
  ├─┬»sys_idle«
  │ └ 2478 preload
  ├─┬»sys_bg«
  │ └ 2601 cron
  ├─┬»usr_65534«
  │ └─┬»grp_2798«
  │   └ 2799 dnsmasq
  ├─┬»rt_tasks«
  │ ├ 2 kthreadd
  │ ├ 3 ksoftirqd/0
  │ ├ 13 cpuset
  │ ├ 14 khelper
  │ ├ 15 netns
  │ ├ 16 sync_supers
  │ ├ 17 bdi-default
  │ ├ 18 kintegrityd
  │ ├ 19 kblockd
  │ ├ 21 khungtaskd
  │ ├ 22 kswapd0
  │ ├ 23 ksmd
  │ ├ 24 khugepaged
  │ ├ 25 fsnotify_mark
  │ ├ 26 crypto
  │ ├ 132 khubd
  │ ├ 135 ata_sff
  │ ├ 172 firewire
  │ ├ 180 scsi_eh_0
  │ ├ 181 scsi_eh_1
  │ ├ 182 scsi_eh_2
  │ ├ 183 scsi_eh_3
  │ ├ 184 scsi_eh_4
  │ ├ 185 scsi_eh_5
  │ ├ 259 kdmflush
  │ ├ 267 kdmflush
  │ ├ 296 jbd2/dm-0-8
  │ ├ 297 ext4-dio-unwrit
  │ ├ 493 kpsmoused
  │ ├ 558 cfg80211
  │ ├ 645 iwlagn
  │ ├ 653 pccardd
  │ ├ 785 hd-audio0
  │ ├ 1234 l2cap
  │ ├ 1357 kvm-irqfd-clean
  │ ├ 1553 kdmflush
  │ ├ 1652 jbd2/sda5-8
  │ ├ 1653 ext4-dio-unwrit
  │ ├ 1656 xfs_mru_cache
  │ ├ 1657 xfslogd
  │ ├ 1658 xfsdatad
  │ ├ 1659 xfsconvertd
  │ ├ 1660 xfsbufd/dm-2
  │ ├ 1661 xfsaild/dm-2
  │ ├ 1812 rpciod
  │ ├ 1814 nfsiod
  │ ├ 2024 flush-254:0
  │ ├ 2422 kworker/0:0
  │ ├ 2535 krfcommd
  │ ├ 4502 kauditd
  │ ├ 7574 kworker/u:1
  │ ├ 8230 kworker/0:2
  │ ├ 9933 kworker/1:1
  │ ├ 10154 kworker/u:0
  │ ├ 10393 kworker/1:0
  │ ├ 11193 kworker/u:2
  │ ├ 11750 kworker/1:3
  │ ├ 12483 kworker/1:2
  │ ├ 20849 kworker/0:1
  │ ├ 23167 flush-254:2
  │ ├ 26376 migration/1
  │ ├ 26378 ksoftirqd/1
  │ ├ 26379 watchdog/1
  │ ├ 26746 kvm-pit-wq
  │ ├ 26799 hci0
  │ ├ 26856 rtkit-daemon
  │ └ 31510 pulseaudio
  └─┬»sys_daemon«
    ├ 1 init
    ├ 352 udevd
    ├ 1789 rpcbind
    ├ 1804 rpc.statd
    ├ 1821 rpc.idmapd
    ├ 1939 zfs-fuse
    ├ 2429 atd
    ├ 2451 acpid
    ├ 2457 dbus-daemon
    ├ 2468 acpi_fakekeyd
    ├ 2472 NetworkManager
    ├ 2487 polkitd
    ├ 2492 modem-manager
    ├ 2495 wpa_supplicant
    ├ 2500 gdm3
    ├ 2515 avahi-daemon
    ├ 2516 avahi-daemon
    ├ 2526 bluetoothd
    ├ 2672 cupsd
    ├ 2868 console-kit-dae
    ├ 2963 master
    ├ 3010 smartd
    ├ 3102 sshd
    ├ 3629 upowerd
    ├ 3739 getty
    ├ 3740 getty
    ├ 3741 getty
    ├ 3742 getty
    ├ 3743 getty
    ├ 3744 getty
    ├ 4476 mount.ntfs
    ├ 5347 udisks-daemon
    ├ 5348 udisks-daemon
    ├ 8336 udevd
    ├ 11509 dhclient
    ├ 11586 pickup
    ├ 11587 qmgr
    ├ 15472 chronyd
    ├ 20321 fail2ban-server
    ├ 26743 kvm
    ├ 26747 vhost-26743
    ├ 30823 gdm-simple-slav
    └ 30869 gdm-session-wor

So I restart libvirtd, which will recreate the needed cgroup:

# ulatency
/sys/fs/cgroup/cpu
└─┬»cpu«
  ├ 6 migration/0
  ├ 7 watchdog/0
  ├─┬»sys_essential«
  │ └ 30825 Xorg
  ├─┬»usr_1000«
  │ ├─┬»grp_6622«
  │ │ └ 6622 bash
  │ ├─┬»grp_1745«
  │ │ └ 1745 bash
  │ ├─┬»grp_19263«
  │ │ ├ 11324 ssh
  │ │ └ 19263 bash
  │ ├─┬»grp_24103«
  │ │ ├ 3020 ssh
  │ │ └ 24103 bash
  │ ├─┬»active«
  │ │ ├ 881 rsyslogd
  │ │ ├ 11363 su
  │ │ ├ 11373 bash
  │ │ ├ 11980 bash
  │ │ ├ 12404 bash
  │ │ ├ 13299 sudo
  │ │ ├ 13302 bash
  │ │ ├ 13466 libvirtd
  │ │ ├ 13545 python
  │ │ ├ 19641 bash
  │ │ ├ 31494 python
  │ │ └─┬»libvirt«
  │ │   ├─┬»lxc«
  │ │   └─┬»qemu«
  │ ├─┬»grp_31597«
  │ │ ├ 1530 ssh
  │ │ ├ 31597 bash
  │ │ └─┬»libvirt«
  │ │   └─┬»lxc«
  │ ├─┬»grp_31509«
  │ │ └ 31563 gconf-helper
  │ ├─┬»grp_31511«
  │ │ └ 31511 gnome-screensav
  │ ├─┬»grp_31498«
  │ │ └ 31498 gnome-volume-co
  │ ├─┬»grp_31496«
  │ │ └ 31496 parcellite
  │ ├─┬»grp_31492«
  │ │ └ 31492 tracker-store
  │ ├─┬»grp_31489«
  │ │ └ 31489 nm-applet
  │ ├─┬»grp_31488«
  │ │ └ 31488 update-notifier
  │ ├─┬»grp_31485«
  │ │ └ 31485 tracker-miner-f
  │ ├─┬»grp_31481«
  │ │ └ 31481 evolution-alarm
  │ ├─┬»grp_31469«
  │ │ └ 31469 bluetooth-apple
  │ ├─┬»grp_31474«
  │ │ └ 31474 gdu-notificatio
  │ ├─┬»grp_31472«
  │ │ └ 31472 zeitgeist-datah
  │ ├─┬»grp_31470«
  │ │ └ 31470 python
  │ ├─┬»grp_31466«
  │ │ ├ 31466 bonobo-activati
  │ │ ├ 31532 python
  │ │ ├ 31533 multiload-apple
  │ │ └ 31534 sensors-applet
  │ ├─┬»grp_31453«
  │ │ └ 31453 compiz-ccp
  │ ├─┬»grp_31661«
  │ │ └ 31661 sh
  │ ├─┬»ui«
  │ │ ├ 5148 pan
  │ │ ├ 12339 plugin-containe
  │ │ ├ 22187 evolution
  │ │ ├ 27320 firefox-bin
  │ │ ├ 27356 pcscd
  │ │ ├ 29756 pino
  │ │ ├ 31204 python
  │ │ ├ 31455 compiz
  │ │ ├ 31462 gnome-panel
  │ │ ├ 31464 nautilus
  │ │ └ 31662 compiz-decorato
  │ ├─┬»grp_30980«
  │ │ └ 30980 notification-da
  │ ├─┬»grp_30973«
  │ │ └ 30973 gnome-power-man
  │ ├─┬»grp_30970«
  │ │ └ 30970 gnome-settings-
  │ ├─┬»grp_30968«
  │ │ └ 30968 polkit-gnome-au
  │ ├─┬»grp_30958«
  │ │ └ 30958 dbus-launch
  │ ├─┬»grp_30955«
  │ │ └ 30955 ssh-agent
  │ ├─┬»grp_30959«
  │ │ ├ 3614 gvfsd-http
  │ │ ├ 7528 dconf-service
  │ │ ├ 18499 gvfsd-metadata
  │ │ ├ 30959 dbus-daemon
  │ │ ├ 30964 gconfd-2
  │ │ ├ 31376 gvfsd
  │ │ ├ 31444 gvfs-gdu-volume
  │ │ ├ 31449 gvfs-afc-volume
  │ │ ├ 31452 gvfs-gphoto2-vo
  │ │ ├ 31491 zeitgeist-daemo
  │ │ ├ 31515 geoclue-master
  │ │ ├ 31539 e-calendar-fact
  │ │ ├ 31543 gvfsd-trash
  │ │ ├ 31555 e-addressbook-f
  │ │ ├ 31573 geoclue-manual
  │ │ ├ 31575 geoclue-hostip
  │ │ ├ 31600 cat
  │ │ └ 31655 gvfsd-burn
  │ ├─┬»grp_30917«
  │ │ └ 30917 x-session-manag
  │ ├─┬»grp_2498«
  │ │ └ 30894 gnome-keyring-d
  │ ├─┬»grp_6014«
  │ ├─┬»grp_6013«
  │ ├─┬»grp_6001«
  │ ├─┬»grp_6000«
  │ ├─┬»grp_5997«
  │ ├─┬»grp_12766«
  │ ├─┬»grp_5389«
  │ ├─┬»grp_5380«
  │ ├─┬»grp_5379«
  │ ├─┬»grp_5378«
  │ ├─┬»grp_5376«
  │ ├─┬»grp_5373«
  │ ├─┬»grp_5371«
  │ ├─┬»grp_4566«
  │ ├─┬»grp_4585«
  │ ├─┬»grp_6058«
  │ ├─┬»grp_4576«
  │ ├─┬»grp_5368«
  │ └─┬»grp_4575«
  ├─┬»sys_idle«
  │ └ 2478 preload
  ├─┬»sys_bg«
  │ └ 2601 cron
  ├─┬»usr_65534«
  │ └─┬»grp_2798«
  │   └ 2799 dnsmasq
  ├─┬»rt_tasks«
  │ ├ 2 kthreadd
  │ ├ 3 ksoftirqd/0
  │ ├ 13 cpuset
  │ ├ 14 khelper
  │ ├ 15 netns
  │ ├ 16 sync_supers
  │ ├ 17 bdi-default
  │ ├ 18 kintegrityd
  │ ├ 19 kblockd
  │ ├ 21 khungtaskd
  │ ├ 22 kswapd0
  │ ├ 23 ksmd
  │ ├ 24 khugepaged
  │ ├ 25 fsnotify_mark
  │ ├ 26 crypto
  │ ├ 132 khubd
  │ ├ 135 ata_sff
  │ ├ 172 firewire
  │ ├ 180 scsi_eh_0
  │ ├ 181 scsi_eh_1
  │ ├ 182 scsi_eh_2
  │ ├ 183 scsi_eh_3
  │ ├ 184 scsi_eh_4
  │ ├ 185 scsi_eh_5
  │ ├ 259 kdmflush
  │ ├ 267 kdmflush
  │ ├ 296 jbd2/dm-0-8
  │ ├ 297 ext4-dio-unwrit
  │ ├ 493 kpsmoused
  │ ├ 558 cfg80211
  │ ├ 645 iwlagn
  │ ├ 653 pccardd
  │ ├ 785 hd-audio0
  │ ├ 1234 l2cap
  │ ├ 1357 kvm-irqfd-clean
  │ ├ 1553 kdmflush
  │ ├ 1652 jbd2/sda5-8
  │ ├ 1653 ext4-dio-unwrit
  │ ├ 1656 xfs_mru_cache
  │ ├ 1657 xfslogd
  │ ├ 1658 xfsdatad
  │ ├ 1659 xfsconvertd
  │ ├ 1660 xfsbufd/dm-2
  │ ├ 1661 xfsaild/dm-2
  │ ├ 1812 rpciod
  │ ├ 1814 nfsiod
  │ ├ 2024 flush-254:0
  │ ├ 2422 kworker/0:0
  │ ├ 2535 krfcommd
  │ ├ 4502 kauditd
  │ ├ 7574 kworker/u:1
  │ ├ 8230 kworker/0:2
  │ ├ 9933 kworker/1:1
  │ ├ 10154 kworker/u:0
  │ ├ 10393 kworker/1:0
  │ ├ 11193 kworker/u:2
  │ ├ 13389 kworker/1:2
  │ ├ 20849 kworker/0:1
  │ ├ 23167 flush-254:2
  │ ├ 26376 migration/1
  │ ├ 26378 ksoftirqd/1
  │ ├ 26379 watchdog/1
  │ ├ 26746 kvm-pit-wq
  │ ├ 26799 hci0
  │ ├ 26856 rtkit-daemon
  │ └ 31510 pulseaudio
  └─┬»sys_daemon«
    ├ 1 init
    ├ 352 udevd
    ├ 1789 rpcbind
    ├ 1804 rpc.statd
    ├ 1821 rpc.idmapd
    ├ 1939 zfs-fuse
    ├ 2429 atd
    ├ 2451 acpid
    ├ 2457 dbus-daemon
    ├ 2468 acpi_fakekeyd
    ├ 2472 NetworkManager
    ├ 2487 polkitd
    ├ 2492 modem-manager
    ├ 2495 wpa_supplicant
    ├ 2500 gdm3
    ├ 2515 avahi-daemon
    ├ 2516 avahi-daemon
    ├ 2526 bluetoothd
    ├ 2672 cupsd
    ├ 2868 console-kit-dae
    ├ 2963 master
    ├ 3010 smartd
    ├ 3102 sshd
    ├ 3629 upowerd
    ├ 3739 getty
    ├ 3740 getty
    ├ 3741 getty
    ├ 3742 getty
    ├ 3743 getty
    ├ 3744 getty
    ├ 4476 mount.ntfs
    ├ 5347 udisks-daemon
    ├ 5348 udisks-daemon
    ├ 8336 udevd
    ├ 11509 dhclient
    ├ 11586 pickup
    ├ 11587 qmgr
    ├ 13540 udevd
    ├ 15472 chronyd
    ├ 20321 fail2ban-server
    ├ 26743 kvm
    ├ 26747 vhost-26743
    ├ 30823 gdm-simple-slav
    └ 30869 gdm-session-wor

Now I can again correctly start the VM. After starting the VM with
# virsh start Ubuntu

active looks like this:
  │ ├─┬»active«
  │ │ ├ 881 rsyslogd
  │ │ ├ 11363 su
  │ │ ├ 11373 bash
  │ │ ├ 11980 bash
  │ │ ├ 12404 bash
  │ │ ├ 13299 sudo
  │ │ ├ 13302 bash
  │ │ ├ 13466 libvirtd
  │ │ ├ 13983 python
  │ │ ├ 19641 bash
  │ │ ├ 31494 python
  │ │ └─┬»libvirt«
  │ │   ├─┬»lxc«
  │ │   └─┬»qemu«
  │ │     └─┬»Ubuntu«
  │ │       ├ 13674 kvm
  │ │       ├ 13683 vhost-13674
  │ │       └─┬»vcpu0«


So I guess ulatency should never move the libvirt cgroup.


-- 
Frederik Himpe <[email protected]>




-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to