I am getting close to running a headless Virtualbox-OSE and phpvirtualbox in the PBI Jail
in FreeNAS 8.2.0-BETA2 (amd64).
It has not been so straight forward...
1. Set up your PBI Jail ala the manual:
http://doc.freenas.org/index.php/Plu...orts_with_make
And login to your jail:
2. Install the ports tree:
Code:
portsnap fetch
portsnap extract
portsnap update
3. To get it to build you will need AISL however there will be a slight problem because FreeNAS is built WITHOUT_ACPI.
So you need to find yourself a copy of /usr/sbin/aisl from some other vanilla FreeBSD 8.2 install and place it into the
equivalent directory in your jail.
4. You will also need some kernel sources.
I installed subversion from ports in the jail so I could do this:
Code:
svn checkout svn://svn.freebsd.org/base/releng/8.2/sys /usr/src/sys
5. OK time for the port build of virtualbox.
Code:
cd /usr/ports/emulators/virtualbox-ose
make config
Here is what i configured:
vbox_config.jpg
Now build and install:
Virtualbox should now be *nearly* installed.
Virtualbox needs its kernel module to be installed in the host.
So in the host (NOT the jail) load the module:
Code:
kldload /mnt/<yourjailpath>/boot/modules/vboxdrv.ko
Then you need to enable this device in the jail.
I did this also from the host via devfs:
Code:
mount -t devfs devfs /mnt/<yourjailpath>/dev
6. Installing phpvirtualbox in the jail should be no problems**:
Code:
cd /usr/ports/www/phpvirtualbox
make install
** You will probably need some further configuration to get phpvirtualbox, PHP and a webserver working in the jail together.
However I am sure you can figure all that part from here. Once you get it configured, point your browser to your phpvirtualbox install.
--
Anyway I do have a test VM working though I have some issues with getting a bridged adapter to work in a Virtual Machine
There are some other modules that need to be loaded in the kernel; vboxnetflt.ko and vboxnetadp.ko
However I am getting a dependency error in the host with netgraph and vboxnetflt.
To tell you the truth I am not a wizard at any of this stuff, I am just playing around.
Though I would love if someone else would try this out.
My general thoughts are making me believe that turning this into a working PBI plugin in a jailed environment is going to be tricky.
Kernel modules cannot be loaded from within a jail and some host dependencies need to be resolved.
Though as I said I am no expert, I have never made a PBI before.
If anybody else gets this to go further please post here..