HOWTO: Installing VirtualBox 4 on FreeBSD 8.2
VirtualBox 4 had been released few weeks ago, the major new feature that come with release is usb support in guest's, to me, this fix me the problem of installing printer on FreeBSD as I failed before, unfortunately VirtualBox had not been yes come in ports not in testing, so the only way to get is to grab it from svn:
Now update your source tree, my supfile look like this:
Now update src tree:
Build your kernel then build virtualbox kernel module's:
In order to use usb in guest's, you have set permission's to usb device's to be accessible by vbox user(s):
Add your user account to operator group:
To load this rules automatically add this to /etc/rc.conf:
Restart /etc/rc.d/devfs to load this rules right now:
Finally add vbox module to /boot/loader.conf to be loaded automatically when you start your system:
Using host CD/DVD in guest:
The following configuration works to me:
Edit /etc/devfs.conf:
Also, you have to load atapicam module, or you can add it to /boot/loader.conf:
VirtualBox 4 had been released few weeks ago, the major new feature that come with release is usb support in guest's, to me, this fix me the problem of installing printer on FreeBSD as I failed before, unfortunately VirtualBox had not been yes come in ports not in testing, so the only way to get is to grab it from svn:
Code:
svn http://svn.bluelife.at/index.cgi/blueports
cd blueports/emulators/virtualbox-ose
make install clean
Code:
*default host=cvsup5.de.FreeBSD.org
*default base=/var/db
*default prefix=/usr
*default release=cvs tag=RELENG_8
*default delete use-rel-suffix
*default compress
src-all
Code:
cvsup stable-supfile
Code:
cd /usr/src
make buildkernel
make installkernel
cd /path/to/blueports/emulators/virtualbox-ose-kmod
make install clean
Code:
ee /etc/devfs.rules
[localrules=10]
add path 'usb/*' mode 0660 group operator
Code:
pw groupmod -n operator -m SIFE
Code:
echo 'devfs_system_ruleset="system"' >> /etc/rc.conf
Code:
/etc/rc.d/devfs restart
Code:
echo 'vbox_load=â€YESâ€' >> /boot/loader.conf
The following configuration works to me:
Code:
ee /etc/devfs.rules
add path 'acd*' mode 0660 group operator
add path 'cd*' mode 0660 group operator
add path 'usb/*' mode 0660 group operator
Code:
link acd0 cd0
own acd* SIFE:wheel
perm acd* 0660
own cd* SIFE:wheel
perm cd* 0660
perm xpt* 0660
perm pass* 0660
Code:
echo 'atapicam_load="YES"' >> /boot/loader.conf