Qemu 9.0.1 no network on vms or live cd

After [Stable Update] 2024-07-01 - Kernels, Systemd, KDE Gear, LibreOffice, Firefos, Wine, Qemu

qemu can not obtain an IP Address for vms or booted live cd.

System:
  Kernel: 6.6.34-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 14.1.1
    clocksource: tsc avail: hpet,acpi_pm
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-6.6-x86_64
    root=UUID=2858d787-58d2-4b32-bfe2-dcd848223859 rw rootflags=subvol=@
    cryptdevice=UUID=ec00de08-393b-4d8c-a1ed-853a4de311ee:cryptroot quiet
    splash apparmor=1 security=apparmor udev.log_priority=3 amd_pstate=active
  Desktop: Xfce v: 4.18.1 tk: Gtk v: 3.24.36 wm: xfwm4 v: 4.18.0
    with: xfce4-panel tools: light-locker dm: LightDM v: 1.32.0 Distro: Manjaro
    base: Arch Linux
Machine:
  Type: Desktop Mobo: ASUSTeK model: PRIME X570-PRO v: Rev X.0x
    serial: <filter> part-nu: SKU uuid: f1be0f0b-83c9-788a-bfae-244bfe5cd0c0
    UEFI: American Megatrends v: 5013 date: 03/22/2024
Battery:
  Device-1: hidpp_battery_0 model: Logitech Wireless Mouse MX Master 3
    serial: <filter> charge: 10% (should be ignored) rechargeable: yes
    status: discharging
Memory:
  System RAM: total: 32 GiB available: 31.25 GiB used: 4.02 GiB (12.9%)
  Array-1: capacity: 128 GiB slots: 4 modules: 2 EC: None
    max-module-size: 32 GiB note: est.
  Device-1: DIMM_A1 type: no module installed
  Device-2: DIMM_A2 type: DDR4 detail: synchronous unbuffered (unregistered)
    size: 16 GiB speed: 3200 MT/s volts: curr: 1.2 min: 1.2 max: 1.2
    width (bits): data: 64 total: 64 manufacturer: Corsair
    part-no: CMK32GX4M2B3200C16 serial: N/A
  Device-3: DIMM_B1 type: no module installed
  Device-4: DIMM_B2 type: DDR4 detail: synchronous unbuffered (unregistered)
    size: 16 GiB speed: 3200 MT/s volts: curr: 1.2 min: 1.2 max: 1.2
    width (bits): data: 64 total: 64 manufacturer: Corsair
    part-no: CMK32GX4M2B3200C16 serial: N/A
CPU:
  Info: model: AMD Ryzen 9 3900X socket: AM4 bits: 64 type: MT MCP arch: Zen 2
    gen: 3 level: v3 note: check built: 2020-22 process: TSMC n7 (7nm)
    family: 0x17 (23) model-id: 0x71 (113) stepping: 0 microcode: 0x8701033
  Topology: cpus: 1x cores: 12 tpc: 2 threads: 24 smt: enabled cache:
    L1: 768 KiB desc: d-12x32 KiB; i-12x32 KiB L2: 6 MiB desc: 12x512 KiB
    L3: 64 MiB desc: 4x16 MiB
  Speed (MHz): avg: 831 high: 4259 min/max: 550/4673 base/boost: 3800/4650
    scaling: driver: amd-pstate-epp governor: powersave volts: 1.1 V
    ext-clock: 100 MHz cores: 1: 550 2: 550 3: 550 4: 550 5: 550 6: 550 7: 550
    8: 550 9: 550 10: 550 11: 550 12: 4259 13: 550 14: 550 15: 550 16: 550
    17: 550 18: 550 19: 550 20: 550 21: 550 22: 550 23: 550 24: 3596
    bogomips: 182489
  Flags: 3dnowprefetch abm adx aes aperfmperf apic arat avic avx avx2 bmi1
    bmi2 bpext cat_l3 cdp_l3 clflush clflushopt clwb clzero cmov cmp_legacy
    constant_tsc cpb cpuid cqm cqm_llc cqm_mbm_local cqm_mbm_total
    cqm_occup_llc cr8_legacy cx16 cx8 de decodeassists extapic extd_apicid
    f16c flushbyasid fma fpu fsgsbase fxsr fxsr_opt ht hw_pstate ibpb ibs
    irperf lahf_lm lbrv lm mba mca mce misalignsse mmx mmxext monitor movbe
    msr mtrr mwaitx nonstop_tsc nopl npt nrip_save nx osvw overflow_recov pae
    pat pausefilter pclmulqdq pdpe1gb perfctr_core perfctr_llc perfctr_nb
    pfthreshold pge pni popcnt pse pse36 rapl rdpid rdpru rdrand rdseed rdt_a
    rdtscp rep_good sep sev sev_es sha_ni skinit smap smca smep ssbd sse sse2
    sse4_1 sse4_2 sse4a ssse3 stibp succor svm svm_lock syscall tce topoext
    tsc tsc_scale umip v_spec_ctrl v_vmsave_vmload vgif vmcb_clean vme vmmcall
    wbnoinvd wdt x2apic xgetbv1 xsave xsavec xsaveerptr xsaveopt
  Vulnerabilities:
  Type: gather_data_sampling status: Not affected
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data status: Not affected
  Type: reg_file_data_sampling status: Not affected
  Type: retbleed mitigation: untrained return thunk; SMT enabled with STIBP
    protection
  Type: spec_rstack_overflow mitigation: Safe RET
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: Retpolines; IBPB: conditional; STIBP:
    always-on; RSB filling; PBRSB-eIBRS: Not affected; BHI: Not affected
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: AMD Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT]
    vendor: ASUSTeK driver: amdgpu v: kernel arch: RDNA-1 code: Navi-1x
    process: TSMC n7 (7nm) built: 2019-20 pcie: gen: 4 speed: 16 GT/s lanes: 16
    ports: active: HDMI-A-1 empty: DP-1,DP-2,DP-3 bus-ID: 0b:00.0
    chip-ID: 1002:731f class-ID: 0300
  Device-2: Logitech C922 Pro Stream Webcam driver: snd-usb-audio,uvcvideo
    type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-1:2
    chip-ID: 046d:085c class-ID: 0102 serial: <filter>
  Display: x11 server: X.Org v: 21.1.13 compositor: xfwm4 v: 4.18.0 driver:
    X: loaded: amdgpu unloaded: modesetting,radeon alternate: fbdev,vesa
    dri: radeonsi gpu: amdgpu display-ID: :0.0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.00x11.22")
    s-diag: 582mm (22.93")
  Monitor-1: HDMI-A-1 mapped: HDMI-A-0 model: Samsung SyncMaster
    serial: <filter> built: 2009 res: 1920x1080 hz: 60 dpi: 102 gamma: 1.2
    size: 477x268mm (18.78x10.55") diag: 587mm (23.1") ratio: 16:9, 15:9 modes:
    max: 1920x1080 min: 640x480
  API: EGL v: 1.5 hw: drv: amd radeonsi platforms: device: 0 drv: radeonsi
    device: 1 drv: swrast surfaceless: drv: radeonsi x11: drv: radeonsi
    inactive: gbm,wayland
  API: OpenGL v: 4.6 compat-v: 4.5 vendor: amd mesa v: 24.1.1-manjaro1.1
    glx-v: 1.4 direct-render: yes renderer: AMD Radeon RX 5700 XT (radeonsi
    navi10 LLVM 17.0.6 DRM 3.54 6.6.34-1-MANJARO) device-ID: 1002:731f
    memory: 7.81 GiB unified: no
Audio:
  Device-1: AMD Navi 10 HDMI Audio driver: snd_hda_intel v: kernel pcie: gen: 4
    speed: 16 GT/s lanes: 16 bus-ID: 0b:00.1 chip-ID: 1002:ab38 class-ID: 0403
  Device-2: AMD Starship/Matisse HD Audio vendor: ASUSTeK
    driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16
    bus-ID: 0d:00.4 chip-ID: 1022:1487 class-ID: 0403
  Device-3: Logitech C922 Pro Stream Webcam driver: snd-usb-audio,uvcvideo
    type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-1:2
    chip-ID: 046d:085c class-ID: 0102 serial: <filter>
  API: ALSA v: k6.6.34-1-MANJARO status: kernel-api
    tools: alsactl,alsamixer,amixer
  Server-1: JACK v: 1.9.22 status: off tools: N/A
  Server-2: PipeWire v: 1.0.7 status: n/a (root, process) with:
    1: pipewire-pulse status: active 2: pipewire-media-session status: active
    3: pipewire-alsa type: plugin tools: pactl,pw-cat,pw-cli
Network:
  Device-1: Intel I211 Gigabit Network vendor: ASUSTeK driver: igb v: kernel
    pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: f000 bus-ID: 05:00.0
    chip-ID: 8086:1539 class-ID: 0200
  IF: enp5s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
    broadcast: <filter>
  IP v6: <filter> type: dynamic noprefixroute scope: global
  IP v6: <filter> type: noprefixroute scope: link
  IF-ID-1: virbr0 state: down mac: <filter>
  IP v4: <filter> scope: global broadcast: <filter>
  Info: services: NetworkManager,systemd-timesyncd
  WAN IP: <filter>
Bluetooth:
  Device-1: Cambridge Silicon Radio Bluetooth Dongle (HCI mode) driver: btusb
    v: 0.8 type: USB rev: 2.0 speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 1-2:3
    chip-ID: 0a12:0001 class-ID: e001
  Report: rfkill ID: hci0 rfk-id: 0 state: down bt-service: enabled,running
    rfk-block: hardware: no software: yes address: see --recommends
Logical:
  Message: No logical block device data found.
  Device-1: cryptroot maj-min: 254:0 type: LUKS dm: dm-0 size: 419.26 GiB
  Components:
  p-1: nvme0n1p2 maj-min: 259:3 size: 419.26 GiB
RAID:
  Message: No RAID data found.
Drives:
  Local Storage: total: 1.82 TiB used: 81.33 GiB (4.4%)
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung model: SSD 970 EVO 500GB
    size: 465.76 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
    lanes: 4 tech: SSD serial: <filter> fw-rev: 2B2QEXE7 temp: 47.9 C
    scheme: GPT
  SMART: yes health: PASSED on: 10d 6h cycles: 2,020
    read-units: 6,346,948 [3.24 TB] written-units: 5,400,817 [2.76 TB]
  ID-2: /dev/nvme1n1 maj-min: 259:1 vendor: Samsung model: SSD 970 EVO 500GB
    size: 465.76 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
    lanes: 4 tech: SSD serial: <filter> fw-rev: 2B2QEXE7 temp: 43.9 C
    scheme: GPT
  SMART: yes health: PASSED on: 7d 14h cycles: 2,020
    read-units: 8,320,785 [4.26 TB] written-units: 7,671,744 [3.92 TB]
  ID-3: /dev/sda maj-min: 8:0 vendor: Samsung model: SSD 870 QVO 1TB
    family: based SSDs size: 931.51 GiB block-size: physical: 512 B
    logical: 512 B sata: 3.3 speed: 6.0 Gb/s tech: SSD serial: <filter>
    fw-rev: 2B6Q temp: 32 C scheme: GPT
  SMART: yes state: enabled health: PASSED on: 44d 5h cycles: 1335
    written: 4.32 TiB
  Message: No optical or floppy data found.
Partition:
  ID-1: / raw-size: 419.26 GiB size: 419.26 GiB (100.00%)
    used: 63.09 GiB (15.0%) fs: btrfs block-size: 4096 B dev: /dev/dm-0
    maj-min: 254:0 mapped: cryptroot label: N/A uuid: N/A
  ID-2: /boot/efi raw-size: 512 MiB size: 511 MiB (99.80%)
    used: 27.7 MiB (5.4%) fs: vfat block-size: 512 B dev: /dev/nvme0n1p1
    maj-min: 259:2 label: N/A uuid: C380-DE14
  ID-3: /home raw-size: 419.26 GiB size: 419.26 GiB (100.00%)
    used: 63.09 GiB (15.0%) fs: btrfs block-size: 4096 B dev: /dev/dm-0
    maj-min: 254:0 mapped: cryptroot label: N/A uuid: N/A
  ID-4: /run/media/pheiduck/Daten raw-size: 931.51 GiB
    size: 931.51 GiB (100.00%) used: 18.22 GiB (2.0%) fs: btrfs
    block-size: 4096 B dev: /dev/sda1 maj-min: 8:1 label: N/A
    uuid: 3704c1e0-6710-4592-8b0b-28322fd45bbd
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default) zswap: yes
    compressor: zstd max-pool: 20%
  ID-1: swap-1 type: zram size: 15.63 GiB used: 0 KiB (0.0%) priority: 100
    comp: zstd avail: lzo,lzo-rle,lz4,lz4hc,842 max-streams: 24 dev: /dev/zram0
Unmounted:
  ID-1: /dev/nvme1n1p1 maj-min: 259:4 size: 16 MiB fs: N/A label: N/A uuid: N/A
  ID-2: /dev/nvme1n1p2 maj-min: 259:5 size: 418.48 GiB fs: ntfs
    label: Windoof uuid: 1E16606116603C41
  ID-3: /dev/nvme1n1p3 maj-min: 259:6 size: 703 MiB fs: ntfs label: N/A
    uuid: FA0453B004536E9F
USB:
  Hub-1: 1-0:1 info: hi-speed hub with single TT ports: 6 rev: 2.0
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 1d6b:0002
    class-ID: 0900
  Device-1: 1-1:2 info: Logitech C922 Pro Stream Webcam type: video,audio
    driver: snd-usb-audio,uvcvideo interfaces: 4 rev: 2.0
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 power: 500mA
    chip-ID: 046d:085c class-ID: 0102 serial: <filter>
  Device-2: 1-2:3 info: Cambridge Silicon Radio Bluetooth Dongle (HCI mode)
    type: bluetooth driver: btusb interfaces: 2 rev: 2.0
    speed: 12 Mb/s (1.4 MiB/s) lanes: 1 mode: 1.1 power: 100mA
    chip-ID: 0a12:0001 class-ID: e001
  Hub-2: 2-0:1 info: super-speed hub ports: 4 rev: 3.1
    speed: 10 Gb/s (1.16 GiB/s) lanes: 1 mode: 3.2 gen-2x1 chip-ID: 1d6b:0003
    class-ID: 0900
  Hub-3: 3-0:1 info: hi-speed hub with single TT ports: 6 rev: 2.0
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 1d6b:0002
    class-ID: 0900
  Device-1: 3-4:2 info: ASUSTek AURA LED Controller type: HID
    driver: hid-generic,usbhid interfaces: 2 rev: 2.0 speed: 12 Mb/s (1.4 MiB/s)
    lanes: 1 mode: 1.1 power: 16mA chip-ID: 0b05:18f3 class-ID: 0300
    serial: <filter>
  Hub-4: 4-0:1 info: super-speed hub ports: 4 rev: 3.1
    speed: 10 Gb/s (1.16 GiB/s) lanes: 1 mode: 3.2 gen-2x1 chip-ID: 1d6b:0003
    class-ID: 0900
  Hub-5: 5-0:1 info: hi-speed hub with single TT ports: 4 rev: 2.0
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 1d6b:0002
    class-ID: 0900
  Hub-6: 5-3:2 info: Genesys Logic Hub ports: 4 rev: 2.0
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 power: 100mA
    chip-ID: 05e3:0608 class-ID: 0900
  Device-1: 5-3.2:4 info: Metadot Das Keyboard 4 type: keyboard,HID
    driver: hid-generic,usbhid interfaces: 2 rev: 1.1 speed: 12 Mb/s (1.4 MiB/s)
    lanes: 1 mode: 1.1 power: 100mA chip-ID: 24f0:204a class-ID: 0300
  Device-2: 5-4:3 info: Logitech Unifying Receiver type: keyboard,mouse,HID
    driver: logitech-djreceiver,usbhid interfaces: 3 rev: 2.0
    speed: 12 Mb/s (1.4 MiB/s) lanes: 1 mode: 1.1 power: 98mA
    chip-ID: 046d:c52b class-ID: 0300
  Hub-7: 6-0:1 info: super-speed hub ports: 4 rev: 3.1
    speed: 10 Gb/s (1.16 GiB/s) lanes: 1 mode: 3.2 gen-2x1 chip-ID: 1d6b:0003
    class-ID: 0900
Sensors:
  System Temperatures: cpu: 39.0 C mobo: 45.0 C gpu: amdgpu temp: 50.0 C
    mem: 48.0 C
  Fan Speeds (rpm): N/A gpu: amdgpu fan: 0
Info:
  Processes: 521 Power: uptime: 38m states: freeze,mem,disk suspend: deep
    avail: s2idle wakeups: 0 hibernate: platform avail: shutdown, reboot,
    suspend, test_resume image: 12.48 GiB services: upowerd,xfce4-power-manager
    Init: systemd v: 256 default: graphical tool: systemctl
  Packages: 1379 pm: pacman pkgs: 1362 libs: 387 tools: pamac pm: flatpak
    pkgs: 17 Compilers: clang: 17.0.6 gcc: 14.1.1 Shell: Sudo (sudo) v: 1.9.15p5
    default: Zsh v: 5.9 running-in: xfce4-terminal inxi: 3.3.35
â—Ź libvirtd.service - libvirt legacy monolithic daemon
     Loaded: loaded (/usr/lib/systemd/system/libvirtd.service; enabled; preset: disabled)
     Active: active (running) since Mon 2024-07-01 10:01:58 CEST; 5min ago
 Invocation: b657eb1556cd44c4ae6eef78a8c0ca70
TriggeredBy: â—Ź libvirtd-admin.socket
             â—Ź libvirtd-ro.socket
             â—Ź libvirtd.socket
       Docs: man:libvirtd(8)
             https://libvirt.org/
   Main PID: 8603 (libvirtd)
      Tasks: 23 (limit: 32768)
     Memory: 176.8M (peak: 184.4M)
        CPU: 940ms
     CGroup: /system.slice/libvirtd.service
             ├─6730 /usr/bin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/lib/libvirt/libvirt_leaseshelper
             ├─6731 /usr/bin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/lib/libvirt/libvirt_leaseshelper
             └─8603 /usr/bin/libvirtd --timeout 120

Jul 01 10:01:58 BlackBox systemd[1]: Starting libvirt legacy monolithic daemon...
Jul 01 10:01:58 BlackBox systemd[1]: Started libvirt legacy monolithic daemon.
Jul 01 10:01:59 BlackBox dnsmasq[6730]: read /etc/hosts - 6 names
Jul 01 10:01:59 BlackBox dnsmasq[6730]: read /var/lib/libvirt/dnsmasq/default.addnhosts - 0 names
Jul 01 10:01:59 BlackBox dnsmasq-dhcp[6730]: read /var/lib/libvirt/dnsmasq/default.hostsfile

Downgrade to 10.3 solved it.

For those who do not want to downgrade, until the bug is fixed, there is the workaround with just allowing everything through the virtual bridge interface. This way we do not have to downgrade wich is generally unsupported in a rolling release, and keep the firewall active for the interfaces where it matters, like wifi. I will allow myself to mark this workaround as a “solution” for now, because it is less intrusive.

sudo ufw allow out on virbr0
sudo ufw allow in on virbr0

p.s. of course one has to check if the virbr0 is the right interface.

1 Like

firewalld works as well.

Unfortunately, after some more testing, my workaround does not work as expected - only ping works…

1 Like

When I setup qemu and libvirt almost three years ago for this install… I made it so my VMs always default to my bridged interface. I had to setup one myself, before virbr0 was made by default, I assume. And all my VMs are still working with my br0 interface. And as always, allowing all traffic through that interface.

( https://wiki.archlinux.org/title/Network_bridge#With_NetworkManager )

1 Like

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.