ffc4 HOWTO: Installing VirtualBox 4 on FreeBSD 8.2 - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Miscellaneous > Howtos & FAQs (Moderated)

Howtos & FAQs (Moderated) Would you like to share some of your solutions for certain problems? Tips or tricks? Post here. All new topics are automatically moderated.

Reply
 
Thread Tools Display Modes
  #1  
Old April 4th, 2011, 10:11
SIFE SIFE is offline
Member
 
Join Date: Feb 2009
Location: When ever where ever
Posts: 462
Thanks: 51
Thanked 16 Times in 15 Posts
Default HOWTO: Installing VirtualBox 4 on FreeBSD 8.2

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:
Code:
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:
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
Now update src tree:
Code:
cvsup stable-supfile
Build your kernel then build virtualbox kernel module's:
Code:
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):
Code:
ee /etc/devfs.rules
[localrules=10]
add path 'usb/*' mode 0660 group operator
Add your user account to operator group:
Code:
pw groupmod -n operator -m SIFE
To load this rules automatically add this to /etc/rc.conf:
Code:
echo 'devfs_system_ruleset="system"' >> /etc/rc.conf
Restart /etc/rc.d/devfs to load this rules right now:
Code:
/etc/rc.d/devfs restart
Finally add vbox module to /boot/loader.conf to be loaded automatically when you start your system:
Code:
echo 'vbox_load=”YES”' >> /boot/loader.conf
Using host CD/DVD in guest:
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
Edit /etc/devfs.conf:
Code:
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:
Code:
echo 'atapicam_load="YES"' >> /boot/loader.conf

Last edited by SIFE; April 4th, 2011 at 19:57.
Reply With Quote
The Following 2 Users Say Thank You to SIFE For This Useful Post:
rapzo (April 19th, 2011), vermaden (April 4th, 2011)
  #2  
Old April 20th, 2011, 17:45
Paul-LKW Paul-LKW is offline
Junior Member
 
Join Date: Oct 2009
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Many thanks for your full details, but do you know how to make extension pack work? It seems under /usr/local/lib/virtualbox/ExtensionPacks/Oracle_VM_VirtualBox_Extension_Pack/ do not has freebsd.amd64 directory and hence not work for VRDP.

Last edited by DutchDaemon; April 20th, 2011 at 18:06.
Reply With Quote
  #3  
Old April 25th, 2011, 17:31
decke decke is offline
Junior Member
 
Join Date: Jan 2010
Posts: 19
Thanks: 0
Thanked 3 Times in 2 Posts
Default

Extension packs are tar archives with binary blobs and the one from Oracle does not support FreeBSD. So this is not a problem that the port can solve.
Reply With Quote
  #4  
Old April 26th, 2011, 21:49
decke decke is offline
Junior Member
 
Join Date: Jan 2010
Posts: 19
Thanks: 0
Thanked 3 Times in 2 Posts
Default

Quote:
Originally Posted by SIFE View Post
Code:
svn http://svn.bluelife.at/index.cgi/blueports
That is wrong and should be:
Code:
svn co https://svn.bluelife.at/projects/blueports/
Reply With Quote
  #5  
Old April 29th, 2011, 03:03
SIFE SIFE is offline
Member
 
Join Date: Feb 2009
Location: When ever where ever
Posts: 462
Thanks: 51
Thanked 16 Times in 15 Posts
Default

@decke If I am not wrong,
Code:
svn so
is the some
Code:
svn
, using HTTP or HTTPS to fetch files is not difference since there is no password to sent in our case(my opinion).
Reply With Quote
  #6  
Old April 29th, 2011, 08:25
decke decke is offline
Junior Member
 
Join Date: Jan 2010
Posts: 19
Thanks: 0
Thanked 3 Times in 2 Posts
Default

That's not relevant but /index.cgi is the SVN::Web Perl Webinterface and /projects the WebDAV root for subversion.
Reply With Quote
  #7  
Old April 29th, 2011, 09:53
olegrpg olegrpg is offline
Junior Member
 
Join Date: Nov 2008
Location: Ukraine
Posts: 5
Thanks: 1
Thanked 2 Times in 2 Posts
Default

Mayby need to change the sequence install:
1. install blueports/emulators/virtualbox-ose-kmod, because by default install old version from /usr/ports
2. install blueports/emulators/virtualbox-ose
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem installing FreeBSD 8-RELEASE on Virtualbox khAttAm Installing & Upgrading 7 April 5th, 2011 00:20
Installing 7.2 in Virtualbox travis Installing & Upgrading 19 April 7th, 2010 08:29
[Solved] Installing under Virtualbox Chad5ter Installing & Upgrading 4 December 12th, 2009 19:52
Installing FreeBSD7.2 on VirtualBox 3.0.0 primatephreak Installing & Upgrading 4 September 2nd, 2009 10:41
howto install freeBSD on iMac/howto boot from CD leizhenhua Other Architectures 1 June 15th, 2009 06:09


All times are GMT +1. The time now is 22:12.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0