From owner-freebsd-doc@FreeBSD.ORG Thu Sep 5 18:20:01 2013 Return-Path: Delivered-To: freebsd-doc@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id CE903FB0 for ; Thu, 5 Sep 2013 18:20:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id ABEB02671 for ; Thu, 5 Sep 2013 18:20:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r85IK1IM042515 for ; Thu, 5 Sep 2013 18:20:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r85IK1Q2042514; Thu, 5 Sep 2013 18:20:01 GMT (envelope-from gnats) Date: Thu, 5 Sep 2013 18:20:01 GMT Message-Id: <201309051820.r85IK1Q2042514@freefall.freebsd.org> To: freebsd-doc@FreeBSD.org Cc: From: Patrick Powell Subject: Re: docs/181845: Virtualbox Host Setup needs acd0 in /etc/devfs.conf, also enable atapicam X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Patrick Powell List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Sep 2013 18:20:01 -0000 The following reply was made to PR docs/181845; it has been noted by GNATS. From: Patrick Powell To: Adam Vande More Cc: freebsd-gnats-submit@freebsd.org Subject: Re: docs/181845: Virtualbox Host Setup needs acd0 in /etc/devfs.conf, also enable atapicam Date: Thu, 05 Sep 2013 11:19:47 -0700 This is a multi-part message in MIME format. --------------070700030208080209090602 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 09/05/13 10:55, Adam Vande More wrote: > On Thu, Sep 5, 2013 at 12:23 PM, Patrick Powell > wrote: > > > >Number: 181845 > >Category: docs > >Synopsis: Virtualbox Host Setup needs acd0 in > /etc/devfs.conf, also enable atapicam > >Confidential: no > >Severity: non-critical > >Priority: low > >Responsible: freebsd-doc > >State: open > >Quarter: > >Keywords: > >Date-Required: > >Class: doc-bug > >Submitter-Id: current-users > >Arrival-Date: Thu Sep 05 17:30:00 UTC 2013 > >Closed-Date: > >Last-Modified: > >Originator: Patrick Powell > >Release: 8.4 > >Organization: > Astart Technologies > >Environment: > FreeBSD laptop_84.private 8.4-RELEASE FreeBSD 8.4-RELEASE #0 > r251259: Sun Jun 2 21:26:57 UTC 2013 > root@bake.isc.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 > > >Description: > The Wiki: > https://wiki.freebsd.org/VirtualBox > > And section 22.3.3 Virtualbox Host DVD/CD Access both indicate > that /etc/devfs.conf needs: > > perm cd* 0600 > perm xpt0 0660 > perm pass* 0660 > > However, if the CD/DVD on the host is detected as acd0 then you need: > > link acd0 cd0 > perm acd* 0600 > perm xpt0 0660 > perm pass* 0660 > > Also, as noted in another PR, you need to enable ATAPICAM. From > the Wiki: > > Host DVD/CD access > > atapicam kernel module needs to be loaded via /boot/loader.conf: > > atapicam_load="YES > > > Are you sure this makes sense? Using atapicam makes /dev/cd0 > available therefore the devfs.conf is good as is. The atapicam > reference should be there though. > > > -- > Adam Vande More As I discovered, my DVD/CD was detected as acd0, even with ATAPICAM, much to my surprise. I left the other stuff in as I was not sure of the impact on other parts of the VirtualBox operation. I discovered that VirtualBox apparently looks for cd0, as when I did not have that device it did not display a selection for the host drive. On another note, a couple of other applications appear to insist on /dev/cdrom, so I have the line: link acd0 cdrom in my devfs.conf. --------------070700030208080209090602 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit
On 09/05/13 10:55, Adam Vande More wrote:
On Thu, Sep 5, 2013 at 12:23 PM, Patrick Powell <papowell@astart.com> wrote:

>Number:         181845
>Category:       docs
>Synopsis:       Virtualbox Host Setup needs acd0 in /etc/devfs.conf, also enable atapicam
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-doc
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 05 17:30:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Patrick Powell
>Release:        8.4
>Organization:
Astart Technologies
>Environment:
FreeBSD laptop_84.private 8.4-RELEASE FreeBSD 8.4-RELEASE #0 r251259: Sun Jun  2 21:26:57 UTC 2013     root@bake.isc.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
The Wiki:
https://wiki.freebsd.org/VirtualBox

And section 22.3.3 Virtualbox Host DVD/CD Access both indicate that /etc/devfs.conf needs:

perm cd* 0600
perm xpt0 0660
perm pass* 0660

However, if the CD/DVD on the host is detected as acd0 then you need:

link acd0    cd0
perm acd* 0600
perm xpt0 0660
perm pass* 0660

Also, as noted in another PR,  you need to enable ATAPICAM.  From the Wiki:

Host DVD/CD access

atapicam kernel module needs to be loaded via /boot/loader.conf:

atapicam_load="YES

Are you sure this makes sense?  Using atapicam makes /dev/cd0 available therefore the devfs.conf is good as is.  The atapicam reference should be there though.


--
Adam Vande More
As I discovered,  my DVD/CD was detected as acd0, even with ATAPICAM,  much to my surprise.

I left the other stuff in as I was not sure of the impact on other parts of the VirtualBox operation.
I discovered that VirtualBox apparently looks for cd0,  as when I did not have that device it did not
display a selection for the host drive.

On another note,   a couple of other applications appear to insist on /dev/cdrom,  so I have the line:
link acd0 cdrom
in my devfs.conf.
--------------070700030208080209090602--