Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved]Libvirtd crashed on start - 2019
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
cord
Guru
Guru


Joined: 28 Apr 2007
Posts: 344

PostPosted: Sat Feb 23, 2019 9:31 pm    Post subject: [solved]Libvirtd crashed on start - 2019 Reply with quote

I have the same.
Code:
gentoo / # /etc/init.d/libvirtd start
 * Starting libvirtd ...                                                                                                                                                                [ ok ]
gentoo / # /etc/init.d/libvirtd status
 * status: crashed
gentoo / #

The virt-host-validate command is the same for both root and regular user:
Code:
gentoo / # virt-host-validate
  QEMU: Checking for hardware virtualization                                 : PASS
  QEMU: Checking if device /dev/kvm exists                                   : PASS
  QEMU: Checking if device /dev/kvm is accessible                            : PASS
  QEMU: Checking if device /dev/vhost-net exists                             : PASS
  QEMU: Checking if device /dev/net/tun exists                               : PASS
  QEMU: Checking for cgroup 'cpu' controller support                         : PASS
  QEMU: Checking for cgroup 'cpuacct' controller support                     : PASS
  QEMU: Checking for cgroup 'cpuset' controller support                      : PASS
  QEMU: Checking for cgroup 'memory' controller support                      : PASS
  QEMU: Checking for cgroup 'devices' controller support                     : PASS
  QEMU: Checking for cgroup 'blkio' controller support                       : PASS
  QEMU: Checking for device assignment IOMMU support                         : PASS
  QEMU: Checking if IOMMU is enabled by kernel                               : PASS
gentoo / #

User is in 'libvirt' and 'kvm' groups.

Split from a 2013 thread of the same name. -- NeddySeagoon


Last edited by cord on Sun Feb 24, 2019 7:34 am; edited 1 time in total
Back to top
View user's profile Send private message
cord
Guru
Guru


Joined: 28 Apr 2007
Posts: 344

PostPosted: Sun Feb 24, 2019 7:34 am    Post subject: Reply with quote

Solved. There was syntax error in /etc/libvirt/qemu.conf (comments inside nvram firmware string).
Back to top
View user's profile Send private message
papu
l33t
l33t


Joined: 25 Jan 2008
Posts: 709
Location: Sota algun pi o alzina...

PostPosted: Fri Apr 10, 2020 9:47 pm    Post subject: Reply with quote

hello my friend, i just installed the virt-manager for testting , but i have a problem with daemons that not starts:

i have used this doc https://wiki.gentoo.org/wiki/QEMU#virt-manager

Code:
 /etc/init.d/libvirtd start
 * Starting virtlogd ...
 * start-stop-daemon: failed to start `/usr/sbin/virtlogd'
 * Failed to start virtlogd                                                                      [ !! ]
 * ERROR: virtlogd failed to start
 * ERROR: cannot start libvirtd as virtlogd would not start


Code:
~ $ virt-host-validate
  QEMU: Checking for hardware virtualization                                 : PASS
  QEMU: Checking if device /dev/kvm exists                                   : PASS
  QEMU: Checking if device /dev/kvm is accessible                            : PASS
  QEMU: Checking if device /dev/vhost-net exists                             : PASS
  QEMU: Checking if device /dev/net/tun exists                               : PASS
  QEMU: Checking for cgroup 'cpu' controller support                         : PASS
  QEMU: Checking for cgroup 'cpuacct' controller support                     : PASS
  QEMU: Checking for cgroup 'cpuset' controller support                      : PASS
  QEMU: Checking for cgroup 'memory' controller support                      : PASS
  QEMU: Checking for cgroup 'devices' controller support                     : PASS
  QEMU: Checking for cgroup 'blkio' controller support                       : PASS
  QEMU: Checking for device assignment IOMMU support                         : PASS
  QEMU: Checking if IOMMU is enabled by kernel                               : PASS


my eselect rc list:
Code:
eselect rc list
Available init scripts
  agetty
  alsasound                 boot
  binfmt                    boot
  bootlogd
  bootmisc                  boot
  busybox-ntpd
  busybox-watchdog
  cgroups                   sysinit
  consolefont               sysinit
  cups-browsed
  cupsd                     default
  dbus                      default
  deluged
  devfs                     sysinit
  device-mapper
  dmcrypt
  dmesg                     sysinit
  dmeventd
  dnsmasq
  ebtables
  elogind                   boot
  fancontrol
  fcron                     default
  fsck                      boot
  fuse
  git-daemon
  gpm
  hdparm
  hostname                  boot
  hwclock                   boot
  ip6tables
  iptables
  keymaps                   boot
  killprocs                 shutdown
  kmod-static-nodes         sysinit
  libvirtd
  libvirt-guests            default
  lm_sensors                default
  local                     default
  localmount                boot
  loopback                  boot
  lvm
  lvmetad
  lvm-monitoring
  lvmpolld
  modules                   boot
  mount-ro                  shutdown
  mtab                      boot
  net.enp7s0                default
  net.lo
  netmount                  default
  net-online
  nullmailer
  numlock
  opentmpfiles-dev          sysinit
  opentmpfiles-setup        boot
  osclock
  pciparm
  procfs                    boot
  pwcheck
  pydoc-2.7
  pydoc-3.6
  pydoc-3.7
  pydoc-3.8
  radvd
  rdate
  root                      boot
  rsyncd
  runsvdir
  s6-svscan
  saslauthd
  savecache                 shutdown
  save-keymaps              boot
  save-termencoding         boot
  smartd
  sshd                      default
  svnserve
  swap                      boot
  swclock
  sysctl                    boot
  sysfs                     sysinit
  syslog-ng                 default
  termencoding              boot
  tor                       default
  twistd
  udev                      sysinit
  udev-settle
  udev-trigger              sysinit
  urandom                   boot
  virtlockd
  virtlogd
  xdm                       default
  xdm-setup


libvirt uses:
Code:
emerge -p libvirt

Calculating dependencies                              ... done!
[ebuild   R    ] app-emulation/libvirt-6.2.0-r1:0/6.2.0::gentoo  USE="-apparmor -audit caps dbus -dtrace -firewalld fuse -glusterfs -iscsi -iscsi-direct -libssh libvirtd -lvm -lxc macvtap -nfs nls -numa (-openvz) -parted -pcap (policykit) qemu -rbd -sasl (-selinux) udev vepa virt-network -virtualbox -wireshark-plugins -xen -zfs" 0 KiB


can you bring me this configs to compare them?

thanks so much :wink:
_________________
"~amd64" --cpu 7700 non-x --DDR5 2x16GB 6000MHz --gpu RX 470
Back to top
View user's profile Send private message
papu
l33t
l33t


Joined: 25 Jan 2008
Posts: 709
Location: Sota algun pi o alzina...

PostPosted: Sat Apr 11, 2020 8:53 am    Post subject: Reply with quote

with todays update to app-emulation/libvirt-6.2.0-r2

now it works ,I would like anyway your emerge -p libvirt and eselect rc list
i think it's necessary to add libvirtd servide to default

thanks so much
_________________
"~amd64" --cpu 7700 non-x --DDR5 2x16GB 6000MHz --gpu RX 470
Back to top
View user's profile Send private message
cord
Guru
Guru


Joined: 28 Apr 2007
Posts: 344

PostPosted: Sat Apr 11, 2020 6:53 pm    Post subject: Reply with quote

papu wrote:
with todays update to app-emulation/libvirt-6.2.0-r2

now it works ,I would like anyway your emerge -p libvirt and eselect rc list
i think it's necessary to add libvirtd servide to default

thanks so much

Here you are:
Code:
# emerge -pv libvirt

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] app-emulation/libvirt-6.0.0-r3:0/6.0.0::gentoo  USE="caps dbus libvirtd macvtap nls (policykit) qemu udev vepa virt-network -apparmor -audit -dtrace -firewalld -fuse -glusterfs -iscsi -iscsi-direct -libssh -lvm -lxc -nfs -numa (-openvz) -parted -pcap -phyp -rbd -sasl (-selinux) -virtualbox -wireshark-plugins -xen -zfs" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB
localhost / # eselect rc list
Available init scripts
  agetty
  alsasound
  binfmt                    boot
  bluetooth                 default
  bootlogd
  bootmisc                  boot
  busybox-ntpd
  busybox-watchdog
  cgroups                   sysinit
  consolefont               default
  consolekit                default
  cronie                    default
  cups-browsed
  cupsd
  dbus
  devfs                     sysinit
  device-mapper
  dmcrypt
  dmesg                     sysinit
  dmeventd
  dnsmasq                   default
  ebtables
  fsck                      boot
  fuse
  gpm                       default
  hostname                  boot
  hwclock                   boot
  ip6tables
  iptables
  keymaps                   boot
  killprocs                 shutdown
  kmod-static-nodes         sysinit
  libvirtd                  default
  libvirt-guests
  local                     default
  localmount                boot
  loopback                  boot
  lvm
  lvmetad
  lvm-monitoring
  lvmpolld
  metalog                   default
  modules                   boot
  mount-ro                  shutdown
  mtab                      boot
  net.enp2s0                default
  net.enp4s0u1
  net.lo
  netmount                  default
  net-online
  net.wlp3s0
  nftables                  default
  ntp-client
  ntpd                      default
  numlock
  opentmpfiles-dev          sysinit
  opentmpfiles-setup        boot
  osclock
  pciparm
  procfs                    boot
  proftpd                   default
  pwcheck
  pydoc-2.7
  pydoc-3.6
  pydoc-3.7
  radvd
  root                      boot
  rsyncd                    default
  runsvdir
  s6-svscan
  saslauthd
  savecache                 shutdown
  save-keymaps              boot
  save-termencoding         boot
  sntp
  sshd
  swap                      boot
  swclock
  sysctl                    boot
  sysfs                     sysinit
  termencoding              boot
  tor                       default
  udev                      sysinit
  udev-settle
  udev-trigger              sysinit
  urandom                   boot
  virtlockd
  virtlogd
  wpa_supplicant
  xdm                       default
  xdm-setup
localhost / #
Back to top
View user's profile Send private message
papu
l33t
l33t


Joined: 25 Jan 2008
Posts: 709
Location: Sota algun pi o alzina...

PostPosted: Sun Apr 12, 2020 1:44 pm    Post subject: Reply with quote

ok thanks,

do you add libvirtd service to default manually?
in my case libvirt-guests was added automatically to default but not libvirtd
_________________
"~amd64" --cpu 7700 non-x --DDR5 2x16GB 6000MHz --gpu RX 470
Back to top
View user's profile Send private message
cord
Guru
Guru


Joined: 28 Apr 2007
Posts: 344

PostPosted: Sun Apr 12, 2020 8:25 pm    Post subject: Reply with quote

papu wrote:
do you add libvirtd service to default manually?

yep
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments 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