Virtual Box Can't read cd0

Installing and maintaining the FreeBSD Ports Collection or FreeBSD Packages (i.e. third party software).

Virtual Box Can't read cd0

Postby urlugal » 13 Apr 2012, 14:43

I am trying to install Windows Server 2008R2 as a guest on my FreeBSD 9.0 host. I have followed all the instructions in the wiki namely:
[FILE]atapicam[/FILE] kernel module needs to be loaded via [FILE]/boot/loader.conf[/FILE]:
Code: Select all

HAL has to run at the moment so enable it in [FILE]/etc/rc.conf[/FILE] and start it if not yet done:
Code: Select all
# /usr/local/etc/rc.d/hald start

Your account needs permissions to access [FILE]/dev/xpt0[/FILE], [FILE]/dev/cdN[/FILE] and [FILE]/dev/passN[/FILE] so add this to [FILE]/etc/devfs.conf[/FILE]:
Code: Select all
perm cd0 0660
perm xpt0 0660
perm pass0 0660

This is the error that I get. I am running this as a normal user. I just installed Virtual Box from ports after updating my ports tree. The version is 4.1.12_OSE r77245

Code: Select all
Failed to open a session for the virtual machine windows2k8.

Cannot open host device '/dev/cd0' for read/write access. Check the permissions of that device (VERR_ACCESS_DENIED).

Result Code: NS_ERROR_FAILURE (0x80004005)
Component: Console
Interface: IConsole {1968b7d3-e3bf-4ceb-99e0-cb7c913317bb}

I have tried playing with the permissions and owner myself even going to far as to [FILE]chmod 777[/FILE] and change the owner to [FILE]vboxusers[/FILE] but still no luck. Any thoughts on where to look, I am somewhat knew to FreeBSD but have been using Linux for over 10 years.
Junior Member
Posts: 2
Joined: 09 Apr 2012, 19:17

Postby je33 » 13 Apr 2012, 20:48

Welcome to the forums. See:

While it's a bit dated, it has all you should need about permissions to get your host CD drive running. Albeit, you will need to localize the actual rules you create for your system.

Good luck! :)
Junior Member
Posts: 55
Joined: 04 Jun 2010, 14:49

Return to Installation and Maintenance of FreeBSD Ports or Packages

Who is online

Users browsing this forum: No registered users and 2 guests