<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>31906</bug_id>
          
          <creation_ts>2016-03-21 21:22:43 +0300</creation_ts>
          <short_desc>libvirtd не стартует</short_desc>
          <delta_ts>2016-03-24 09:31:38 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>libvirt-daemon</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>31740</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Dmytro">d20052005</reporter>
          <assigned_to name="Alexey Shabalin">shaba</assigned_to>
          <cc>d20052005</cc>
    
    <cc>rx1513</cc>
    
    <cc>shaba</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>155798</commentid>
    <comment_count>0</comment_count>
    <who name="Dmytro">d20052005</who>
    <bug_when>2016-03-21 21:22:43 +0300</bug_when>
    <thetext>Установил altlinux-p7-server-ovz-20160312-i586.iso в Virtualbox. При установке в меню дополнительно выбрал менеджер виртуальных машин KVM. На чистой системе имеем:

# service libvirtd status
libvirtd is dead, but subsystem is locked
[root@AltOVZ ~]# service libvirtd restart
Service libvirtd is not running.            [PASSED]
Starting libvirtd service:                  [ DONE ]
[root@AltOVZ ~]# service libvirtd status
libvirtd is dead, but subsystem is locked
# uname -a
Linux AltOVZ.localdomain 2.6.32-ovz-el-alt139 #1 SMP Tue Dec 29 17:20:23 UTC 201

При этом во время загрузки было:
Starting libvirtd service:                  [ DONE ]
Starting virtlockd service:                 [ DONE ]

Перезагрузка не помогает. Систему устанавливал дважды.
Вот похожий случай: http://www.redhat.com/archives/libvir-list/2009-October/msg00589.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>155804</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Shabalin">shaba</who>
    <bug_when>2016-03-22 00:03:08 +0300</bug_when>
    <thetext>а откуда в p7 взялся virtlockd?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>155805</commentid>
    <comment_count>2</comment_count>
    <who name="Dmytro">d20052005</who>
    <bug_when>2016-03-22 00:25:53 +0300</bug_when>
    <thetext>(В ответ на комментарий №1)
&gt; а откуда в p7 взялся virtlockd?
Это не p7, а Starterkit на Сизифе. Сборка от 12 марта.

Только что проверил, баг воспроизводится и на altlinux-p7-server-20160312-i586.iso

[root@AltServerStart ~]# apt-get install libvirt
.......................
[root@AltServerStart ~]# service libvirtd status
libvirtd is stopped
[root@AltServerStart ~]# service libvirtd start
Starting libvirtd service:                                [ DONE ]
[root@AltServerStart ~]# service libvirtd status
libvirtd is dead, but subsystem is locked
[root@AltServerStart ~]# uname -a
Linux AltServerStart.localdomain 3.14.64-std-def-alt0.M70P.1 #1 SMP Thu Mar 10 13:18:23 UTC 2016 i686 GNU/Linux</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>155808</commentid>
    <comment_count>3</comment_count>
    <who name="Dmytro">d20052005</who>
    <bug_when>2016-03-22 01:45:24 +0300</bug_when>
    <thetext>Нашел общее с багом https://bugzilla.altlinux.org/show_bug.cgi?id=31618

[root@AltOVZ ~]# /usr/sbin/libvirtd -v
2016-03-21 22:38:42.276+0000: 2775: info : libvirt version: 1.0.4, package: alt2
2016-03-21 22:38:42.276+0000: 2775: warning : virDriverLoadModule:72 : Module /usr/lib/libvirt/connection-driver/libvirt_driver_storage.so not accessible
2016-03-21 22:38:42.283+0000: 2775: warning : virDriverLoadModule:72 : Module /usr/lib/libvirt/connection-driver/libvirt_driver_nodedev.so not accessible
2016-03-21 22:38:42.286+0000: 2775: warning : virDriverLoadModule:72 : Module /usr/lib/libvirt/connection-driver/libvirt_driver_secret.so not accessible
2016-03-21 22:38:42.298+0000: 2775: warning : virDriverLoadModule:72 : Module /usr/lib/libvirt/connection-driver/libvirt_driver_interface.so not accessible
2016-03-21 22:38:42.298+0000: 2775: warning : virDriverLoadModule:72 : Module /usr/lib/libvirt/connection-driver/libvirt_driver_xen.so not accessible
2016-03-21 22:38:42.301+0000: 2775: warning : virDriverLoadModule:72 : Module /usr/lib/libvirt/connection-driver/libvirt_driver_qemu.so not accessible
2016-03-21 22:38:42.304+0000: 2775: warning : virDriverLoadModule:72 : Module /usr/lib/libvirt/connection-driver/libvirt_driver_lxc.so not accessible
2016-03-21 22:38:42.374+0000: 2786: error : dnsmasqCapsRefreshInternal:735 : Cannot check dnsmasq binary /usr/sbin/dnsmasq: Нет такого файла или каталога
2016-03-21 22:38:44.534+0000: 2786: error : dnsmasqCapsRefreshInternal:735 : Cannot check dnsmasq binary /usr/sbin/dnsmasq: Нет такого файла или каталога
2016-03-21 22:38:44.648+0000: 2786: error : virCommandWait:2315 : внутренняя ошибка Child process (/usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf) unexpected exit status 1: libvirt:  ошибка : не удалось выполнить /usr/sbin/dnsmasq: Нет такого файла или каталога

2016-03-21 22:38:46.637+0000: 2786: error : virDBusGetSystemBus:86 : внутренняя ошибка Unable to get DBus system bus connection: Failed to connect to socket /var/run/dbus/system_bus_socket: Нет такого файла или каталога
2016-03-21 22:38:46.637+0000: 2786: warning : networkStartup:435 : DBus not available, disabling firewalld support in bridge_driver: внутренняя ошибка Unable to get DBus system bus connection: Failed to connect to socket /var/run/dbus/system_bus_socket: Нет такого файла или каталога
2016-03-21 22:38:46.642+0000: 2786: error : virDBusGetSystemBus:86 : внутренняя ошибка Unable to get DBus system bus connection: Failed to connect to socket /var/run/dbus/system_bus_socket: Нет такого файла или каталога
2016-03-21 22:38:47.566+0000: 2786: error : nwfilterDriverStartup:213 : DBus matches could not be installed. Disabling nwfilter driver
2016-03-21 22:38:47.571+0000: 2786: error : virDBusGetSystemBus:86 : внутренняя ошибка Unable to get DBus system bus connection: Failed to connect to socket /var/run/dbus/system_bus_socket: Нет такого файла или каталога
2016-03-21 22:38:47.572+0000: 2786: error : virStateInitialize:826 : Initialization of NWFilter state driver failed
2016-03-21 22:38:47.575+0000: 2786: error : daemonRunStateInit:880 : Ошибка инициализации состояния драйвера</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>155809</commentid>
    <comment_count>4</comment_count>
    <who name="Dmytro">d20052005</who>
    <bug_when>2016-03-22 02:08:12 +0300</bug_when>
    <thetext>Решение:
[root@AltOVZ ~]# service messagebus start

После этого имеем:

[root@AltOVZ ~]# /usr/sbin/libvirtd -v
2016-03-21 23:01:03.768+0000: 2963: info : libvirt version: 1.0.4, package: alt2
2016-03-21 23:01:03.768+0000: 2963: warning : virDriverLoadModule:72 : Module /usr/lib/libvirt/connection-driver/libvirt_driver_storage.so not accessible
2016-03-21 23:01:03.773+0000: 2963: warning : virDriverLoadModule:72 : Module /usr/lib/libvirt/connection-driver/libvirt_driver_nodedev.so not accessible
2016-03-21 23:01:03.779+0000: 2963: warning : virDriverLoadModule:72 : Module /usr/lib/libvirt/connection-driver/libvirt_driver_secret.so not accessible
2016-03-21 23:01:03.795+0000: 2963: warning : virDriverLoadModule:72 : Module /usr/lib/libvirt/connection-driver/libvirt_driver_interface.so not accessible
2016-03-21 23:01:03.800+0000: 2963: warning : virDriverLoadModule:72 : Module /usr/lib/libvirt/connection-driver/libvirt_driver_xen.so not accessible
2016-03-21 23:01:03.800+0000: 2963: warning : virDriverLoadModule:72 : Module /usr/lib/libvirt/connection-driver/libvirt_driver_qemu.so not accessible
2016-03-21 23:01:03.813+0000: 2963: warning : virDriverLoadModule:72 : Module /usr/lib/libvirt/connection-driver/libvirt_driver_lxc.so not accessible
2016-03-21 23:01:03.891+0000: 2974: error : dnsmasqCapsRefreshInternal:735 : Cannot check dnsmasq binary /usr/sbin/dnsmasq: Нет такого файла или каталога
2016-03-21 23:01:08.029+0000: 2974: error : dnsmasqCapsRefreshInternal:735 : Cannot check dnsmasq binary /usr/sbin/dnsmasq: Нет такого файла или каталога
2016-03-21 23:01:08.145+0000: 2974: error : virCommandWait:2315 : внутренняя ошибка Child process (/usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf) unexpected exit status 1: libvirt:  ошибка : не удалось выполнить /usr/sbin/dnsmasq: Нет такого файла или каталога

2016-03-21 23:02:12.421+0000: 2967: error : remoteDispatchAuthPolkit:2857 : Policy kit denied action org.libvirt.unix.manage from pid 3028, uid 500: exit status 1
2016-03-21 23:02:12.427+0000: 2967: error : remoteDispatchAuthPolkit:2885 : сбой аутентификации: polkit: libvirt:  ошибка : не удалось выполнить /usr/bin/pkcheck: Нет такого файла или каталога

2016-03-21 23:02:12.510+0000: 2963: error : virNetSocketReadWire:1370 : End of file while reading data: Ошибка ввода/вывода

Но служба, при этом, запускается и работает.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>155814</commentid>
    <comment_count>5</comment_count>
    <who name="solo">solo</who>
    <bug_when>2016-03-22 11:20:13 +0300</bug_when>
    <thetext>(В ответ на комментарий №3)
&gt; Нашел общее с багом https://bugzilla.altlinux.org/show_bug.cgi?id=31618
&gt; 
&gt; [root@AltOVZ ~]# /usr/sbin/libvirtd -v
...
&gt; 2016-03-21 22:38:46.637+0000: 2786: error : virDBusGetSystemBus:86 : внутренняя
&gt; ошибка Unable to get DBus system bus connection: Failed to connect to socket
&gt; /var/run/dbus/system_bus_socket: Нет такого файла или каталога
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
&gt; 2016-03-21 22:38:46.637+0000: 2786: warning : networkStartup:435 : DBus not
...

У меня такое наблюдалось при обновлении с 5.1 до p7 из-за отсутствия /var/run/dbus (у меня /var/run был переведён на tmpfs, см. https://lists.altlinux.org/pipermail/sysadmins/2016-January/037392.html, лечил в рамках https://bugzilla.altlinux.org/show_bug.cgi?id=31740). Но не факт что у вас тоже самое: при отсутствии /var/run/dbus messagebus не стартует, а у вас -- стартовал.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>155823</commentid>
    <comment_count>6</comment_count>
    <who name="Alexey Shabalin">shaba</who>
    <bug_when>2016-03-22 17:52:55 +0300</bug_when>
    <thetext>из libvirtd  я стартовать dbus не буду.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>155837</commentid>
    <comment_count>7</comment_count>
    <who name="Dmytro">d20052005</who>
    <bug_when>2016-03-23 00:59:41 +0300</bug_when>
    <thetext>(В ответ на комментарий №5)
&gt; при отсутствии /var/run/dbus messagebus не стартует, а у вас --
&gt; стартовал.

Не стартовал. Вернее стартовал и умирал. Получалось 
[root@AltOVZ ~]# service libvirtd status
libvirtd is dead, but subsystem is locked</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>155839</commentid>
    <comment_count>8</comment_count>
    <who name="solo">solo</who>
    <bug_when>2016-03-23 11:27:02 +0300</bug_when>
    <thetext>Тогда это явный дубль https://bugzilla.altlinux.org/show_bug.cgi?id=31740 =&gt; надо править dbus.

PS: Меняю статус на duplicate.

*** This bug has been marked as a duplicate of bug 31740 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>155848</commentid>
    <comment_count>9</comment_count>
    <who name="solo">solo</who>
    <bug_when>2016-03-23 21:13:53 +0300</bug_when>
    <thetext>На t7 ситуацию можно исправить, установив sysvinit-tmpfiles (есть в t7) и dbus-1.10.6-alt2 из http://git.altlinux.org/tasks/161916 (см. https://bugzilla.altlinux.org/show_bug.cgi?id=31740#c7).

PS: Для p7 у меня решения нет, т. к. там нельзя поставить systemd-tmpfiles без systemd.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>155849</commentid>
    <comment_count>10</comment_count>
    <who name="solo">solo</who>
    <bug_when>2016-03-23 21:18:57 +0300</bug_when>
    <thetext>(В ответ на комментарий №9)
&gt; На t7 ситуацию можно исправить, установив sysvinit-tmpfiles (есть в t7) и
&gt; dbus-1.10.6-alt2 из http://git.altlinux.org/tasks/161916 (см.
  ^^^^^^^^^^^^^^^^

Читать dbus-1.10.6-alt3.

&gt; https://bugzilla.altlinux.org/show_bug.cgi?id=31740#c7).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>155850</commentid>
    <comment_count>11</comment_count>
    <who name="solo">solo</who>
    <bug_when>2016-03-23 21:43:41 +0300</bug_when>
    <thetext>(В ответ на комментарий №10)
&gt; (В ответ на комментарий №9)
&gt; &gt; На t7 ситуацию можно исправить, установив sysvinit-tmpfiles (есть в t7) и
&gt; &gt; dbus-1.10.6-alt2 из http://git.altlinux.org/tasks/161916 (см.
&gt;   ^^^^^^^^^^^^^^^^
&gt; 
&gt; Читать dbus-1.10.6-alt3.

  Читать всё таки dbus-1.10.6-alt2... Приношу извинения за невнимательность (не туда посмотрел).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>155851</commentid>
    <comment_count>12</comment_count>
    <who name="Dmytro">d20052005</who>
    <bug_when>2016-03-24 09:31:38 +0300</bug_when>
    <thetext>(В ответ на комментарий №7)
&gt; (В ответ на комментарий №5)
&gt; &gt; при отсутствии /var/run/dbus messagebus не стартует, а у вас --
&gt; &gt; стартовал.
&gt; 
&gt; Не стартовал. Вернее стартовал и умирал. Получалось 
&gt; [root@AltOVZ ~]# service libvirtd status
&gt; libvirtd is dead, but subsystem is locked
Наверное я Вас неверно понял и ввел в заблуждение.Наличие/отсутствие /var/run/dbus я не проверял, если Вы это имели ввиду. messagebus нормально стартовал. Без него запущенного стартовал и умирал libvirtd.
Если теперь я Вас правильно понял, то этот багрепорт является дублем, но не 31740, а https://bugzilla.altlinux.org/show_bug.cgi?id=31618
Прошу прощения, если ввел в заблуждение.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>