From owner-freebsd-virtualization@freebsd.org Sun Jan 12 23:40:06 2020 Return-Path: Delivered-To: freebsd-virtualization@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 059421EF1EA for ; Sun, 12 Jan 2020 23:40:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 47wtVs7200z3DvN for ; Sun, 12 Jan 2020 23:40:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id EF4961EF1E9; Sun, 12 Jan 2020 23:40:05 +0000 (UTC) Delivered-To: virtualization@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id EF0CC1EF1E8 for ; Sun, 12 Jan 2020 23:40:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47wtVs6lyFz3DvM for ; Sun, 12 Jan 2020 23:40:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id DF07D23780 for ; Sun, 12 Jan 2020 23:40:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 00CNe5ew049734 for ; Sun, 12 Jan 2020 23:40:05 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 00CNe5qt049733 for virtualization@FreeBSD.org; Sun, 12 Jan 2020 23:40:05 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: virtualization@FreeBSD.org Subject: [Bug 241774] FreeBSD 11.3 & 12.0 has broken SCSI & Networking on KVM/QEMU Q35 with OVMF Date: Sun, 12 Jan 2020 23:40:06 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.3-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: matt@snowtrek.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Jan 2020 23:40:06 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D241774 --- Comment #39 from MattS --- On my Host OS unRAID 6.8.0, i440fx with seabios or OVFM FreeBSD just hangs = on boot. One of the unRAID developers (jonp) spent a little time on it, and was also unsuccessful. It's possible that it's an unRAID specific issue. Not su= re at this point. https://forums.unraid.net/topic/84692-freebsd-113-no-network-interface-afte= r-upgrade/page/2/?tab=3Dcomments#comment-809306 I was able to get virtio NIC working on 12.1 with TommyP's patch. (Thank yo= u!) *************************************** What is/are the CPU/s for your host OS? cat /proc/cpuinfo (unRAID 6.8 running Linux 4.19.88 kernel) processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 158 model name : Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz stepping : 10 microcode : 0xca cpu MHz : 4299.634 cache size : 12288 KB physical id : 0 siblings : 12 core id : 0 cpu cores : 6 apicid : 0 initial apicid : 0 fpu : yes fpu_exception : yes cpuid level : 22 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca = cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds= _cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic mov= be popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefet= ch cpuid_fault invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 er= ms invpcid rtm mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp md_cle= ar flush_l1d bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf= mds swapgs taa itlb_multihit bogomips : 6384.00 clflush size : 64 cache_alignment : 64 address sizes : 39 bits physical, 48 bits virtual power management: *************************************** Libvirt version: 5.8.0 QEMU version: 4.1.1 *************************************** Did you verify that the relevant virtual technology features are enabled on= the host: IOMMU for AMD and VT/D (?) for Intel? I'm not sure how to show this on unRAID, but VT/D is enabled and PCIe ACS Override is enabled for better IMMO grouping. I have a variety of VMs and Dockers working. Ubuntu, Windows 10, FreeBSD 11.2, MacOS, Kali Linux. Multi= ple GPU's, NIC, audio, and USB cards passed through to VMs.=20 **************************************** How are you creating/managing your VMs on the host? VM configuration is done via GUI (see attached) with an option to edit XML = if needed. By default, the template network adapter type is "virtio", I then h= ave to switch to XML view and change to e1000. XML below is just a default configuration with NIC changed to e1000 (FreeBSD 11.3, Q35-4.1 cylon20 522c2643-079b-7464-7120-70fdc2f7ec57 FreeBSD 11.3 4194304 4194304 4 /machine hvm /usr/share/qemu/ovmf-x64/OVMF_CODE-pure-efi.fd =20=20=20 /etc/libvirt/qemu/nvram/522c2643-079b-7464-7120-70fdc2f7ec57_VARS-pu= re-efi.fd destroy restart restart /usr/local/sbin/qemu