Unable to update Virtualbox template

Status
Not open for further replies.

alttab

Dabbler
Joined
Aug 7, 2014
Messages
11
Since i was getting strangs freezes in Win2012R2 virtual machines, i decided to upgrade Virtualbox in the Virtualbox jail template.
I did this using the following commands;

pkg install virtualbox-ose-4.3.18
pkg install virtualbox-ose-kmod-4.3.18

After this i am unable to start virtualmachines, getting the error below.

I happens in both Virtualbox 9.2.1.7 and 9.2.1.8, it's easy to reproduce with a clean jail.
Does anyone know how to fix it?


ERROR in phpvirtualbox:

Code:
Exception Object
(
    [message:protected] => The virtual machine 'Domoticz' has terminated unexpectedly during startup with exit code 1 (0x1)
    [string:Exception:private] =>
    [code:protected] => 0
    [file:protected] => /usr/local/www/phpvirtualbox/lib/vboxconnector.php
    [line:protected] => 2382
    [trace:Exception:private] => Array
        (
            [0] => Array
                (
                     => /usr/local/www/phpvirtualbox/lib/vboxconnector.php
                    [line] => 928
                    [function] => remote_progressGet
                    [class] => vboxconnector
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Array
                                (
                                    [progress] => 48e28023ab72bb13-000000000000003f
                                    [_persist] => Array
                                        (
                                            [vboxHandle] => 48e28023ab72bb13-000000000000003d
                                        )

                                    [fn] => progressGet
                                )

                        )

                )

            [1] => Array
                (
                     => /usr/local/www/phpvirtualbox/lib/ajax.php
                    [line] => 309
                    [function] => __call
                    [class] => vboxconnector
                    [type] => ->
                    [args] => Array
                        (
                            [0] => progressGet
                            [1] => Array
                                (
                                    [0] => Array
                                        (
                                            [progress] => 48e28023ab72bb13-000000000000003f
                                            [_persist] => Array
                                                (
                                                    [vboxHandle] => 48e28023ab72bb13-000000000000003d
                                                )

                                            [fn] => progressGet
                                        )

                                    [1] => Array
                                        (
                                            [0] => Array
                                                (
                                                    [data] => Array
                                                        (
                                                            [responseData] => Array
                                                                (
                                                                    [progress] => 48e28023ab72bb13-000000000000003f
                                                                    [info] => Array
                                                                        (
                                                                            [completed] => 1
                                                                            [canceled] =>
                                                                            [description] => Starting VM
                                                                            [operationDescription] => Creating process for virtual machine "Domoticz" (headless)
                                                                            [timeRemaining] => Array
                                                                                (
                                                                                )

                                                                            [timeElapsed] => Array
                                                                                (
                                                                                    [days] => 16371
                                                                                    [hours] => 23
                                                                                    [minutes] => 48
                                                                                    [seconds] => 47
                                                                                )

                                                                            [percent] => 0
                                                                        )

                                                                )

                                                            [success] => 1
                                                            [key] => 53474945cfd7ac0bf8114767c209c2a6
                                                        )

                                                    [errors] => Array
                                                        (
                                                        )

                                                    [persist] => Array
                                                        (
                                                        )

                                                    [messages] => Array
                                                        (
                                                        )

                                                )

                                        )

                                )

                        )

                )

            [2] => Array
                (
                     => /usr/local/www/phpvirtualbox/lib/ajax.php
                    [line] => 309
                    [function] => progressGet
                    [class] => vboxconnector
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Array
                                (
                                    [progress] => 48e28023ab72bb13-000000000000003f
                                    [_persist] => Array
                                        (
                                            [vboxHandle] => 48e28023ab72bb13-000000000000003d
                                        )

                                    [fn] => progressGet
                                )

                            [1] => Array
                                (
                                    [0] => Array
                                        (
                                            [data] => Array
                                                (
                                                    [responseData] => Array
                                                        (
                                                            [progress] => 48e28023ab72bb13-000000000000003f
                                                            [info] => Array
                                                                (
                                                                    [completed] => 1
                                                                    [canceled] =>
                                                                    [description] => Starting VM
                                                                    [operationDescription] => Creating process for virtual machine "Domoticz" (headless)
                                                                    [timeRemaining] => Array
                                                                        (
                                                                        )

                                                                    [timeElapsed] => Array
                                                                        (
                                                                            [days] => 16371
                                                                            [hours] => 23
                                                                            [minutes] => 48
                                                                            [seconds] => 47
                                                                        )

                                                                    [percent] => 0
                                                                )

                                                        )

                                                    [success] => 1
                                                    [key] => 53474945cfd7ac0bf8114767c209c2a6
                                                )

                                            [errors] => Array
                                                (
                                                )

                                            [persist] => Array
                                                (
                                                )

                                            [messages] => Array
                                                (
                                                )

                                        )

                                )

                        )

                )

        )

    [previous:Exception:private] =>
)
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
You cannot update virtualbox in the template. The virtualbox version in the jail *must* match the kernel driver. The kernel driver in FreeNAS 9.2.1.8 is not the latest version, so naturally when you do a pkg update you are instantly running in an unsupported configuration. I don't recommend updating the template yourself without extensive testing (and snapshotting the dataset before upgrading).

Sadly I think that you are going to have to create the vbox jail from scratch or go to a previous snapshot of the jail(or rollback the update if you even can).
 

alttab

Dabbler
Joined
Aug 7, 2014
Messages
11
You cannot update virtualbox in the template. The virtualbox version in the jail *must* match the kernel driver. The kernel driver in FreeNAS 9.2.1.8 is not the latest version, so naturally when you do a pkg update you are instantly running in an unsupported configuration. I don't recommend updating the template yourself without extensive testing (and snapshotting the dataset before upgrading).

Sadly I think that you are going to have to create the vbox jail from scratch or go to a previous snapshot of the jail(or rollback the update if you even can).

Thanks for your reply, i will revert back to the original template.
Are there plans for updating the template?
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
Yes. 9.3 should have support for 4.3.16 and possible 4.3.18. There will be a new template that will have to be installed (or you can do the updating yourself, but you will be on your own to do that).
 

TheWoo

Explorer
Joined
Jan 2, 2015
Messages
58
@cyberjock: The current VirtualBox release is 4.3.26, whereas the latest FreeNAS jail template is still running 4.3.12, if I'm correct. I came across this ticket, which seems to discuss the need for an update. Any idea when a newer version will be available? My Ubuntu VM crashes once in a while, and my hope is that a newer release of VirtualBox solves this issue.
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
You can easily update the template yourself. It uses pkg-ng and there's nothing special about it. The problem is the vbox .ko files have to be updated, and that's not likely to change in FreeNAS' base code until we get to 10.x.

So the jail/template would have to be updated along with the .ko files to match. It's hard to do, especially since 9.3 has a code freeze. Unless you can provide a pretty compelling argument to warrant the time to upgrade from the current version, you probably shouldn't expect an update until FreeNAS 10.
 

Sunii

Cadet
Joined
Oct 23, 2014
Messages
3
You can easily update the template yourself. It uses pkg-ng and there's nothing special about it. The problem is the vbox .ko files have to be updated, and that's not likely to change in FreeNAS' base code until we get to 10.x.

So the jail/template would have to be updated along with the .ko files to match. It's hard to do, especially since 9.3 has a code freeze. Unless you can provide a pretty compelling argument to warrant the time to upgrade from the current version, you probably shouldn't expect an update until FreeNAS 10.

I'd like to think this is a compelling reason http://www.zdnet.com/article/venom-security-flaw-millions-of-virtual-machines-datacenters/
 

kwolfe19

Cadet
Joined
May 25, 2015
Messages
3
I'm not sure anyone is still following this thread, but here is what I consider a compelling reason to upgrade VirtualBox to at least the latest 4.3 version. From Windows 10 there is no way to remotely connect to the VM's due to a change in RDP that isn't fixed until the latest build. Here is the VirtualBox ticket that explains the issue:
https://www.virtualbox.org/ticket/14216
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
In all seriousness, I would put a bug ticket in and request that the vbox kernel driver in FreeNAS be updated so that end-users can update their virtualbox jails themselves. Security vulnerabilities definitely justify upgrading the kernel driver.
 

nanopete

Dabbler
Joined
Nov 20, 2014
Messages
47
And this bug has been given up in priority of freenas 10 and bhyve. But is there any estimate to when a 10 beta can be expected?
 
Status
Not open for further replies.
Top