Date: Mon, 01 Apr 2019 01:53:16 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 236922] Virtio fails as QEMU-KVM guest with Q35 chipset on Ubuntu 18.04.2 LTS Message-ID: <bug-236922-227@https.bugs.freebsd.org/bugzilla/>
index | next in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=236922 Bug ID: 236922 Summary: Virtio fails as QEMU-KVM guest with Q35 chipset on Ubuntu 18.04.2 LTS Product: Base System Version: 12.0-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Many People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: tommyhp2@gmail.com Created attachment 203279 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=203279&action=edit various data collection for bug report Environment: Host OS: Ubuntu 18.04.2 LTS (updated) Libvirt: (libvirt-bin) 4.0.0-1ubuntu8.8 QEMU: 1:2.11+dfsg-1ubuntu7.12 QEMU-KVM: 1:2.11+dfsg-1ubuntu7.12 Guest OS: FreeBSD 12.0-RELEASE If the VM configuration uses i440FX chipset, everything works as expected. When configured to use Q35 chipset, virtio failed to load properly and any device configured to use virtio would not be detected. Attachments within zip of data gathered from the same VM: QEMU-KVM_freebsd_virtio_1.png - screen shot of the VM configuration as seen in virt-manager z_fbsd_q35.xml - Libvirt/QEMU XML configuration for the same VM seen in the screen shot pciconf_12.0_r341666_ori.txt - output of 'pciconf -lvce' of the original kernel r341666 used during install pciconf_12.0_r345757_custom.txt - output of 'pciconf -lvce' of the kernel r345757 built from updated src sysctl.hw_r345757_custom.txt - output of 'sysctl hw' of the kernel r345757 built from updated src Custom12 - kernel configuration (copy of GENERIC with unneeded drivers and configs removed) make.conf - make.conf used in building kernel r345757 src.conf - src.conf used in building kernel r345757. Buildworld was not done. Only buildkernel and installkernel. In the screen shot QEMU-KVM_freebsd_virtio_1.png, the "Controller SCSI 1" is added as SCSI controller having "Hypervisor default" model. FreeBSD detected and loaded the 'sym' SCSI driver. While the "Controller Virtio SCSI 0" is added as SCSI controller having "VirtIO SCSI" model. The custom kernel show the VirtIO PCI controller in pciconf but any virtio HDD attached does not show up in /dev. How to repeat: 1) Install Ubuntu 18.04.2 desktop to support virtualization using libvirt, QEMU-KVM, and virt-manager. 2) Use virt-manager to create/import a VM 2a) Select x86_64 architecture 2b) Make sure to check "Customize configuration before install" 3a) In the popup customization window, change the chipset from i440FX to Q35 in the overview. 3b) Select the HDD and change the "Disk bus" in "Advanced options" to VirtIO 3c) Select the NIC and change the "Device model" to virtio 4) Boot from imported HDD or from ISO media to install Utilizing the Q35 chipset, FreeBSD would neither boot properly nor install when both HDD and NIC are virtio. If the HDD is SATA type and NIC is other virtio, everything works. -- You are receiving this mail because: You are the assignee for the bug.help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-236922-227>
