Cannot launch any virtual machine (code 1)

Discussions related to using VirtualBox on Linux hosts.
Post Reply
alexey
Posts: 2
Joined: 25. Mar 2022, 15:11

Cannot launch any virtual machine (code 1)

Post by alexey »

Host OS: Ubuntu Server 18.04
Guest OS: Any (doesn't matter).

Installation steps:
1. I installed virtualbox from virtualbox. org/virtualbox/debian (virtualbox-6.1)
2. Added current user to group vboxusers
3. Installed corresponding version of Extension Pack
4. Added linux user vbox and added him to group vboxusers
5. Installed phpvirtualbox

So now I can log in into Virtualbox Web interface, I can add any virtual machine and can create any virtual disk.
But when I try to start virtual machine, it keeps failing with error "The virtual machine 'testboot' has terminated unexpectedly during startup with exit code 1 (0x1)".
No log file is presented in /home/vbox/VirtualBox VMs/*/

What I do wrong?

Full error text:

Code: Select all

Exception Object
(
    [message:protected] => The virtual machine 'testboot' has terminated unexpectedly during startup with exit code 1 (0x1)
    [string:Exception:private] => 
    [code:protected] => 0
    [file:protected] => /var/www/html/endpoints/lib/vboxconnector.php
    [line:protected] => 2443
    [trace:Exception:private] => Array
        (
            [0] => Array
                (
                    [file] => /var/www/html/endpoints/lib/vboxconnector.php
                    [line] => 951
                    [function] => remote_progressGet
                    [class] => vboxconnector
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Array
                                (
                                    [progress] => 8002845ea886f556-0000000000000004
                                )

                        )

                )

            [1] => Array
                (
                    [file] => /var/www/html/endpoints/api.php
                    [line] => 316
                    [function] => __call
                    [class] => vboxconnector
                    [type] => ->
                    [args] => Array
                        (
                            [0] => progressGet
                            [1] => Array
                                (
                                    [0] => Array
                                        (
                                            [progress] => 8002845ea886f556-0000000000000004
                                        )

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

                                                                            [timeElapsed] => Array
                                                                                (
                                                                                    [days] => 19076
                                                                                    [hours] => 13
                                                                                    [minutes] => 23
                                                                                    [seconds] => 43
                                                                                )

                                                                            [percent] => 0
                                                                        )

                                                                )

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

                                                    [errors] => Array
                                                        (
                                                        )

                                                    [persist] => Array
                                                        (
                                                        )

                                                    [messages] => Array
                                                        (
                                                        )

                                                )

                                        )

                                )

                        )

                )

        )

    [previous:Exception:private] => 
)
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows, Linux

Re: Cannot launch any virtual machine (code 1)

Post by scottgus1 »

alexey wrote:Host OS: Ubuntu Server 18.04
.....
1. I installed virtualbox from virtualbox. org/virtualbox/debian (virtualbox-6.1)
Ubuntu puts their fork of Virtualbox in their OS's, and sometimes that forked version doesn't completely uninstall when official Virtualbox is installed, if I remember correctly. Do a complete purge of everything related to Virtualbox, including Ubuntu's fork, then reboot, run the official Virtualbox prerequisites https://www.virtualbox.org/manual/ch02. ... nux-prereq , then install official Virtualbox again.
alexey
Posts: 2
Joined: 25. Mar 2022, 15:11

Re: Cannot launch any virtual machine (code 1)

Post by alexey »

scottgus1 wrote: Do a complete purge of everything related to Virtualbox, including Ubuntu's fork
How to do that?
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows, Linux

Re: Cannot launch any virtual machine (code 1)

Post by scottgus1 »

May be different with different Linux OSs. Web-search your host OS's help channels.
PaulHartwig
Posts: 3
Joined: 17. Apr 2022, 12:20

Re: Cannot launch any virtual machine (code 1)

Post by PaulHartwig »

and you are very sure, that virtualization is enabled in BIOS?
Post Reply