Bug 181845 - Virtualbox Host Setup needs acd0 in /etc/devfs.conf, also enable atapicam
Summary: Virtualbox Host Setup needs acd0 in /etc/devfs.conf, also enable atapicam
Status: Open
Alias: None
Product: Documentation
Classification: Unclassified
Component: Documentation (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-doc mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-05 18:30 UTC by papowell
Modified: 2018-01-03 05:16 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description papowell 2013-09-05 18:30:00 UTC
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"
Comment 1 amvandemore 2013-09-05 18:55:38 UTC
> 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
Comment 2 papowell 2013-09-05 19:19:47 UTC
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.
Comment 3 papowell 2013-09-05 19:29:16 UTC
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.
Comment 4 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 08:01:32 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped