Hi all,
as part of Feature #18630 Update to 2016Q4 Ports Tree is updated virtualbox-ose-kmod from 4.3.34 to 5.1.6:
current night build FreeNAS-9.10-MASTER-201612100422 (4d7d293)
[root@freenas3] ~# pkg info | grep -i virtualbox
virtualbox-ose-kmod-5.1.6 VirtualBox kernel module for FreeBSD
last stable FreeNAS-9.10.1-U4 (ec9a7d3)
[root@freenas] ~# pkg info |grep virtualbox
virtualbox-ose-kmod-4.3.34 VirtualBox kernel module for FreeBSD
Because of this update startup of Virtualbox VM in virtualbox jail fails and in "dmesg" output is error:
SUP_IOCTL_COOKIE: Version mismatch. Requested: 0x1a0007 Min: 0x1a0005 Current: 0x260000
Will you create new virtualbox jail template with 5.1.6 vbox version?
With 9.10 are many users using virtualbox jail and freenas 10 is not yet out.
If not, here are steps how to create new virtualbox jail yourself, for those, who want to still use virtualbox with current 9.10 version after update of virtualbox-ose-kmod to 5.1.6.
Before that, backup your machines in original virtualbox jail, so that you can move them to new jail after creation.
Steps to create new virtualbox jail
===================================
Jails -> Add Jail -> "virtualbox"
- this will create standart freebsd jail, do not choose old vbox template
jexec virtualbox
vi /usr/local/etc/pkg/repos/FreeBSD.conf
- url: "pkg+
http://pkg.FreeBSD.org/freebsd:10:x86:64/latest",
+ url: "pkg+
http://pkg.FreeBSD.org/freebsd:10:x86:64/quarterly",
pkg upgrade
pkg install virtualbox-ose phpvirtualbox apache24 mod_php56
adduser
Username: vbox
Full name: vbox
Uid (Leave empty for default): 1001
Login group [vbox]:
Login group is vbox. Invite vbox into other groups? []: vboxusers
Login class [default]:
Shell (sh csh tcsh git-shell nologin) [sh]:
Home directory [/home/vbox]:
Home directory permissions (Leave empty for default):
Use password-based authentication? [yes]:
Use an empty password? (yes/no) [no]:
Use a random password? (yes/no) [no]:
Enter password:VBox123
Enter password again:VBox123
Lock out the account after creation? [no]:
Username : vbox
Password : *****
Full Name : vbox
Uid : 1001
Class :
Groups : vbox vboxusers
Home : /home/vbox
Home Mode :
Shell : /bin/sh
Locked : no
OK? (yes/no): y
adduser: INFO: Successfully added (vbox) to the user database.
Add another user? (yes/no): no
Goodbye!
vi /etc/rc.conf
+ apache24_enable="YES"
+ vboxwebsrv_user="vbox"
+ vboxwebsrv_enable="YES"
service vboxwebsrv start
vi /usr/local/www/phpvirtualbox/config.php
- var $password = 'pass';
+ var $password = 'VBox123';
vi /usr/local/etc/apache24/httpd.conf
- DocumentRoot "/usr/local/www/apache24/data"
+ DocumentRoot "/usr/local/www/phpvirtualbox"
- <Directory "/usr/local/www/apache24/data">
+ <Directory "/usr/local/www/phpvirtualbox">
# In section <IfModule mime_module>, add after x-gzip type for php module:
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
#
+ AddType application/x-httpd-php .php
+ AddType application/x-httpd-php-sources .phps
#
# workaround for older phpvirtualbox-5.0.5
vi /usr/local/www/phpvirtualbox/endpoints/api.php
- $response['data']['responseData']['phpvboxver'] = @constant('PHPVBOX_VER');
+ $response['data']['responseData']['phpvboxver'] = "5.1-0";
service apache24 start
ifconfig -a|grep inet
http://x.x.x.x
admin/admin
Enjoy!
I would create also template from this, but do now know how..
Kam