Date: Sun, 19 Nov 2017 19:25:37 -0800 From: Steven Wallace <swallace@bsd-vbox1q.sdwmail.homeunix.org> To: emulation@freebsd.org Subject: Re: Virtualbox virtual disk hang - log and workaround Message-ID: <5057017.9MPI4jYYLl@sdw.swallace.org> In-Reply-To: <1577436.n9UUmFPSP2@sdw.swallace.org> References: <1577436.n9UUmFPSP2@sdw.swallace.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sunday 19 November 2017 17:02:44 Steven Wallace wrote: > Ever since I have upgraded to FreeBSD 11.1 early this year, VirtualBox's > virtual disks will hang randomly. I have to SATA emulated devices which > are configured as FLAT devices to /dev/sd#x on two separate physical > drives. > Just to clarify, after a few minutes of use, after a disk access, Windows 7 will hang apparently waiting for a response from the vbox virtual driver. The system is not under heavy I/O. I am not sure why makes such a big difference, but I appear to have workaround based off of https://www.virtualbox.org/ticket/15281 * *System*: [x] Enable I/O APIC * *SATA controller*: [x] Use host I/O cache * *VDI*: [x] Solid-state drive Using the host i/O cache seems to be the big ticket for me, although if it really is a cache, I do not understand why it would be necessary for correct operation. The following is a log after the hang, with the key error being: 00:05:52.661844 AioMgr0-N: Request 0x0000081a630b20 failed with rc=VERR_TRY_AGAIN, migrating endpoint /dev/ada0s1 to failsafe manager. 00:05:52.685027 AIOMgr: I/O manager 0x000008210bc3a0 encountered a critical error (rc=VERR_FILE_AIO_NO_REQUEST) during operation. Falling back to failsafe mode. Expect reduced performance 00:05:52.685114 AIOMgr: Error happened in /usr/ports/emulators/virtualbox- ose/work/VirtualBox-5.2.0/src/VBox/VMM/VMMR3/PDMAsyncCompletionFileNormal.cpp: (1673){int pdmacFileAioMgrNormal(RTTHREAD, void *)} 00:05:52.685162 AIOMgr: Please contact the product vendor Steven ----------------------------------------------------------------- 00:00:02.137669 CPL-DS - CPL Qualified Debug Store = 0 (0) 00:00:02.137670 VMX - Virtual Machine Extensions = 0 (0) 00:00:02.137672 SMX - Safer Mode Extensions = 0 (0) 00:00:02.137674 EST - Enhanced SpeedStep Technology = 0 (0) 00:00:02.137675 TM2 - Terminal Monitor 2 = 0 (0) 00:00:02.137677 SSSE3 - Supplemental Streaming SIMD Extensions 3 = 1 (1) 00:00:02.137683 CNTX-ID - L1 Context ID = 0 (0) 00:00:02.137685 SDBG - Silicon Debug interface = 0 (0) 00:00:02.137686 FMA - Fused Multiply Add extensions = 0 (1) 00:00:02.137688 CX16 - CMPXCHG16B instruction = 1 (1) 00:00:02.137689 TPRUPDATE - xTPR Update Control = 0 (0) 00:00:02.137691 PDCM - Perf/Debug Capability MSR = 0 (0) 00:00:02.137692 PCID - Process Context Identifiers = 0 (0) 00:00:02.137693 DCA - Direct Cache Access = 0 (0) 00:00:02.137695 SSE4_1 - SSE4_1 support = 1 (1) 00:00:02.137697 SSE4_2 - SSE4_2 support = 1 (1) 00:00:02.137698 X2APIC - x2APIC support = 0 (0) 00:00:02.137700 MOVBE - MOVBE instruction = 0 (0) 00:00:02.137702 POPCNT - POPCNT instruction = 1 (1) 00:00:02.137703 TSCDEADL - Time Stamp Counter Deadline = 0 (0) 00:00:02.137705 AES - AES instructions = 1 (1) 00:00:02.137706 XSAVE - XSAVE instruction = 0 (1) 00:00:02.137708 OSXSAVE - OSXSAVE instruction = 0 (1) 00:00:02.137709 AVX - AVX support = 0 (1) 00:00:02.137711 F16C - 16-bit floating point conversion instructions = 0 (1) 00:00:02.137712 RDRAND - RDRAND instruction = 0 (0) 00:00:02.137714 HVP - Hypervisor Present (we're a guest) = 1 (0) 00:00:02.137715 Structured Extended Feature Flags Enumeration (leaf 7): 00:00:02.137716 Mnemonic - Description = guest (host) 00:00:02.137716 FSGSBASE - RDFSBASE/RDGSBASE/WRFSBASE/WRGSBASE instr. = 0 (0) 00:00:02.137717 TSCADJUST - Supports MSR_IA32_TSC_ADJUST = 0 (0) 00:00:02.137718 SGX - Supports Software Guard Extensions = 0 (0) 00:00:02.137720 BMI1 - Advanced Bit Manipulation extension 1 = 0 (1) 00:00:02.137721 HLE - Hardware Lock Elision = 0 (0) 00:00:02.137722 AVX2 - Advanced Vector Extensions 2 = 0 (0) 00:00:02.137724 FDP_EXCPTN_ONLY - FPU DP only updated on exceptions = 0 (0) 00:00:02.137725 SMEP - Supervisor Mode Execution Prevention = 0 (0) 00:00:02.137726 BMI2 - Advanced Bit Manipulation extension 2 = 0 (0) 00:00:02.137727 ERMS - Enhanced REP MOVSB/STOSB instructions = 0 (0) 00:00:02.137728 INVPCID - INVPCID instruction = 0 (0) 00:00:02.137730 RTM - Restricted Transactional Memory = 0 (0) 00:00:02.137731 PQM - Platform Quality of Service Monitoring = 0 (0) 00:00:02.137732 DEPFPU_CS_DS - Deprecates FPU CS, FPU DS values if set = 0 (0) 00:00:02.137733 MPE - Intel Memory Protection Extensions = 0 (0) 00:00:02.137735 PQE - Platform Quality of Service Enforcement = 0 (0) 00:00:02.137736 AVX512F - AVX512 Foundation instructions = 0 (0) 00:00:02.137737 RDSEED - RDSEED instruction = 0 (0) 00:00:02.137743 ADX - ADCX/ADOX instructions = 0 (0) 00:00:02.137744 SMAP - Supervisor Mode Access Prevention = 0 (0) 00:00:02.137745 CLFLUSHOPT - CLFLUSHOPT (Cache Line Flush) instruction = 0 (0) 00:00:02.137746 INTEL_PT - Intel Processor Trace = 0 (0) 00:00:02.137748 AVX512PF - AVX512 Prefetch instructions = 0 (0) 00:00:02.137749 AVX512ER - AVX512 Exponential & Reciprocal instructions = 0 (0) 00:00:02.137750 AVX512CD - AVX512 Conflict Detection instructions = 0 (0) 00:00:02.137751 SHA - Secure Hash Algorithm extensions = 0 (0) 00:00:02.137753 PREFETCHWT1 - PREFETCHWT1 instruction = 0 (0) 00:00:02.137754 PKU - Protection Key for Usermode pages = 0 (0) 00:00:02.137755 OSPKU - CR4.PKU mirror = 0 (0) 00:00:02.137757 Processor Extended State Enumeration (leaf 0xd): 00:00:02.137758 XSAVE area cur/max size by XCR0, guest: 0x0/0x0 00:00:02.137759 XSAVE area cur/max size by XCR0, host: 0x3c0/0x3c0 00:00:02.137760 Valid XCR0 bits, guest: 0x00000000`00000000 00:00:02.137761 Valid XCR0 bits, host: 0x40000000`00000007 ( x87 SSE YMM_Hi128 LWP ) 00:00:02.137764 XSAVE features, guest: 00:00:02.137765 XSAVE features, host: 00:00:02.137766 XSAVE area cur size XCR0|XSS, guest: 0x0 00:00:02.137767 XSAVE area cur size XCR0|XSS, host: 0x0 00:00:02.137768 Valid IA32_XSS bits, guest: 0x00000000`00000000 00:00:02.137769 Valid IA32_XSS bits, host: 0x00000000`00000000 00:00:02.137770 State #2, host: off=0x0240, cb=0x0100 IA32_XSS-bit -- YMM_Hi128 00:00:02.137774 State #62, host: off=0x0340, cb=0x0080 IA32_XSS-bit -- LWP 00:00:02.137776 Raw Hypervisor CPUID Leaves 00:00:02.137777 Leaf/sub-leaf eax ebx ecx edx 00:00:02.137777 Gst: 40000000/0000 40000006 786f4256 786f4256 786f4256 00:00:02.137779 Hst: 00000000 00000000 00000000 00000000 00:00:02.137780 Gst: 40000001/0000 31237648 00000000 00000000 00000000 00:00:02.137781 Hst: 00000000 00000000 00000000 00000000 00:00:02.137782 Gst: 40000002/0000 00000000 00000000 00000000 00000000 00:00:02.137783 Hst: 00000000 00000000 00000000 00000000 00:00:02.137784 Gst: 40000003/0000 00000af2 00000000 00000000 00000500 00:00:02.137785 Hst: 00000000 00000000 00000000 00000000 From owner-freebsd-emulation@freebsd.org Mon Nov 20 09:42:35 2017 Return-Path: <owner-freebsd-emulation@freebsd.org> Delivered-To: freebsd-emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 76417DE6CA3 for <freebsd-emulation@mailman.ysv.freebsd.org>; Mon, 20 Nov 2017 09:42:35 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 53F5A77858 for <freebsd-emulation@freebsd.org>; Mon, 20 Nov 2017 09:42:35 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 4F10FDE6C9F; Mon, 20 Nov 2017 09:42:35 +0000 (UTC) Delivered-To: emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4EC73DE6C9E for <emulation@mailman.ysv.freebsd.org>; Mon, 20 Nov 2017 09:42:35 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [96.47.72.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 21BB977856 for <emulation@freebsd.org>; Mon, 20 Nov 2017 09:42:35 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by freefall.freebsd.org (Postfix) id 777031FB38; Mon, 20 Nov 2017 09:42:34 +0000 (UTC) Delivered-To: vbox@localmail.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx1.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by freefall.freebsd.org (Postfix) with ESMTPS id 507141FB37 for <vbox@localmail.freebsd.org>; Mon, 20 Nov 2017 09:42:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7E57777854 for <vbox@FreeBSD.org>; Mon, 20 Nov 2017 09:42:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id vAK9gX4s087606 for <vbox@FreeBSD.org>; Mon, 20 Nov 2017 09:42:33 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: vbox@FreeBSD.org Subject: [Bug 223763] emulators/virtualbox-ose: USB Support Date: Mon, 20 Nov 2017 09:42:32 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: vermaden@interia.pl X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: vbox@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name attachments.created Message-ID: <bug-223763-26505@https.bugs.freebsd.org/bugzilla/> 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-Mailman-Approved-At: Mon, 20 Nov 2017 11:29:32 +0000 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Development of Emulators of other operating systems <freebsd-emulation.freebsd.org> List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-emulation>, <mailto:freebsd-emulation-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-emulation/> List-Post: <mailto:freebsd-emulation@freebsd.org> List-Help: <mailto:freebsd-emulation-request@freebsd.org?subject=help> List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-emulation>, <mailto:freebsd-emulation-request@freebsd.org?subject=subscribe> X-List-Received-Date: Mon, 20 Nov 2017 09:42:35 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223763 Bug ID: 223763 Summary: emulators/virtualbox-ose: USB Support Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: vbox@FreeBSD.org Reporter: vermaden@interia.pl Flags: maintainer-feedback?(vbox@FreeBSD.org) Assignee: vbox@FreeBSD.org Created attachment 188136 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D188136&action= =3Dedit filter According to the FreeBSD Handbook Virtualbox USB Support should work: > 21.6.2. VirtualBox=E2=84=A2 USB Support >=20 > VirtualBox=E2=84=A2 can be configured to pass USB devices through > to the guest operating system. The host controller of the > OSE version is limited to emulating USB 1.1 devices until > the extension pack supporting USB 2.0 and 3.0 devices > becomes available on FreeBSD. >=20 > For VirtualBox=E2=84=A2 to be aware of USB devices attached to the > machine, the user needs to be a member of the operator group. >=20 > # pw groupmod operator -m yourusername >=20 > Restart the login session and VirtualBox=E2=84=A2 for these changes > to take effect, and create USB filters as necessary. My user is in 'operator' group: % id vermaden uid=3D1000(vermaden) gid=3D1000(vermaden) groups=3D1000(vermaden),0(wheel),5(operator),44(video),920(vboxusers) Here are versions of kernel, userspace and packages: % pkg info -a|grep virtu virtualbox-ose-5.2.0_1 General-purpose full virtualizer for x86 hardware virtualbox-ose-kmod-5.2.0_1 VirtualBox kernel module for FreeBSD % uname -a FreeBSD t420s.local 11.1-RELEASE-p1 FreeBSD 11.1-RELEASE-p1 #0: Wed Aug 9 11:55:48 UTC 2017=20=20=20=20 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 % freebsd-version -k 11.1-RELEASE-p1 % freebsd-version -u 11.1-RELEASE-p3 The problem is I am not able to pass an USB device from Host to Guest. An USB device that is attached to Host generated this messages in dmesg(8): ugen2.4: <vendor 0x13fe USB DISK 3.0> at usbus2 umass0 on uhub4 umass0: <vendor 0x13fe USB DISK 3.0, class 0/0, rev 2.10/1.10, addr 4> on usbus2 umass0: SCSI over Bulk-Only; quirks =3D 0x8100 umass0:4:0: Attached to scbus4 da0 at umass-sim0 bus 0 scbus4 target 0 lun 0 da0: < USB DISK 3.0 PMAP> Removable Direct Access SPC-4 SCSI device da0: Serial Number EC0068F1F89A7D02 da0: 40.000MB/s transfers da0: 14786MB (30283008 512 byte sectors) da0: quirks=3D0x3<NO_SYNC_CACHE,NO_6_BYTE> And its available on usbconfig(8) as: ugen2.4: <vendor 0x13fe USB DISK 3.0> at usbus2, cfg=3D0 md=3DHOST spd=3DHI= GH (480Mbps) pwr=3DON (498mA) Its not possible to select that device in Devices > USB. I have even created a 'filter' with vendor =3D '13fe' for this device but t= hat does not help. Either I am creating this filter wrong or this does not work because of some other reason. Regards, vermaden --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5057017.9MPI4jYYLl>
