Can't Create a VM

Install virtual machines on your TNAS;
Locked
User avatar
GGI
Posts: 12
Joined: 04 Oct 2023, 18:12

Can't Create a VM

Post by GGI »

Posted this in another thread but I'm going to create my own for visibility.

I am trying to create a Virtualbox VM to run Linux. I have tried different ISOs, different configurations, and always end up the same way.

The VM will create, but when I try to start it I always get the error
"The virtual machine 'Ubuntu' has terminated unexpectedly during startup with exit code 1 (0x1)"

What's going on? This is on TOS 5.1 and an F2-223.
User avatar
TMqiky
Posts: 44
Joined: 07 Aug 2023, 18:10

Re: Can't Create a VM

Post by TMqiky »

What is the exact version of the system and can it be updated to version 5.1.67?
You can use the lsmod command to see if the vboxnetflt, vboxnetadp, and vboxdrv drivers are loaded.
Then switch directories

Code: Select all

cd /Volume1/@apps/virtualbox/kernel
Use

Code: Select all

modinfo vboxdrv.ko
Check if the driver was updated successfully.
To contact our team, please send email to following addresses, remember to replace (at) with @
Technical team: support(at)terra-master.com (for technical support)
Service team: service(at)terra-master.com (for purchasing, return, replacement, RMA service)
User avatar
GGI
Posts: 12
Joined: 04 Oct 2023, 18:12

Re: Can't Create a VM

Post by GGI »

TOS is at 5.1.67

lsmod comes back with nothing (headers of Module Size Used by) - no data listed.

modinfo vboxdrv.ko comes back with "Module alias vboxdrv.ko not found."

I had reinstalled VirtualBox twice (most recently just before starting this thread).
User avatar
TMzethar
TerraMaster Team
Posts: 1223
Joined: 27 Oct 2020, 16:43

Re: Can't Create a VM

Post by TMzethar »

It seems that the kernel was not successfully loaded. We suggest that you try restarting the TNAS and the app again.
If the problem persists, there may be an error in the system. Do you recall updating the TOS version before TOS 5.1.67?
If there is still no solution, you can consider:
1. Attempt to reinstall TOS:viewtopic.php?f=76&t=423
2. Contact the technical support email or the customer service window on the official website homepage, and we will arrange for engineers to conduct remote inspections
To contact our team, please send email to following addresses, remember to replace (at) with @:
Technical team: support(at)terra-master.com (for technical support)
Service team: service(at)terra-master.com (for purchasing, return, replacement, RMA service)
User avatar
GGI
Posts: 12
Joined: 04 Oct 2023, 18:12

Re: Can't Create a VM

Post by GGI »

This mentions reset and reinitialization. What will be affected when I do this so that I can prepare?

I currently have folder permissions as well as PLEX running on this NAS and I need to know what I will have to reinstall.

I understand that things "may" happen but what should I EXPECT when I reinstall the TOS?

I upgraded the TOS when I first set up my NAS - if I reinitialize, do I install the full file or the update file?

Thank you!
User avatar
GGI
Posts: 12
Joined: 04 Oct 2023, 18:12

Re: Can't Create a VM

Post by GGI »

I now have a "details" button - this is the detail of the error

Code: Select all

Exception Object
(
    [message:protected] => The virtual machine 'Ubuntu' has terminated unexpectedly during startup with exit code 1 (0x1)
    [string:Exception:private] => 
    [code:protected] => 0
    [file:protected] => /Volume1/@apps/virtualbox/webui/endpoints/lib/vboxconnector.php
    [line:protected] => 2443
    [trace:Exception:private] => Array
        (
            [0] => Array
                (
                    [file] => /Volume1/@apps/virtualbox/webui/endpoints/lib/vboxconnector.php
                    [line] => 951
                    [function] => remote_progressGet
                    [class] => vboxconnector
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Array
                                (
                                    [progress] => 11bbe6af606eab48-0000000000000004
                                )

                        )

                )

            [1] => Array
                (
                    [file] => /Volume1/@apps/virtualbox/webui/endpoints/api.php
                    [line] => 316
                    [function] => __call
                    [class] => vboxconnector
                    [type] => ->
                    [args] => Array
                        (
                            [0] => progressGet
                            [1] => Array
                                (
                                    [0] => Array
                                        (
                                            [progress] => 11bbe6af606eab48-0000000000000004
                                        )

                                    [1] => Array
                                        (
                                            [0] => Array
                                                (
                                                    [data] => Array
                                                        (
                                                            [responseData] => Array
                                                                (
                                                                    [progress] => 11bbe6af606eab48-0000000000000004
                                                                    [info] => Array
                                                                        (
                                                                            [completed] => 1
                                                                            [canceled] => 
                                                                            [description] => Starting VM
                                                                            [operationDescription] => Creating process for virtual machine "Ubuntu" (headless)
                                                                            [timeRemaining] => Array
                                                                                (
                                                                                )

                                                                            [timeElapsed] => Array
                                                                                (
                                                                                    [days] => 19646
                                                                                    [hours] => 10
                                                                                    [minutes] => 16
                                                                                    [seconds] => 57
                                                                                )

                                                                            [percent] => 0
                                                                        )

                                                                )

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

                                                    [errors] => Array
                                                        (
                                                        )

                                                    [persist] => Array
                                                        (
                                                        )

                                                    [messages] => Array
                                                        (
                                                        )

                                                )

                                        )

                                )

                        )

                )

        )

    [previous:Exception:private] => 
Locked

Return to “Virtual Machines”