You are not logged in.
Im trying to launch a vm with network access but i keep struggling to make it work. I have no docker on this machine so i dont really know what else can be at conflict here. I tried purging config files of both virt-manager and libvirt as well as resetting nftables to default config
sudo virsh net-list --all
error: Failed to list networks
error: Failed to connect socket to '/var/run/libvirt/virtnetworkd-sock': No such file or directory
trying to start libvirtd results in:
○ libvirtd.service - libvirt legacy monolithic daemon
Loaded: loaded (/usr/lib/systemd/system/libvirtd.service; enabled; preset: disabled)
Active: inactive (dead) since Sat 2024-07-27 23:22:43 CEST; 20s ago
Duration: 6.658s
Invocation: 9fa88975552f4689a22f4290a65717f1
TriggeredBy: ○ libvirtd-ro.socket
○ libvirtd-admin.socket
○ libvirtd.socket
Docs: man:libvirtd(8)
https://libvirt.org/
Main PID: 2644 (code=exited, status=0/SUCCESS)
Mem peak: 12.4M
CPU: 390ms
Jul 27 23:22:36 arch systemd[1]: Starting libvirt legacy monolithic daemon...
Jul 27 23:22:36 arch systemd[1]: Started libvirt legacy monolithic daemon.
Jul 27 23:22:36 arch dnsmasq[2726]: failed to create listening socket for 192.168.122.1: Address already in use
Jul 27 23:22:36 arch dnsmasq[2726]: FAILED to start up
Jul 27 23:22:36 arch libvirtd[2644]: libvirt version: 10.5.0
Jul 27 23:22:36 arch libvirtd[2644]: hostname: arch
Jul 27 23:22:36 arch libvirtd[2644]: internal error: Child process (VIR_BRIDGE_NAME=virbr0 /usr/bin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/lib/libvirt/libvirt_>
dnsmasq: failed to create listening socket for 192.168.122.1: Address already in use
Jul 27 23:22:43 arch systemd[1]: Stopping libvirt legacy monolithic daemon...
Jul 27 23:22:43 arch systemd[1]: libvirtd.service: Deactivated successfully.
Jul 27 23:22:43 arch systemd[1]: Stopped libvirt legacy monolithic daemon.
/var/lib/libvirt/dnsmasq/default.conf
##WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE
##OVERWRITTEN AND LOST. Changes to this configuration should be made using:
## virsh net-edit default
## or other application using the libvirt API.
##
## dnsmasq conf file created by libvirt
strict-order
pid-file=/run/libvirt/network/default.pid
except-interface=lo
bind-dynamic
interface=virbr0
dhcp-range=192.168.122.2,192.168.122.254,255.255.255.0
dhcp-no-override
dhcp-authoritative
dhcp-lease-max=253
dhcp-hostsfile=/var/lib/libvirt/dnsmasq/default.hostsfile
addn-hosts=/var/lib/libvirt/dnsmasq/default.addnhosts
Last edited by rdx22 (2024-07-27 22:04:11)
Offline
never mind the solution is to not have dnsmasq enabled in systemctl... no clue why it was enabled possibly done by mistake when troubleshooting
Offline