Bug 254709 - intel e1000e not properly detected qemu-kvm q35/BIOS
Summary: intel e1000e not properly detected qemu-kvm q35/BIOS
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 12.2-STABLE
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Muhammad Moinur Rahman
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-02 07:48 UTC by tschweikle
Modified: 2021-04-12 07:42 UTC (History)
2 users (show)

See Also:
linimon: maintainer-feedback? (bofh)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tschweikle 2021-04-02 07:48:13 UTC
uname -a:
FreeBSD fbsd12.fritz.box 12.2-STABLE FreeBSD 12.2-STABLE stable12-n232783-67dedc2a115e FBSD12  amd64

freebsd-version -kur:
12.2-STABLE
12.2-STABLE
12.2-STABLE

/usr/bin/qemu-system-x86_64 \
  -name guest=fbsd12,debug-threads=on \
  -S \
  -object secret,id=masterKey0,format=raw,file=/var/lib/libvirt/qemu/domain-102-fbsd12/master-key.aes \
  -machine pc-q35-5.0,accel=kvm,usb=off,vmport=off,dump-guest-core=off \
  -cpu IvyBridge-IBRS,ss=on,vmx=on,pdcm=on,pcid=on,hypervisor=on,arat=on,tsc-adjust=on,umip=on,md-clear=on,stibp=on,arch-capabilities=on,ssbd=on,xsaveopt=on,ibpb=on,amd-stibp=on,amd-ssbd=on,skip-l1dfl-vmentry=on,pschange-mc-no=on,aes=off \
  -m 6144 \
  -overcommit mem-lock=off \
  -smp 1,sockets=1,cores=1,threads=1 \
  -uuid 129544d8-293b-4cf5-a571-8012221f7bcc \
  -no-user-config \
  -nodefaults \
  -chardev socket,id=charmonitor,fd=30,server,nowait \
  -mon chardev=charmonitor,id=monitor,mode=control \
  -rtc base=utc,driftfix=slew \
  -global kvm-pit.lost_tick_policy=delay \
  -no-hpet \
  -no-shutdown \
  -global ICH9-LPC.disable_s3=1 \
  -global ICH9-LPC.disable_s4=1 \
  -boot strict=on \
  -device pcie-root-port,port=0x10,chassis=1,id=pci.1,bus=pcie.0,multifunction=on,addr=0x2 \
  -device pcie-root-port,port=0x11,chassis=2,id=pci.2,bus=pcie.0,addr=0x2.0x1 \
  -device pcie-root-port,port=0x16,chassis=3,id=pci.3,bus=pcie.0,addr=0x2.0x6 \
  -device pcie-root-port,port=0x12,chassis=4,id=pci.4,bus=pcie.0,addr=0x2.0x2 \
  -device pcie-root-port,port=0x13,chassis=5,id=pci.5,bus=pcie.0,addr=0x2.0x3 \
  -device pcie-root-port,port=0x14,chassis=6,id=pci.6,bus=pcie.0,addr=0x2.0x4 \
  -device pcie-root-port,port=0x15,chassis=7,id=pci.7,bus=pcie.0,addr=0x2.0x5 \
  -device ich9-usb-ehci1,id=usb,bus=pcie.0,addr=0x1d.0x7 \
  -device ich9-usb-uhci1,masterbus=usb.0,firstport=0,bus=pcie.0,multifunction=on,addr=0x1d \
  -device ich9-usb-uhci2,masterbus=usb.0,firstport=2,bus=pcie.0,addr=0x1d.0x1 \
  -device ich9-usb-uhci3,masterbus=usb.0,firstport=4,bus=pcie.0,addr=0x1d.0x2 \
  -device virtio-scsi-pci,id=scsi0,bus=pci.7,addr=0x0 \
  -device virtio-serial-pci,id=virtio-serial0,bus=pci.4,addr=0x0 \
  -device ide-cd,bus=ide.0,id=sata0-0-0 \
  -blockdev {"driver":"file","filename":"/var/lib/libvirt/images/fbsd12.vmdk","node-name":"libvirt-1-storage","auto-read-only":true,"discard":"unmap"} \
  -blockdev {"node-name":"libvirt-1-format","read-only":false,"driver":"vmdk","file":"libvirt-1-storage","backing":null} \
  -device ide-hd,bus=ide.1,drive=libvirt-1-format,id=sata0-0-1,bootindex=1 \
  -netdev tap,fd=33,id=hostnet0 -device e1000e,netdev=hostnet0,id=net0,mac=52:54:00:36:98:a1,bus=pci.1,addr=0x0 \
  -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 \
  -chardev spicevmc,id=charchannel0,name=vdagent \
  -device virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=com.redhat.spice.0 \
  -chardev socket,id=charchannel1,fd=34,server,nowait \
  -device virtserialport,bus=virtio-serial0.0,nr=2,chardev=charchannel1,id=channel1,name=org.qemu.guest_agent.0 \
  -device usb-tablet,id=input2,bus=usb.0,port=3 \
  -spice port=5901,addr=127.0.0.1,disable-ticketing,image-compression=off,seamless-migration=on \
  -device qxl-vga,id=video0,ram_size=67108864,vram_size=67108864,vram64_size_mb=0,vgamem_mb=64,max_outputs=1,bus=pcie.0,addr=0x1 \
  -device ich9-intel-hda,id=sound0,bus=pcie.0,addr=0x1b \
  -device hda-duplex,id=sound0-codec0,bus=sound0.0,cad=0 \
  -chardev spicevmc,id=charredir0,name=usbredir \
  -device usb-redir,chardev=charredir0,id=redir0,bus=usb.0,port=1 \
  -chardev spicevmc,id=charredir1,name=usbredir \
  -device usb-redir,chardev=charredir1,id=redir1,bus=usb.0,port=2 \
  -device virtio-balloon-pci,id=balloon0,bus=pci.6,addr=0x0 \
  -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny \
  -msg timestamp=on

Devices detected, but not properly initialized:
- em0 -- no communication. dhclient hangs indefinitely sending packages. Manual setting addresses does not help either: no packets are send thru this device.

Devices detected, but not used:
- virtio-network-card
The network card is found, but not used, because it is not seen as network device.

virtio-disk is a bit suspicious: loader finds disk, kernel too, but later on this disk is not found by zfs device scanning procedures.
Swap given as /dev/geo/swap0 is not found then (zfs-volume).

switching from virtio-disk to sata-disk: disk is found now by zfs device scanning procedures.
switching from virtio-disk to scsi-disk: disk is found, but zfs device scanning procedures fail to find it.

host 1: Debian testing, latest qemu-kvm, virt-manager
host 2: Ubuntu 20.10, latest available qemu-kvm, virt-manager
host 3: FreeBSD CURRENT, latest available qemu-kvm, virt-manager