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
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",
sed -i '' 's/latest/quarterly/g' /usr/local/etc/pkg/repos/FreeBSD.conf
vi /etc/rc.conf
+ apache24_enable="YES"
+ vboxwebsrv_user="vbox"
+ vboxwebsrv_enable="YES"
printf 'apache24_enable="YES"%s\nvboxwebsrv_user="vbox"%s\nvboxwebsrv_enable="YES"' >> /etc/rc.conf
vi /usr/local/www/phpvirtualbox/config.php
- var $password = 'pass';
+ var $password = 'VBox123';
sed -i '' "s/password = 'pass'/password = 'VBox123'/g" /usr/local/www/phpvirtualbox/config.php
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">
sed -i '' 's@DocumentRoot "/usr/local/www/apache24/data"@DocumentRoot "/usr/local/www/phpvirtualbox"@g' /usr/local/etc/apache24/httpd.conf
sed -i '' 's@Directory "/usr/local/www/apache24/data"@Directory "/usr/local/www/phpvirtualbox"@g' /usr/local/etc/apache24/httpd.conf
I thought I did too, but I double checked and I didn't miss that part. From what I can see, it looks like the package was updated on the 3rd to 5.1.12. Currently I'm trying to downgrade to 5.1.6 so that it matches up. I also looked into updated the kernel module, but that'd have to be done outside the Jail, and I don't want to mess with that.
Thanks, i have logged in, imported my machine, but i see this error:
SUP_IOCTL_COOKIE: Version mismatch. Requested: 0x280000 Min: 0x280000 Current: 0x260000
# pkg info | grep -i virtualbox virtualbox-ose-kmod-5.1.6 VirtualBox kernel module for FreeBSD
Can you please post the txz file somewhere for us to download?I found that I have older virtualbox package still in a cache on one machine
root@virtualbox:/var/cache/pkg # ls -la /var/cache/pkg/virtualbox-ose-5.1.6_1-b81cf4010c.txz
-rw-r--r-- 1 root wheel 42999872 Dec 15 07:53 /var/cache/pkg/virtualbox-ose-5.1.6_1-b81cf4010c.txz
is it possible to copy it to jail on other machine and install it from file? with which "pkg" command?
EDIT: thanks for example with ports, I will try it.
Thanks! If I can get it to install with this I will try to correct part of the instructions.try to download it from here
https://uloz.to/!9e9bFYciX3Of/virtualbox-ose-5-1-6-1-b81cf4010c-txz
switch to English and choose "Slow download"
root@virtualbox:/usr/lib # pkg info | grep virtualbox phpvirtualbox-5.0.5 AJAX Web Interface for VirtualBox virtualbox-ose-5.1.6_1 General-purpose full virtualizer for x86 hardware virtualbox-ose-kmod-5.1.6 VirtualBox kernel module for FreeBSD
VirtualBox VM 5.1.6 r110634 freebsd.amd64 (Dec 15 2016 06:00:01) release log 00:00:00.029511 Log opened 2017-02-09T18:01:52.350198000Z 00:00:00.029512 Build Type: release 00:00:00.029521 OS Product: FreeBSD 00:00:00.029523 OS Release: 10.3-RELEASE 00:00:00.029526 OS Version: FreeBSD 10.3-STABLE #0 r295946+1805185(9.10.2-STABLE): Wed Jan 11 17:12:42 UTC 2017 root@gauntlet:/freenas-9.10-releng/_BE/objs/freenas-9.10-releng/_BE/os/sys/FreeNAS.amd64 00:00:00.029542 Host RAM: 32679MB total, 2898MB available 00:00:00.029544 Executable: /usr/local/lib/virtualbox/VBoxHeadless 00:00:00.029544 Process ID: 83251 00:00:00.029545 Package type: BSD_64BITS_GENERIC (OSE) 00:00:00.040273 Installed Extension Packs: 00:00:00.040288 Oracle VM VirtualBox Extension Pack (Version: 5.1.6 r110634; VRDE Module: VBoxVRDP unusable because of 'Failed to locate the main module ('VBoxPuelMain')') 00:00:00.040296 VNC (Version: 5.1.6 r110634; VRDE Module: VBoxVNC) 00:00:00.040728 Console: Machine state changed to 'Starting' 00:00:00.041246 rtldrNativeLoad: dlopen('/usr/local/lib/virtualbox/ExtensionPacks/VNC/freebsd.amd64/VBoxVNC.so', RTLD_NOW | RTLD_LOCAL) failed: Shared object "libvncserver.so.0" not found, required by "VBoxVNC.so" 00:00:00.041265 VRDE: Error loading the library '/usr/local/lib/virtualbox/ExtensionPacks/VNC/freebsd.amd64/VBoxVNC.so': Shared object "libvncserver.so.0" not found, required by "VBoxVNC.so" (VERR_FILE_NOT_FOUND) 00:00:00.041277 VRDE: Failed: (VERR_FILE_NOT_FOUND): Could not find the VirtualBox Remote Desktop Extension library 00:00:00.041299 ERROR [COM]: aRC=NS_ERROR_FAILURE (0x80004005) aIID={872da645-4a9b-1727-bee2-5585105b9eed} aComponent={ConsoleWrap} aText={Could not find the VirtualBox Remote Desktop Extension library}, preserve=false aResultDetail=0 00:00:00.041709 Console: Machine state changed to 'PoweredOff' 00:00:00.062018 Power up failed (vrc=VERR_FILE_NOT_FOUND, rc=NS_ERROR_FAILURE (0X80004005))
root@virtualbox:/usr/lib # pkg info | grep vnc libvncserver-0.9.11 Provide an easy API to a custom vnc server
root@virtualbox:/usr/lib # vboxmanage list extpacks Extension Packs: 2 Pack no. 0: Oracle VM VirtualBox Extension Pack Version: 5.1.6 Revision: 110634 Edition: Description: USB 2.0 and USB 3.0 Host Controller, Host Webcam, VirtualBox RDP, PXE ROM, Disk Encryption. VRDE Module: VBoxVRDP Usable: false Why unusable: Failed to locate the main module ('VBoxPuelMain') Pack no. 1: VNC Version: 5.1.6 Revision: 110634 Edition: Description: VNC plugin module VRDE Module: VBoxVNC Usable: true Why unusable:
root@virtualbox:/home/vbox # pkg info | grep vnc libvncserver-0.9.9_11 Provide an easy API to a custom vnc server root@virtualbox:/home/vbox # pkg info | grep virtualbox phpvirtualbox-5.0.5 AJAX Web Interface for VirtualBox virtualbox-ose-5.1.6_1 General-purpose full virtualizer for x86 hardware virtualbox-ose-kmod-5.1.6 VirtualBox kernel module for FreeBSD
After a ton of searching I have manged to find both virtualbox-ose 5.1.6 and virtualbox-ose-kmod 5.1.6, now however it appears that libvncserver0 is also an issue.
Does anyone have a copy of libvncserver-0.9.10.txz ?
[/code]