SIFE
April 4th, 2011, 10:11
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:
svn http://svn.bluelife.at/index.cgi/blueports
cd blueports/emulators/virtualbox-ose
make install clean
Now update your source tree, my supfile look like this:
*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
Now update src tree:
cvsup stable-supfile
Build your kernel then build virtualbox kernel module's:
cd /usr/src
make buildkernel
make installkernel
cd /path/to/blueports/emulators/virtualbox-ose-kmod
make install clean
In order to use usb in guest's, you have set permission's to usb device's to be accessible by vbox user(s):
ee /etc/devfs.rules
[localrules=10]
add path 'usb/*' mode 0660 group operator
Add your user account to operator group:
pw groupmod -n operator -m SIFE
To load this rules automatically add this to /etc/rc.conf:
echo 'devfs_system_ruleset="system"' >> /etc/rc.conf
Restart /etc/rc.d/devfs to load this rules right now:
/etc/rc.d/devfs restart
Finally add vbox module to /boot/loader.conf to be loaded automatically when you start your system:
echo 'vbox_load=”YES”' >> /boot/loader.conf
Using host CD/DVD in guest:
The following configuration works to me:
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
Edit /etc/devfs.conf:
link acd0 cd0
own acd* SIFE:wheel
perm acd* 0660
own cd* SIFE:wheel
perm cd* 0660
perm xpt* 0660
perm pass* 0660
Also, you have to load atapicam module, or you can add it to /boot/loader.conf:
echo 'atapicam_load="YES"' >> /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:
svn http://svn.bluelife.at/index.cgi/blueports
cd blueports/emulators/virtualbox-ose
make install clean
Now update your source tree, my supfile look like this:
*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
Now update src tree:
cvsup stable-supfile
Build your kernel then build virtualbox kernel module's:
cd /usr/src
make buildkernel
make installkernel
cd /path/to/blueports/emulators/virtualbox-ose-kmod
make install clean
In order to use usb in guest's, you have set permission's to usb device's to be accessible by vbox user(s):
ee /etc/devfs.rules
[localrules=10]
add path 'usb/*' mode 0660 group operator
Add your user account to operator group:
pw groupmod -n operator -m SIFE
To load this rules automatically add this to /etc/rc.conf:
echo 'devfs_system_ruleset="system"' >> /etc/rc.conf
Restart /etc/rc.d/devfs to load this rules right now:
/etc/rc.d/devfs restart
Finally add vbox module to /boot/loader.conf to be loaded automatically when you start your system:
echo 'vbox_load=”YES”' >> /boot/loader.conf
Using host CD/DVD in guest:
The following configuration works to me:
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
Edit /etc/devfs.conf:
link acd0 cd0
own acd* SIFE:wheel
perm acd* 0660
own cd* SIFE:wheel
perm cd* 0660
perm xpt* 0660
perm pass* 0660
Also, you have to load atapicam module, or you can add it to /boot/loader.conf:
echo 'atapicam_load="YES"' >> /boot/loader.conf