Advertisement
Guest User

Untitled

a guest
Jul 14th, 2023
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.29 KB | None | 0 0
  1. At startup, all is fine :
  2. $ sudo virsh net-list --all
  3. Nom État Démarrage automatique Persistant
  4. -------------------------------------------------------
  5. default actif oui oui
  6.  
  7.  
  8.  
  9. $ virt-manager --debug
  10. [ven., 14 juil. 2023 18:06:56 virt-manager 4946] DEBUG (cli:204) Version 4.1.0 launched with command line: /usr/bin/virt-manager --debug
  11. [ven., 14 juil. 2023 18:06:56 virt-manager 4946] DEBUG (virtmanager:167) virt-manager version: 4.1.0
  12. [ven., 14 juil. 2023 18:06:56 virt-manager 4946] DEBUG (virtmanager:168) virtManager import: /usr/share/virt-manager/virtManager
  13. [ven., 14 juil. 2023 18:06:56 virt-manager 4946] DEBUG (virtmanager:205) PyGObject version: 3.42.2
  14. [ven., 14 juil. 2023 18:06:56 virt-manager 4946] DEBUG (virtmanager:209) GTK version: 3.24.37
  15. [ven., 14 juil. 2023 18:06:56 virt-manager 4946] DEBUG (systray:84) Imported AppIndicator3=<IntrospectionModule 'AyatanaAppIndicator3' from '/usr/lib/x86_64-linux-gnu/girepository-1.0/AyatanaAppIndicator3-0.1.typelib'>
  16. [ven., 14 juil. 2023 18:06:56 virt-manager 4946] DEBUG (systray:90) Using AppIndicator3 for systray
  17. [ven., 14 juil. 2023 18:06:56 virt-manager 4946] DEBUG (systray:476) Showing systray: False
  18. [ven., 14 juil. 2023 18:06:56 virt-manager 4946] DEBUG (inspection:206) python guestfs is not installed
  19. [ven., 14 juil. 2023 18:06:56 virt-manager 4946] DEBUG (engine:113) Loading stored URIs:
  20. qemu:///system
  21. [ven., 14 juil. 2023 18:06:56 virt-manager 4946] DEBUG (engine:461) processing cli command uri= show_window=manager domain=
  22. [ven., 14 juil. 2023 18:06:56 virt-manager 4946] DEBUG (engine:464) No cli action requested, launching default window
  23. [ven., 14 juil. 2023 18:06:56 virt-manager 4946] DEBUG (manager:185) Showing manager
  24. [ven., 14 juil. 2023 18:06:56 virt-manager 4946] DEBUG (engine:316) window counter incremented to 1
  25. [ven., 14 juil. 2023 18:06:56 virt-manager 4946] DEBUG (engine:211) Initial gtkapplication activated
  26. [ven., 14 juil. 2023 18:06:56 virt-manager 4946] DEBUG (connection:482) conn=qemu:///system changed to state=Connexion
  27. [ven., 14 juil. 2023 18:06:56 virt-manager 4946] DEBUG (connection:903) Scheduling background open thread for qemu:///system
  28. [ven., 14 juil. 2023 18:06:57 virt-manager 4946] DEBUG (connection:128) libvirt URI versions library=9.5.0 driver=9.5.0 hypervisor=8.0.2
  29. [ven., 14 juil. 2023 18:06:57 virt-manager 4946] DEBUG (connection:109) Fetched capabilities for qemu:///system: <capabilities>
  30. ...
  31. </capabilities>
  32.  
  33. [ven., 14 juil. 2023 18:06:57 virt-manager 4946] DEBUG (connection:739) Using domain events
  34. [ven., 14 juil. 2023 18:06:57 virt-manager 4946] DEBUG (connection:778) Using network events
  35. [ven., 14 juil. 2023 18:06:57 virt-manager 4946] DEBUG (connection:797) Using storage pool events
  36. [ven., 14 juil. 2023 18:06:57 virt-manager 4946] DEBUG (connection:822) Using node device events
  37. [ven., 14 juil. 2023 18:06:57 virt-manager 4946] DEBUG (connection:1072) network=default status=Actif added
  38. [ven., 14 juil. 2023 18:06:57 virt-manager 4946] DEBUG (connection:691) storage pool refresh event: pool=pool
  39. [ven., 14 juil. 2023 18:06:57 virt-manager 4946] DEBUG (connection:1072) domain=win10 status=Éteinte added
  40. [ven., 14 juil. 2023 18:06:57 virt-manager 4946] DEBUG (connection:691) storage pool refresh event: pool=default
  41. [ven., 14 juil. 2023 18:06:57 virt-manager 4946] DEBUG (connection:691) storage pool refresh event: pool=images-ISO
  42. [ven., 14 juil. 2023 18:06:57 virt-manager 4946] DEBUG (connection:1072) domain=win8.1 status=Éteinte added
  43. [ven., 14 juil. 2023 18:06:57 virt-manager 4946] DEBUG (connection:1072) domain=debian11 status=Éteinte added
  44. [ven., 14 juil. 2023 18:06:57 virt-manager 4946] DEBUG (connection:1072) pool=pool status=Actif added
  45. [ven., 14 juil. 2023 18:06:57 virt-manager 4946] DEBUG (connection:1072) domain=debian12 status=Éteinte added
  46. [ven., 14 juil. 2023 18:06:57 virt-manager 4946] DEBUG (connection:1072) pool=default status=Actif added
  47. [ven., 14 juil. 2023 18:06:57 virt-manager 4946] DEBUG (connection:1072) pool=images-ISO status=Actif added
  48. [ven., 14 juil. 2023 18:06:57 virt-manager 4946] DEBUG (storage:137) Found default pool name=default target=/var/lib/libvirt/images
  49. [ven., 14 juil. 2023 18:06:57 virt-manager 4946] DEBUG (connection:482) conn=qemu:///system changed to state=Actif
  50.  
  51.  
  52. Closing virt-manager :
  53.  
  54. ^C[ven., 14 juil. 2023 18:07:04 virt-manager 4946] DEBUG (virtmanager:261) Received KeyboardInterrupt. Exiting application.
  55. [ven., 14 juil. 2023 18:07:04 virt-manager 4946] DEBUG (connection:838) conn.close() uri=qemu:///system
  56. [ven., 14 juil. 2023 18:07:04 virt-manager 4946] DEBUG (connection:482) conn=qemu:///system changed to state=Déconnecté
  57. [ven., 14 juil. 2023 18:07:04 virt-manager 4946] DEBUG (manager:196) Closing manager
  58. [ven., 14 juil. 2023 18:07:04 virt-manager 4946] DEBUG (engine:323) window counter decremented to 0
  59. [ven., 14 juil. 2023 18:07:04 virt-manager 4946] DEBUG (engine:369) Exiting app normally.
  60.  
  61.  
  62. System is up and running... 5 minutes later :
  63. $ sudo virsh net-list --all
  64. ^C
  65. $
  66. $ sudo journalctl -b 0 |grep libvirt
  67. juil. 14 18:05:14 Ryzen7-5700G kernel: audit: type=1400 audit(1689350714.153:7): apparmor="STATUS" operation="profile_load" profile="unconfined" name="libvirtd" pid=874 comm="apparmor_parser"
  68. juil. 14 18:05:14 Ryzen7-5700G kernel: audit: type=1400 audit(1689350714.153:8): apparmor="STATUS" operation="profile_load" profile="unconfined" name="libvirtd//qemu_bridge_helper" pid=874 comm="apparmor_parser"
  69. juil. 14 18:05:14 Ryzen7-5700G systemd[1]: Listening on libvirtd.socket - Libvirt local socket.
  70. juil. 14 18:05:14 Ryzen7-5700G systemd[1]: Listening on libvirtd-admin.socket - Libvirt admin socket.
  71. juil. 14 18:05:14 Ryzen7-5700G systemd[1]: Listening on libvirtd-ro.socket - Libvirt local read-only socket.
  72. juil. 14 18:05:15 Ryzen7-5700G systemd[1]: Starting libvirt-guests.service - Suspend/Resume Running libvirt Guests...
  73. juil. 14 18:05:15 Ryzen7-5700G systemd[1]: Finished libvirt-guests.service - Suspend/Resume Running libvirt Guests.
  74. juil. 14 18:05:21 Ryzen7-5700G systemd[1]: Starting libvirtd.service - Virtualization daemon...
  75. juil. 14 18:05:21 Ryzen7-5700G systemd[1]: Started libvirtd.service - Virtualization daemon.
  76. juil. 14 18:05:21 Ryzen7-5700G dnsmasq[1654]: read /var/lib/libvirt/dnsmasq/default.addnhosts - 0 names
  77. juil. 14 18:05:21 Ryzen7-5700G dnsmasq-dhcp[1654]: read /var/lib/libvirt/dnsmasq/default.hostsfile
  78.  
  79.  
  80.  
  81. $ sudo systemctl status libvirtd
  82. ● libvirtd.service - Virtualization daemon
  83. Loaded: loaded (/lib/systemd/system/libvirtd.service; enabled; preset: enabled)
  84. Active: active (running) since Fri 2023-07-14 18:05:21 CEST; 7min ago
  85. TriggeredBy: ● libvirtd-ro.socket
  86. ● libvirtd-admin.socket
  87. ● libvirtd.socket
  88. Docs: man:libvirtd(8)
  89. https://libvirt.org
  90. Process: 1237 ExecStart=/usr/sbin/libvirtd $LIBVIRTD_ARGS (code=exited, status=0/SUCCESS)
  91. Main PID: 1237 (code=exited, status=0/SUCCESS)
  92. Tasks: 2 (limit: 32768)
  93. Memory: 23.3M
  94. CPU: 340ms
  95. CGroup: /system.slice/libvirtd.service
  96. ├─1654 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/lib/>
  97. └─1655 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/lib/>
  98.  
  99. juil. 14 18:05:21 Ryzen7-5700G systemd[1]: Started libvirtd.service - Virtualization daemon.
  100. juil. 14 18:05:21 Ryzen7-5700G dnsmasq[1654]: started, version 2.89 cachesize 150
  101. juil. 14 18:05:21 Ryzen7-5700G dnsmasq[1654]: compile time options: IPv6 GNU-getopt DBus no-UBus i18n IDN2 DHCP DHCPv6 no-Lua >
  102. juil. 14 18:05:21 Ryzen7-5700G dnsmasq-dhcp[1654]: DHCP, IP range 192.168.122.2 -- 192.168.122.254, lease time 1h
  103. juil. 14 18:05:21 Ryzen7-5700G dnsmasq-dhcp[1654]: DHCP, sockets bound exclusively to interface virbr0
  104. juil. 14 18:05:21 Ryzen7-5700G dnsmasq[1654]: reading /etc/resolv.conf
  105. juil. 14 18:05:21 Ryzen7-5700G dnsmasq[1654]: using nameserver 192.168.1.18#53
  106. juil. 14 18:05:21 Ryzen7-5700G dnsmasq[1654]: read /etc/hosts - 7 names
  107. juil. 14 18:05:21 Ryzen7-5700G dnsmasq[1654]: read /var/lib/libvirt/dnsmasq/default.addnhosts - 0 names
  108. juil. 14 18:05:21 Ryzen7-5700G dnsmasq-dhcp[1654]: read /var/lib/libvirt/dnsmasq/default.hostsfile
  109.  
  110.  
  111. I have to restart libvirtd service :
  112.  
  113. $ sudo systemctl restart libvirtd
  114. $ sudo systemctl status libvirtd
  115. ● libvirtd.service - Virtualization daemon
  116. Loaded: loaded (/lib/systemd/system/libvirtd.service; enabled; preset: enabled)
  117. Active: active (running) since Fri 2023-07-14 18:13:59 CEST; 2s ago
  118. TriggeredBy: ● libvirtd-ro.socket
  119. ● libvirtd-admin.socket
  120. ● libvirtd.socket
  121. Docs: man:libvirtd(8)
  122. https://libvirt.org
  123. Main PID: 5223 (libvirtd)
  124. Tasks: 21 (limit: 32768)
  125. Memory: 40.1M
  126. CPU: 246ms
  127. CGroup: /system.slice/libvirtd.service
  128. ├─1654 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/lib/>
  129. ├─1655 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/lib/>
  130. └─5223 /usr/sbin/libvirtd --timeout 120
  131.  
  132. juil. 14 18:13:59 Ryzen7-5700G systemd[1]: Starting libvirtd.service - Virtualization daemon...
  133. juil. 14 18:13:59 Ryzen7-5700G systemd[1]: Started libvirtd.service - Virtualization daemon.
  134. juil. 14 18:13:59 Ryzen7-5700G dnsmasq[1654]: read /etc/hosts - 7 names
  135. juil. 14 18:13:59 Ryzen7-5700G dnsmasq[1654]: read /var/lib/libvirt/dnsmasq/default.addnhosts - 0 names
  136. juil. 14 18:13:59 Ryzen7-5700G dnsmasq-dhcp[1654]: read /var/lib/libvirt/dnsmasq/default.hostsfile
  137. juil. 14 18:13:59 Ryzen7-5700G libvirtd[5223]: libvirt version: 9.5.0, package: 9.5.0-1 (Debian)
  138. juil. 14 18:13:59 Ryzen7-5700G libvirtd[5223]: hostname: Ryzen7-5700G
  139. juil. 14 18:13:59 Ryzen7-5700G libvirtd[5223]: erreur interne : Impossible de trouver l'heure de début pour le pid 5112
  140.  
  141.  
  142. Virtual network is back and running, as well as virt-manger and VMs :
  143.  
  144. $ sudo virsh net-list --all
  145. Nom État Démarrage automatique Persistant
  146. -------------------------------------------------------
  147. default actif oui oui
  148.  
  149.  
  150. 5 minutes, later, issue is back. Nothing new in logs, or dmesg, or libvirtd service.
  151.  
  152.  
  153.  
  154. $ virt-host-validate
  155. QEMU : Vérification pour la virtualisation du matériel  : PASS
  156. QEMU : Vérification if device /dev/kvm exists  : PASS
  157. QEMU : Vérification if device /dev/kvm is accessible  : PASS
  158. QEMU : Vérification if device /dev/vhost-net exists  : PASS
  159. QEMU : Vérification if device /dev/net/tun exists  : PASS
  160. QEMU : Vérification for cgroup 'cpu' controller support  : PASS
  161. QEMU : Vérification for cgroup 'cpuacct' controller support  : PASS
  162. QEMU : Vérification for cgroup 'cpuset' controller support  : PASS
  163. QEMU : Vérification for cgroup 'memory' controller support  : PASS
  164. QEMU : Vérification for cgroup 'devices' controller support  : WARN (Enable 'devices' in kernel Kconfig file or mount/enable cgroup controller in your system)
  165. QEMU : Vérification for cgroup 'blkio' controller support  : PASS
  166. QEMU : Vérification pour l'affectation des périphériques support de l'IOMMU  : PASS
  167. QEMU : Vérification si IOMMU est activé par le noyau  : PASS
  168. QEMU : Vérification pour une prise en charge sécurisée des invités  : WARN (Unknown if this platform has Secure Guest support)
  169. LXC : Vérification pour Linux >= 2.6.26  : PASS
  170. LXC : Vérification for namespace ipc  : PASS
  171. LXC : Vérification for namespace mnt  : PASS
  172. LXC : Vérification for namespace pid  : PASS
  173. LXC : Vérification for namespace uts  : PASS
  174. LXC : Vérification for namespace net  : PASS
  175. LXC : Vérification for namespace user  : PASS
  176. LXC : Vérification for cgroup 'cpu' controller support  : PASS
  177. LXC : Vérification for cgroup 'cpuacct' controller support  : PASS
  178. LXC : Vérification for cgroup 'cpuset' controller support  : PASS
  179. LXC : Vérification for cgroup 'memory' controller support  : PASS
  180. LXC : Vérification for cgroup 'devices' controller support  : ÉCHEC (Enable 'devices' in kernel Kconfig file or mount/enable cgroup controller in your system)
  181. LXC : Vérification for cgroup 'freezer' controller support  : ÉCHEC (Enable 'freezer' in kernel Kconfig file or mount/enable cgroup controller in your system)
  182. LXC : Vérification for cgroup 'blkio' controller support  : PASS
  183. LXC : Vérification if device /sys/fs/fuse/connections exists  : PASS
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement