From nobody@FreeBSD.org  Thu Sep  5 17:23:29 2013
Return-Path: <nobody@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 633CFC7E
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  5 Sep 2013 17:23:29 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id 5265321F5
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  5 Sep 2013 17:23:29 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r85HNTop056197
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 5 Sep 2013 17:23:29 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r85HNTMY056194;
	Thu, 5 Sep 2013 17:23:29 GMT
	(envelope-from nobody)
Message-Id: <201309051723.r85HNTMY056194@oldred.freebsd.org>
Date: Thu, 5 Sep 2013 17:23:29 GMT
From: Patrick Powell <papowell@astart.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Virtualbox Host Setup needs acd0 in /etc/devfs.conf, also enable atapicam
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>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:  Fri Sep 06 00:54:36 UTC 2013
>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" 
>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:

From: Adam Vande More <amvandemore@gmail.com>
To: Patrick Powell <papowell@astart.com>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: docs/181845: Virtualbox Host Setup needs acd0 in /etc/devfs.conf,
 also enable atapicam
Date: Thu, 5 Sep 2013 12:55:38 -0500

 --047d7bd751602a13e304e5a6a163
 Content-Type: text/plain; charset=ISO-8859-1
 
 > 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
 
 --047d7bd751602a13e304e5a6a163--

From: Patrick Powell <papowell@astart.com>
To: Adam Vande More <amvandemore@gmail.com>
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
 
 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--

From: Patrick Powell <papowell@astart.com>
To: Adam Vande More <amvandemore@gmail.com>
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:29:16 -0700

 This is a multi-part message in MIME format.
 --------------030808020602030302040107
 Content-Type: text/plain; charset=ISO-8859-1; format=flowed
 Content-Transfer-Encoding: 7bit
 
 I just checked and then rebooted my system.  It appears that loading 
 atapicam will create /dev/cd0,  so you
 can skip the actions with /dev/acd0.   I have both /dev/cd0 and 
 /dev/acd0 entries.
 
 --------------030808020602030302040107--
>Unformatted:
