Source: vagrant Version: 2.3.4+dfsg-1 Severity: normal X-Debbugs-Cc: deb...@rocketjump.eu
Hi, when running vagrant/2.3.4+dfsg-1 autopkgtest on bookworm with dnsmasq 2.90-4~deb12u1 from bookworm-proposed-updates, the autopkgtests fail, due to a dependency on dnsmasq, which itself starts a dnsmasq service on 0.0.0.0:52. vagrant-libvirt then tries to start a new dnsmasq instance, and fails. This bug is now visible since dnsmasq 2.90 (previously 2.89 in bookworm) does stricter error checking when binding to interfaces. The solution is to change the autopkgtest deps from dnsmasq to dnsmasq-base (I've tested this). Excerpt of the failing integration test below: autopkgtest [21:07:38]: test integration-test: [----------------------- + dpkg --print-architecture + [ amd64 != amd64 ] + vagrant --version Vagrant 2.3.4 + vagrant global-status id name provider state directory -------------------------------------------------------------------- There are no active Vagrant environments on this computer! Or, you haven't destroyed and recreated Vagrant environments that were started with an older version of Vagrant. + vagrant box list There are no installed boxes! Use `vagrant box add` to add some. + debian-distro-info --stable + stable=bookworm + mkdir testbox + cd testbox + trap cleanup INT TERM EXIT + vagrant init debian/bookworm64 A `Vagrantfile` has been placed in this directory. You are now ready to `vagrant up` your first virtual environment! Please read the comments in the Vagrantfile as well as documentation on `vagrantup.com` for more information on using Vagrant. + vagrant up Bringing machine 'default' up with 'libvirt' provider... ==> default: Box 'debian/bookworm64' could not be found. Attempting to find and install... default: Box Provider: libvirt default: Box Version: >= 0 ==> default: Loading metadata for box 'debian/bookworm64' default: URL: https://vagrantcloud.com/debian/bookworm64 ==> default: Adding box 'debian/bookworm64' (v12.20241217.1) for provider: libvirt default: Downloading: https://vagrantcloud.com/debian/boxes/bookworm64/versions/12.20241217.1/providers/libvirt/amd64/vagrant.box Download redirected to host: api.cloud.hashicorp.com ==> default: Successfully added box 'debian/bookworm64' (v12.20241217.1) for 'libvirt'! ==> default: Uploading base box image as volume into Libvirt storage... ==> default: Creating image (snapshot of base box volume). ==> default: Creating domain with the following settings... ==> default: -- Name: testbox_default ==> default: -- Description: Source: /tmp/autopkgtest.yM49vA/build.eiL/src/testbox/Vagrantfile ==> default: -- Domain type: kvm ==> default: -- Cpus: 1 ==> default: -- Feature: acpi ==> default: -- Feature: apic ==> default: -- Feature: pae ==> default: -- Clock offset: utc ==> default: -- Memory: 512M ==> default: -- Base box: debian/bookworm64 ==> default: -- Storage pool: default ==> default: -- Image(vda): /var/lib/libvirt/images/testbox_default.img, virtio, 100G ==> default: -- Disk driver opts: cache='default' ==> default: -- Graphics Type: vnc ==> default: -- Video Type: cirrus ==> default: -- Video VRAM: 16384 ==> default: -- Video 3D accel: false ==> default: -- Keymap: en-us ==> default: -- TPM Backend: passthrough ==> default: -- INPUT: type=mouse, bus=ps2 ==> default: Removing domain... ==> default: Deleting the machine folder Error while activating network: Call to virNetworkCreate failed: internal error: Child process (VIR_BRIDGE_NAME=virbr1 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/vagrant-libvirt.conf --leasefile-ro --dhcp-script=/usr/lib/libvirt/libvirt_leaseshelper) unexpected exit status 2: dnsmasq: failed to create listening socket for 192.168.121.1: Address already in use . + cleanup + vagrant halt ==> default: Domain is not created. Please run `vagrant up` first. + vagrant destroy -f ==> default: Domain is not created. Please run `vagrant up` first. + cd .. + rm -rf testbox autopkgtest [21:09:00]: test integration-test: -----------------------] autopkgtest [21:09:01]: test integration-test: - - - - - - - - - - results - - - - - - - - - - integration-test FAIL non-zero exit status 1 -- System Information: Debian Release: 12.9 APT prefers stable-security APT policy: (1001, 'stable-security'), (1001, 'proposed-updates'), (1001, 'stable'), (500, 'stable-updates') Architecture: amd64 (x86_64) Kernel: Linux 6.11.10+bpo-amd64 (SMP w/8 CPU threads; PREEMPT) Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled