ad08 VirtualBox headless inside a Jail? - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Base System > General

General General questions about the FreeBSD operating system. Ask here if your question does not fit elsewhere.

Reply
 
Thread Tools Display Modes
  #1  
Old February 18th, 2011, 23:47
minimike minimike is offline
Member
 
Join Date: May 2010
Posts: 153
Thanks: 8
Thanked 1 Time in 1 Post
Default VirtualBox headless inside a Jail?

Hi

I don't know if it's possible, so why I'm asking. It is possible to run VirtualBox inside a jail? For networking I could give VIMAGE a try. But I am not sure if I need more.

Kind regards,
Darko.

Last edited by DutchDaemon; February 19th, 2011 at 01:25.
Reply With Quote
  #2  
Old February 20th, 2011, 19:25
da1 da1 is offline
Member
 
Join Date: Sep 2009
Location: Berlin,DE
Posts: 659
Thanks: 23
Thanked 48 Times in 44 Posts
Default

Haven't tried it myself but don't see any reason why not.
Reply With Quote
  #3  
Old August 2nd, 2011, 18:41
tty23 tty23 is offline
Junior Member
 
Join Date: Dec 2009
Posts: 51
Thanks: 7
Thanked 0 Times in 0 Posts
Default

Hi minimike,

I want to try the same. Did you succeed?

Are there any pitfalls to avoid?

Thanks

Johannes
Reply With Quote
  #4  
Old July 24th, 2012, 23:15
kalw kalw is offline
Junior Member
 
Join Date: Jul 2012
Posts: 1
Thanks: 0
Thanked 2 Times in 1 Post
Default

Hi there,

Not quite clean but post mortem here are the steps used to make it work


On the jail host :

* make vbox kernel module : %make -C /usr/ports/emulators/virtualbox-ose-kmod install clean

* load it : %/usr/local/etc/rc.d/vboxnet start

* mount src dir used to build module on jail used : %mount -t nullfs /usr/src /path/to/my/jail/basejail/usr/src

* allow sysv : %echo "jail_sysvipc_allow=\"YES\"" | tee -a /etc/rc.conf

* unhide devices needed by vbox on jail :
%diff /usr/src/etc/defaults/devfs.rules /etc/defaults/devfs.rules
34a35,36
> add path vboxdrv0 unhide
> add path vboxnetctl unhide

* start or restart jail .

In the jail :

* edit virtualbox-ose Makefile to avoid the build of module by commenting the RUN_DEPENDS line

* build vbox : make -C /usr/ports/emulators/virtualbox-ose install clean
Reply With Quote
The Following 2 Users Say Thank You to kalw For This Useful Post:
kouk (February 12th, 2013), teh_fink (November 28th, 2012)
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
Cron job inside jail scv General 4 May 26th, 2010 08:30
ssmtp not working from inside jail Moe Web & Network Services 21 March 22nd, 2010 00:08
DNS inside jail gpatrick Web & Network Services 0 November 1st, 2009 04:43
ezjail and zfs from inside the jail wonslung General 9 June 2nd, 2009 00:05
syslog-ng inside jail myha Installing & Upgrading 1 December 23rd, 2008 13:28


All times are GMT +1. The time now is 13:05.


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