You are not logged in.
I am trying to use `virt-manager` and create a new VM, based on QEMU/KVM, which fails with
Unable to complete install: 'Requested operation is not valid: network 'default' is not active'
As far as I understood from looking around, the problem is that I need to have `dnsmasq` installed and running. But when I am trying to start
dnsmasqd.service
it is unable to start with the following error (from `journalctl -xeu dnsmasq.service`):
Aug 01 14:53:27 Sapir-i7 dnsmasq[209126]: dnsmasq: syntax check OK.
Aug 01 14:53:27 Sapir-i7 dnsmasq[209127]: dnsmasq: failed to create listening socket for port 53: Address already in use
Aug 01 14:53:27 Sapir-i7 dnsmasq[209127]: failed to create listening socket for port 53: Address already in use
Aug 01 14:53:27 Sapir-i7 dnsmasq[209127]: FAILED to start up
I guess this is because I use
systemd-resolved`
as my DNS/DHCP resolver.
Is there any way to bypass that, besides not using `systemd-resolved`?
Last edited by meijin (2024-08-02 06:01:36)
Offline
an option could be to use a network-bridge instead of nat
Offline
If the default network cannot be started, make sure iptables-nft and dnsmasq are installed.
Arte both those programs installed ?
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
https://wiki.archlinux.org/title/Libvirt#Networking wrote:If the default network cannot be started, make sure iptables-nft and dnsmasq are installed.
Arte both those programs installed ?
both are installed, but as I wrote I can't start the dnsmasq service.
Offline
I also see it's written:
libvirt handles DHCP and DNS with dnsmasq, launching a separate instance for every virtual network. It also adds iptables rules for proper routing, and enables the ip_forward kernel parameter. This also means that having dnsmasq running on the host system is not necessary to support libvirt requirements (and could interfere with libvirt dnsmasq instances).p
Offline
so restarting the machine seems to have some progress, and this error is not longer shown.
Offline