From owner-freebsd-emulation@FreeBSD.ORG Wed Oct 31 06:20:42 2012 Return-Path: Delivered-To: emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4A75EC2 for ; Wed, 31 Oct 2012 06:20:42 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from shell0.rawbw.com (shell0.rawbw.com [198.144.192.45]) by mx1.freebsd.org (Postfix) with ESMTP id 30F988FC0A for ; Wed, 31 Oct 2012 06:20:42 +0000 (UTC) Received: from eagle.yuri.org (stunnel@localhost [127.0.0.1]) (authenticated bits=0) by shell0.rawbw.com (8.14.4/8.14.4) with ESMTP id q9V6KeeU094791 for ; Tue, 30 Oct 2012 23:20:40 -0700 (PDT) (envelope-from yuri@rawbw.com) Message-ID: <5090C337.90202@rawbw.com> Date: Tue, 30 Oct 2012 23:20:39 -0700 From: Yuri User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:16.0) Gecko/20121023 Thunderbird/16.0.1 MIME-Version: 1.0 To: emulation@freebsd.org Subject: Re: VirtualBox: why there is no Passthrough checkbox on Storage screen? References: <508E56D2.7010106@rawbw.com> In-Reply-To: <508E56D2.7010106@rawbw.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Oct 2012 06:20:42 -0000 On 10/29/2012 03:13, Yuri wrote: > All conditions from section 23.3.3 are satisfied (atapicam is in > kernel and device permissions are right). > But storage screen only allows me to select some iso file to export > into guest. Passthrough checkbox never shows up on the Storage window. > For example, under IDE I see "IDE Primary Master", etc choices, it > says CD/DVD Drive but never offers passthrough (checkbox always stays > invisible). > > How to understand why isn't passthrough available? > > DVD drive is recognized by system as: > cd0 at ata2 bus 0 scbus9 target 0 lun 0 > cd0: Removable CD-ROM SCSI-0 device > I found the reason why Host Drive wasn't shown in the CD menu of the Storage screen. It failed to open /dev/xpt0 and silently ignored it. Function getDVDInfoFromCAM src/VBox/Main/src-server/freebsd/HostHardwareFreeBSD.cpp. Such error should not be ignored, since it causes confusion and questions like mine. My xpt0 has 0660 permissions as per Handbook 23.3.3: crw-rw---- 1 root operator 0, 97 Oct 29 01:15 /dev/xpt0 But my user wasn't in the group operator. So, no matter what permissions user and xpt0 file has, error should be issued by VirtualBox when the file can't be opened. Yuri