libvirtd daemon missing in LFS

Hi, I am Sai Kiran. I am trying to build libvirt from source on my Linux From Scratch(LFS) system. I have successfully installed libvirt and its dependencies. When I start virt-manager, there is a prompt in GUI saying that "libvirtd service is not installed". I also do not see any libvirtd in my system. I would like to install the libvirtd service(build from source). But I am not able to find the source code for it and also, I am not sure about the build process for the daemon. Could you please help me out here. Thanks in advance for your time and support. -- Regards, Sai Kiran.

On Wed, Feb 09, 2022 at 16:34:43 +0530, Sai Kiran Kumar Reddy wrote:
Hi,
I am Sai Kiran. I am trying to build libvirt from source on my Linux From Scratch(LFS) system. I have successfully installed libvirt and its dependencies. When I start virt-manager, there is a prompt in GUI saying that "libvirtd service is not installed". I also do not see any libvirtd in my system. I would like to install the libvirtd service(build from source). But I am not able to find the source code for it and also, I am not sure about the build process for the daemon. Could you please help me out here.
The libvirt daemon is integral part of the libvirt project so the sources you used to build the library also contain the daemon sources. In your instance it's most likely that you are missing a dependancy and libvirtd was not auto-enabled. To force-enable it configure libvirt with '-Ddriver_libvirtd=enabled' which should report what you are missing. Since you are using LFS you need to ensure that you have all deps yourself.

Hi, Thanks for your inputs. I have compiled with -Ddriver_libvirtd=enabled option. As you have mentioned, it shows missing dependencies. Let me install them and try to get libvirtd up and running. Once again, thanks for your help. On Wed, Feb 9, 2022 at 5:24 PM Peter Krempa <pkrempa@redhat.com> wrote:
On Wed, Feb 09, 2022 at 16:34:43 +0530, Sai Kiran Kumar Reddy wrote:
Hi,
I am Sai Kiran. I am trying to build libvirt from source on my Linux From Scratch(LFS) system. I have successfully installed libvirt and its dependencies. When I start virt-manager, there is a prompt in GUI saying that "libvirtd service is not installed". I also do not see any libvirtd in my system. I would like to install the libvirtd service(build from source). But I am not able to find the source code for it and also, I am not sure about the build process for the daemon. Could you please help me out here.
The libvirt daemon is integral part of the libvirt project so the sources you used to build the library also contain the daemon sources.
In your instance it's most likely that you are missing a dependancy and libvirtd was not auto-enabled. To force-enable it configure libvirt with
'-Ddriver_libvirtd=enabled'
which should report what you are missing. Since you are using LFS you need to ensure that you have all deps yourself.
-- Regards, Sai Kiran.

Hi, There was some issue with pkg-config-path. I have fixed it. I see that it looks for wireshark and other dependencies. I get an error saying "remote driver is required for libvirtd daemon". I am not sure what this error means. Does it mean that I have to install wireshark or is it looking for something else. Could you please help me out here. On Thu, Feb 10, 2022 at 9:57 AM Sai Kiran Kumar Reddy <skiran@cimware.in> wrote:
Hi,
Thanks for your inputs. I have compiled with -Ddriver_libvirtd=enabled option. As you have mentioned, it shows missing dependencies. Let me install them and try to get libvirtd up and running.
Once again, thanks for your help.
On Wed, Feb 9, 2022 at 5:24 PM Peter Krempa <pkrempa@redhat.com> wrote:
Hi,
I am Sai Kiran. I am trying to build libvirt from source on my Linux From Scratch(LFS) system. I have successfully installed libvirt and its dependencies. When I start virt-manager, there is a prompt in GUI saying that "libvirtd service is not installed". I also do not see any
On Wed, Feb 09, 2022 at 16:34:43 +0530, Sai Kiran Kumar Reddy wrote: libvirtd
in my system. I would like to install the libvirtd service(build from source). But I am not able to find the source code for it and also, I am not sure about the build process for the daemon. Could you please help me out here.
The libvirt daemon is integral part of the libvirt project so the sources you used to build the library also contain the daemon sources.
In your instance it's most likely that you are missing a dependancy and libvirtd was not auto-enabled. To force-enable it configure libvirt with
'-Ddriver_libvirtd=enabled'
which should report what you are missing. Since you are using LFS you need to ensure that you have all deps yourself.
-- Regards, Sai Kiran.
-- Regards, Sai Kiran.

On Thu, Feb 10, 2022 at 11:39:17 +0530, Sai Kiran Kumar Reddy wrote:
Hi,
There was some issue with pkg-config-path. I have fixed it. I see that it looks for wireshark and other dependencies. I get an error saying "remote driver is required for libvirtd daemon". I am not sure what this error
So you are missing some of the dependencies needed by the remote driver which is needed for the libvirtd daemon. Similarly to what I've suggested before can be used for any other option. To list full configuration of the project along with options that were selected you can run 'meson configure' from the builddir and it will print all options: $ meson configure [... snipped ... ] Project options Current Value Possible Values Description --------------- ------------- --------------- ----------- apparmor auto [enabled, disabled, auto] apparmor support apparmor_profiles auto [enabled, disabled, auto] install apparmor profiles attr auto [enabled, disabled, auto] attr support audit auto [enabled, disabled, auto] audit support bash_completion auto [enabled, disabled, auto] bash-completion support bash_completion_dir directory containing bash completion scripts blkid auto [enabled, disabled, auto] blkid support capng auto [enabled, disabled, auto] cap-ng support ch_group groupname to run Cloud-Hypervisor system instance as ch_user username to run Cloud-Hypervisor system instance as chrdev_lock_files location for UUCP style lock files for character devices (leave empty for default paths on some platforms) curl auto [enabled, disabled, auto] curl support docdir documentation installation directory docs auto [enabled, disabled, auto] whether to generate documentation driver_bhyve auto [enabled, disabled, auto] bhyve driver driver_ch auto [enabled, disabled, auto] Cloud-Hypervisor driver driver_esx auto [enabled, disabled, auto] esx driver driver_hyperv auto [enabled, disabled, auto] Hyper-V driver driver_interface auto [enabled, disabled, auto] host interface driver driver_libvirtd auto [enabled, disabled, auto] libvirtd driver driver_libxl auto [enabled, disabled, auto] libxenlight driver driver_lxc auto [enabled, disabled, auto] Linux Container driver driver_network auto [enabled, disabled, auto] virtual network driver driver_openvz auto [enabled, disabled, auto] OpenVZ driver driver_qemu auto [enabled, disabled, auto] QEMU/KVM driver driver_remote auto [enabled, disabled, auto] remote driver driver_secrets auto [enabled, disabled, auto] local secrets management driver driver_test auto [enabled, disabled, auto] test driver driver_vbox auto [enabled, disabled, auto] VirtualBox XPCOMC driver driver_vmware auto [enabled, disabled, auto] VMware driver driver_vz auto [enabled, disabled, auto] Virtuozzo driver dtrace auto [enabled, disabled, auto] use dtrace for static probing expensive_tests auto [enabled, disabled, auto] set the default for enabling expensive tests (long [...]
means. Does it mean that I have to install wireshark or is it looking for
No wireshark is optional, only if you want to build the dissector for the libvirt protocol as plugin into wireshark.
something else. Could you please help me out here.
So you want -D driver_remote=enabled and -D wireshark_dissector=disabled make sure to consult all of the options you might want.

Hi Peter, Thanks for your inputs. I have looked at all the dependencies and built libvirt with the appropriate dependencies enabled. I am able to run virt-manager also, without any errors. I am trying to create a VM using virsh. I get an error saying "domain configuration does not support video mode qxl". Could you please let me know if it is libvirt related error or qemu related one? On Thu, Feb 10, 2022 at 1:50 PM Peter Krempa <pkrempa@redhat.com> wrote:
On Thu, Feb 10, 2022 at 11:39:17 +0530, Sai Kiran Kumar Reddy wrote:
Hi,
There was some issue with pkg-config-path. I have fixed it. I see that it looks for wireshark and other dependencies. I get an error saying "remote driver is required for libvirtd daemon". I am not sure what this error
So you are missing some of the dependencies needed by the remote driver which is needed for the libvirtd daemon. Similarly to what I've suggested before can be used for any other option.
To list full configuration of the project along with options that were selected you can run 'meson configure' from the builddir and it will print all options:
$ meson configure
[... snipped ... ]
Project options Current Value Possible Values Description --------------- ------------- --------------- ----------- apparmor auto [enabled, disabled, auto] apparmor support apparmor_profiles auto [enabled, disabled, auto] install apparmor profiles attr auto [enabled, disabled, auto] attr support audit auto [enabled, disabled, auto] audit support bash_completion auto [enabled, disabled, auto] bash-completion support bash_completion_dir directory containing bash completion scripts blkid auto [enabled, disabled, auto] blkid support capng auto [enabled, disabled, auto] cap-ng support ch_group groupname to run Cloud-Hypervisor system instance as ch_user username to run Cloud-Hypervisor system instance as chrdev_lock_files location for UUCP style lock files for character devices
(leave empty for default paths on some platforms) curl auto [enabled, disabled, auto] curl support docdir documentation installation directory docs auto [enabled, disabled, auto] whether to generate documentation driver_bhyve auto [enabled, disabled, auto] bhyve driver driver_ch auto [enabled, disabled, auto] Cloud-Hypervisor driver driver_esx auto [enabled, disabled, auto] esx driver driver_hyperv auto [enabled, disabled, auto] Hyper-V driver driver_interface auto [enabled, disabled, auto] host interface driver driver_libvirtd auto [enabled, disabled, auto] libvirtd driver driver_libxl auto [enabled, disabled, auto] libxenlight driver driver_lxc auto [enabled, disabled, auto] Linux Container driver driver_network auto [enabled, disabled, auto] virtual network driver driver_openvz auto [enabled, disabled, auto] OpenVZ driver driver_qemu auto [enabled, disabled, auto] QEMU/KVM driver driver_remote auto [enabled, disabled, auto] remote driver driver_secrets auto [enabled, disabled, auto] local secrets management driver driver_test auto [enabled, disabled, auto] test driver driver_vbox auto [enabled, disabled, auto] VirtualBox XPCOMC driver driver_vmware auto [enabled, disabled, auto] VMware driver driver_vz auto [enabled, disabled, auto] Virtuozzo driver dtrace auto [enabled, disabled, auto] use dtrace for static probing expensive_tests auto [enabled, disabled, auto] set the default for enabling expensive tests (long
[...]
means. Does it mean that I have to install wireshark or is it looking for
No wireshark is optional, only if you want to build the dissector for the libvirt protocol as plugin into wireshark.
something else. Could you please help me out here.
So you want -D driver_remote=enabled and -D wireshark_dissector=disabled
make sure to consult all of the options you might want.
-- Regards, Sai Kiran.

On 2/14/22 10:09, Sai Kiran Kumar Reddy wrote:
Hi Peter,
Thanks for your inputs. I have looked at all the dependencies and built libvirt with the appropriate dependencies enabled. I am able to run virt-manager also, without any errors. I am trying to create a VM using virsh. I get an error saying "domain configuration does not support video mode qxl". Could you please let me know if it is libvirt related error or qemu related one?
This is QEMU related and your qemu was probably build without SPICE support: https://www.spice-space.org/ pass --enable-spice to QEMU ./configure script. Alternatively, Gentoo has all these dependencies recorded and maintained. So it's easier to install. Michal

Hi Michal, I am able to build qemu with the options you have suggested. It indeed is a qemu issue. Thank you for pointing that out. On Mon, Feb 14, 2022 at 3:51 PM Michal Prívozník <mprivozn@redhat.com> wrote:
On 2/14/22 10:09, Sai Kiran Kumar Reddy wrote:
Hi Peter,
Thanks for your inputs. I have looked at all the dependencies and built libvirt with the appropriate dependencies enabled. I am able to run virt-manager also, without any errors. I am trying to create a VM using virsh. I get an error saying "domain configuration does not support video mode qxl". Could you please let me know if it is libvirt related error or qemu related one?
This is QEMU related and your qemu was probably build without SPICE support:
pass --enable-spice to QEMU ./configure script. Alternatively, Gentoo has all these dependencies recorded and maintained. So it's easier to install.
Michal
-- Regards, Sai Kiran.
participants (3)
-
Michal Prívozník
-
Peter Krempa
-
Sai Kiran Kumar Reddy