Error: Cannot check dnsmasq library

Trying to install new KVM images , by following KVM instructions:

user@host:~$ virsh -c qemu:///system net-start default
error: Failed to start network default
error: Cannot check dnsmasq binary /usr/sbin/dnsmasq: No such file or directory

I should install dnsmasq package? if so then it should be added to the wiki because its not part of debian default packages.

1 Like

Yeah you should. AFAICR it was pulled as a suggested package on Debian. Does this no longer happen?

2 Likes

Recommends:, still installed by Debian default. Won’t be installed when using --no-install-recommends and in other lenghty to explain situations.

Suggests: is - simplified - irrelevant for most purposes.

context: debian/control file / apt-cache show pkg-name

Therefore I once suggested to document using --no-install-recommends and list all required packages such as dnsmasq there. That would prevent some corner cases.

1 Like

yeah i installed dnsmasq and fixed the issue , but cant remember how did i installed virt-manager with install or with --no-install-recommends.

it doesnt , just tested that:

current kvm installation command from the wiki:

sudo apt-get install qemu-kvm libvirt-daemon-system libvirt-clients virt-manager gir1.2-spiceclientgtk-3.0

it will show:

user@host:~$ sudo apt-get install qemu-kvm libvirt-daemon-system libvirt-clients virt-manager gir1.2-spiceclientgtk-3.0
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  augeas-lenses dmeventd dns-root-data dnsmasq-base genisoimage
  gir1.2-gtk-vnc-2.0 gir1.2-libosinfo-1.0 gir1.2-libvirt-glib-1.0
  gir1.2-spiceclientglib-2.0 gir1.2-vte-2.91 gstreamer1.0-plugins-base
  gstreamer1.0-plugins-good gstreamer1.0-plugins-ugly gstreamer1.0-x
  ibverbs-providers ipxe-qemu libaio1 libaugeas0 libbluetooth3 libbrlapi0.6
  libcacard0 libcapstone3 libcdparanoia0 libdevmapper-event1.02.1 libdv4
  libfdt1 libgovirt-common libgovirt2 libgtk-vnc-2.0-0 libgvnc-1.0-0
  libibverbs1 liblvm2cmd2.03 libnetcf1 libopencore-amrnb0 libopencore-amrwb0
  libosinfo-1.0-0 libphodav-2.0-0 libphodav-2.0-common libpulse-mainloop-glib0
  librdmacm1 libreadline5 libsidplay1v5 libspice-client-glib-2.0-8
  libspice-client-gtk-3.0-5 libspice-server1 libusbredirhost1
  libusbredirparser1 libv4l-0 libv4lconvert0 libvdeplug2 libvirglrenderer0
  libvirt-daemon libvirt-glib-1.0-0 libvirt0 libvisual-0.4-0 libxencall1
  libxendevicemodel1 libxenevtchn1 libxenforeignmemory1 libxengnttab1
  libxenmisc4.11 libxentoolcore1 libxentoollog1 libxml2-utils lvm2
  netcat-openbsd osinfo-db ovmf python-asn1crypto python-certifi
  python-cffi-backend python-chardet python-cryptography python-enum34
  python-idna python-ipaddress python-openssl python-requests python-six
  python-urllib3 python3-libvirt python3-libxml2 qemu-system-common
  qemu-system-data qemu-system-gui qemu-system-x86 qemu-utils seabios
  spice-client-glib-usb-acl-helper thin-provisioning-tools virt-viewer
  virtinst
Suggested packages:
  augeas-doc wodim cdrkit-doc augeas-tools libdv-bin oss-compat libosinfo-l10n
  sidplay-base gstreamer1.0-plugins-bad libvirt-daemon-driver-storage-gluster
  libvirt-daemon-driver-storage-rbd libvirt-daemon-driver-storage-zfs numad
  auditd nfs-common open-iscsi pm-utils radvd systemtap zfsutils
  libvisual-0.4-plugins python-cryptography-doc python-cryptography-vectors
  python-enum34-doc python-openssl-doc python-openssl-dbg python-socks
  python-ntlm samba vde2 qemu-block-extra sgabios debootstrap ssh-askpass
  gnome-keyring gir1.2-secret-1 python3-guestfs
The following NEW packages will be installed:
  augeas-lenses dmeventd dns-root-data dnsmasq-base genisoimage
  gir1.2-gtk-vnc-2.0 gir1.2-libosinfo-1.0 gir1.2-libvirt-glib-1.0
  gir1.2-spiceclientglib-2.0 gir1.2-spiceclientgtk-3.0 gir1.2-vte-2.91
  gstreamer1.0-plugins-base gstreamer1.0-plugins-good
  gstreamer1.0-plugins-ugly gstreamer1.0-x ibverbs-providers ipxe-qemu libaio1
  libaugeas0 libbluetooth3 libbrlapi0.6 libcacard0 libcapstone3 libcdparanoia0
  libdevmapper-event1.02.1 libdv4 libfdt1 libgovirt-common libgovirt2
  libgtk-vnc-2.0-0 libgvnc-1.0-0 libibverbs1 liblvm2cmd2.03 libnetcf1
  libopencore-amrnb0 libopencore-amrwb0 libosinfo-1.0-0 libphodav-2.0-0
  libphodav-2.0-common libpulse-mainloop-glib0 librdmacm1 libreadline5
  libsidplay1v5 libspice-client-glib-2.0-8 libspice-client-gtk-3.0-5
  libspice-server1 libusbredirhost1 libusbredirparser1 libv4l-0 libv4lconvert0
  libvdeplug2 libvirglrenderer0 libvirt-clients libvirt-daemon
  libvirt-daemon-system libvirt-glib-1.0-0 libvirt0 libvisual-0.4-0
  libxencall1 libxendevicemodel1 libxenevtchn1 libxenforeignmemory1
  libxengnttab1 libxenmisc4.11 libxentoolcore1 libxentoollog1 libxml2-utils
  lvm2 netcat-openbsd osinfo-db ovmf python-asn1crypto python-certifi
  python-cffi-backend python-chardet python-cryptography python-enum34
  python-idna python-ipaddress python-openssl python-requests python-six
  python-urllib3 python3-libvirt python3-libxml2 qemu-kvm qemu-system-common
  qemu-system-data qemu-system-gui qemu-system-x86 qemu-utils seabios
  spice-client-glib-usb-acl-helper thin-provisioning-tools virt-manager
  virt-viewer virtinst
0 upgraded, 97 newly installed, 0 to remove and 0 not upgraded.
Need to get 37.4 MB of archives.
After this operation, 127 MB of additional disk space will be used.
Do you want to continue? [Y/n]  

We will see that it will call for dnsmasq-base package not dnsmasq and the difference is according to package description of debian to dnsmasq-base:

This package contains the dnsmasq executable and documentation, but not the infrastructure required to run it as a system daemon. For that, install the dnsmasq package.

and by this installation of dnsmasq-base doesnt request the installation of dnsmasq:

user@host:~$ sudo apt install dnsmasq-base
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  dns-root-data
The following NEW packages will be installed:
  dns-root-data dnsmasq-base
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 446 kB of archives.
After this operation, 951 kB of additional disk space will be used.
Do you want to continue? [Y/n] 

But with dnsmasq it does:

user@host:~$ sudo apt install dnsmasq
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  dns-root-data dnsmasq-base
Suggested packages:
  resolvconf
The following NEW packages will be installed:
  dns-root-data dnsmasq dnsmasq-base
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 462 kB of archives.
After this operation, 1,027 kB of additional disk space will be used.
Do you want to continue? [Y/n] n
Abort.

Thats why user will get the same error messages i got and whonix installation wont proceed.

Solution: Add dnsmasq to the installation command , or if you know better solution that will be better as well.

1 Like

So it now works after you installed it?

yes it did

2 Likes

Done added to wiki. Thanks for testing

2 Likes

dnsmasq was added to the wiki. But currently it’s removed. Now @nurmagoz re-added it here:

KVM: Difference between revisions - Whonix

Is this OK? @HulaHoop If so, please accept the edit.

2 Likes

Accepted.

2 Likes