Page 1 of 1

[Help] No VMs works (exit code 1)

Posted: 26 Oct 2025, 04:22
by jollino
Hello, on my F6-424 running TOS 6.0.783 I've been trying to run VirtualBox, with zero success.
I created a basic VM using all defaults, and picking a debian netinst iso as the boot disk; I uploaded it to my user's home directory, which VirtualBox's web UI found just fine.

Trying to run the VM however results into an error with exit code 1 before it even boots:

Code: Select all

Exception Object
(
    [message:protected] => The virtual machine 'Debian' 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] => 2444
    [trace:Exception:private] => Array
        (
            [0] => Array
                (
                    [file] => /Volume1/@apps/virtualbox/webui/endpoints/lib/vboxconnector.php
                    [line] => 952
                    [function] => remote_progressGet
                    [class] => vboxconnector
                    [type] => ->
                )

            [1] => Array
                (
                    [file] => /Volume1/@apps/virtualbox/webui/endpoints/api.php
                    [line] => 316
                    [function] => __call
                    [class] => vboxconnector
                    [type] => ->
                )

        )

    [previous:Exception:private] => 
)
I have followed all the suggestions I found here, but nothing seems to help. Specifically:

- Set the hypervisor to KVM

- Moved the iso file to the admin user's home folder to prevent any permissions issues

- Made sure the modules are loaded:

Code: Select all

# lsmod | grep vbox
boxnetflt             32768  0
vboxnetadp             28672  0
vboxdrv               557056  2 vboxnetadp,vboxnetflt
- Checked that the kernel modules are up to date in /Volume1/@apps/virtualbox/kernel/: there are multiple directories, including 6.1.120+ (which matches the kernel version given via `uname -r`):

Code: Select all

master@Supernova:/Volume1/@apps/virtualbox/kernel/6.1.120+# modinfo vboxdrv.ko
filename:       /Volume1/@apps/virtualbox/kernel/6.1.120+/vboxdrv.ko
version:        7.0.20 r163906 (0x00330004)
license:        GPL
description:    Oracle VM VirtualBox Support Driver
author:         Oracle and/or its affiliates
srcversion:     9CBC44140E50A5E89770210
depends:        
retpoline:      Y
name:           vboxdrv
vermagic:       6.1.120+ SMP preempt mod_unload 
parm:           disabled:Disable automatic module loading (int)
parm:           force_async_tsc:force the asynchronous TSC mode (int)
- Restarted virtualbox's service:

Code: Select all

Oct 25 22:02:13 Supernova virtualbox[14088]: Starting virtualbox:
Oct 25 22:02:13 Supernova virtualbox[14139]: vboxdrv.sh: Stopping VirtualBox services.
Oct 25 22:02:13 Supernova vboxdrv.sh[14161]: Stopping VirtualBox services.
Oct 25 22:02:13 Supernova vboxdrv.sh[14168]: VirtualBox services stopped.
Oct 25 22:02:13 Supernova virtualbox[14139]: vboxdrv.sh: Starting VirtualBox services.
Oct 25 22:02:13 Supernova vboxdrv.sh[14217]: Starting VirtualBox services.
Oct 25 22:02:13 Supernova virtualbox[14139]: vboxdrv.sh: Building VirtualBox kernel modules.
Oct 25 22:02:13 Supernova vboxdrv.sh[14229]: Building VirtualBox kernel modules.
Oct 25 22:02:13 Supernova virtualbox[14237]: This system is currently not set up to build kernel modules.
Oct 25 22:02:13 Supernova virtualbox[14237]: Please install the gcc make perl packages from your distribution.
Oct 25 22:02:13 Supernova virtualbox[14237]: Please install the Linux kernel "header" files matching the current kernel
Oct 25 22:02:13 Supernova virtualbox[14237]: for adding new hardware support to the system.
Oct 25 22:02:13 Supernova virtualbox[14088]: kernel version:6.1.120+
Oct 25 22:02:13 Supernova virtualbox[14088]: kernel path:/Volume1/@apps/virtualbox/kernel/6.1.120+/*
Oct 25 22:02:14 Supernova kernel: vboxdrv: Found 4 processor cores/threads
Oct 25 22:02:14 Supernova kernel: vboxdrv: TSC mode is Invariant, tentative frequency 1689600512 Hz
Oct 25 22:02:14 Supernova kernel: vboxdrv: Successfully loaded version 7.0.20 r163906 (interface 0x00330004)
Oct 25 22:02:14 Supernova kernel: VBoxNetAdp: Successfully started.
Oct 25 22:02:14 Supernova kernel: VBoxNetFlt: Successfully started.
Oct 25 22:02:14 Supernova virtualbox[14270]: [sss_cache] [confdb_init] (0x0010): Unable to open config database [/var/lib/sss/db/config.ldb]
Oct 25 22:02:14 Supernova virtualbox[14270]: Could not open available domains
Oct 25 22:02:14 Supernova virtualbox[14267]: usermod: sss_cache exited with status 5
Oct 25 22:02:14 Supernova virtualbox[14267]: usermod: Failed to flush the sssd cache.
Oct 25 22:02:14 Supernova virtualbox[14275]: [sss_cache] [confdb_init] (0x0010): Unable to open config database [/var/lib/sss/db/config.ldb]
Oct 25 22:02:14 Supernova virtualbox[14275]: Could not open available domains
Oct 25 22:02:14 Supernova virtualbox[14272]: usermod: sss_cache exited with status 5
Oct 25 22:02:14 Supernova virtualbox[14272]: usermod: Failed to flush the sssd cache.
Oct 25 22:02:14 Supernova virtualbox[14284]: WARNING: Environment variable LOGNAME or USER does not correspond to effective user id.
Oct 25 22:02:14 Supernova virtualbox[14279]: Oracle VM VirtualBox web service Version 7.0.20
Oct 25 22:02:14 Supernova virtualbox[14279]: Copyright (C) 2007-2024 Oracle and/or its affiliates
Oct 25 22:02:14 Supernova virtualbox[14279]: 00:00:00.000088 main     VirtualBox web service 7.0.20 r163906 linux.amd64 (Jul 10 2024 16:04:28) release log
Oct 25 22:02:14 Supernova virtualbox[14279]: 00:00:00.000091 main     Log opened 2025-10-25T20:02:14.424072000Z
Oct 25 22:02:14 Supernova virtualbox[14279]: 00:00:00.000092 main     Build Type: release
Oct 25 22:02:14 Supernova virtualbox[14279]: 00:00:00.000095 main     OS Product: Linux
Oct 25 22:02:14 Supernova virtualbox[14279]: 00:00:00.000095 main     OS Release: 6.1.120+
Oct 25 22:02:14 Supernova virtualbox[14279]: 00:00:00.000096 main     OS Version: #50 SMP PREEMPT_DYNAMIC Thu Sep  4 14:04:59 CST 2025
Oct 25 22:02:14 Supernova virtualbox[14279]: 00:00:00.000129 main     DMI Product Name: 001-006-[F6-424]
Oct 25 22:02:14 Supernova virtualbox[14279]: 00:00:00.000137 main     DMI Product Version: Default string
Oct 25 22:02:14 Supernova virtualbox[14279]: 00:00:00.000143 main     Firmware type: UEFI
Oct 25 22:02:14 Supernova virtualbox[14279]: 00:00:00.000228 main     Secure Boot: Disabled
Oct 25 22:02:14 Supernova virtualbox[14279]: 00:00:00.000259 main     Host RAM: 15736MB (15.3GB) total, 14553MB (14.2GB) available
Oct 25 22:02:14 Supernova virtualbox[14279]: 00:00:00.000261 main     Executable: /usr/lib/virtualbox/vboxwebsrv
Oct 25 22:02:14 Supernova virtualbox[14279]: 00:00:00.000262 main     Process ID: 14279
Oct 25 22:02:14 Supernova virtualbox[14279]: 00:00:00.000262 main     Package type: LINUX_64BITS_UBUNTU_22_04
Oct 25 22:02:14 Supernova virtualbox[14088]: OK
Oct 25 22:02:14 Supernova systemd[1]: Started virtualbox.service.
- Made sure that everything is readable by user and group vbox (I even made it 777):

Code: Select all

master@Supernova:/home/master/VirtualBox VMs# ls -ld Debian
drwxrwxrwx 1 vbox vbox 74 Oct 25 21:39 Debian
master@Supernova:/home/master/VirtualBox VMs# ls -lR Debian/
Debian/:
total 20973576
-rwxrwxrwx 1 vbox vbox        2826 Oct 25 21:39 Debian.vbox
-rwxrwxrwx 1 vbox vbox        2827 Oct 25 21:39 Debian.vbox-prev
-rwxrwxrwx 1 vbox vbox 21476933632 Oct 25 21:38 Debian.vdi
- Checked that the CPU supports vmx flags:

Code: Select all

master@Supernova:/home/master/VirtualBox VMs# grep ^vmx /proc/cpuinfo 
vmx flags       : vnmi preemption_timer posted_intr invvpid ept_x_only ept_ad ept_1gb flexpriority apicv tsc_offset vtpr mtf vapic ept vpid unrestricted_guest vapic_reg vid ple shadow_vmcs ept_mode_based_exec tsc_scaling usr_wait_pause
vmx flags       : vnmi preemption_timer posted_intr invvpid ept_x_only ept_ad ept_1gb flexpriority apicv tsc_offset vtpr mtf vapic ept vpid unrestricted_guest vapic_reg vid ple shadow_vmcs ept_mode_based_exec tsc_scaling usr_wait_pause
vmx flags       : vnmi preemption_timer posted_intr invvpid ept_x_only ept_ad ept_1gb flexpriority apicv tsc_offset vtpr mtf vapic ept vpid unrestricted_guest vapic_reg vid ple shadow_vmcs ept_mode_based_exec tsc_scaling usr_wait_pause
vmx flags       : vnmi preemption_timer posted_intr invvpid ept_x_only ept_ad ept_1gb flexpriority apicv tsc_offset vtpr mtf vapic ept vpid unrestricted_guest vapic_reg vid ple shadow_vmcs ept_mode_based_exec tsc_scaling usr_wait_pause
- Tried running it by hand:

Code: Select all

master@Supernova:/Volume1/@apps/virtualbox/bin# ./VBoxManage startvm Debian
Waiting for VM "Debian" to power on...
VBoxManage: error: The virtual machine 'Debian' has terminated unexpectedly during startup with exit code 1 (0x1)
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component MachineWrap, interface IMachine
- Tried unloading the kvm modules in case they somehow conflicted with virtualbox:

Code: Select all

master@Supernova:/Volume1/@apps/virtualbox/bin# lsmod | grep kvm
kvm_intel             303104  0
kvm                  1097728  1 kvm_intel
irqbypass              16384  1 kvm
master@Supernova:/Volume1/@apps/virtualbox/bin# modprobe -r kvm_intel
master@Supernova:/Volume1/@apps/virtualbox/bin# ./VBoxManage startvm Debian
Waiting for VM "Debian" to power on...
VBoxManage: error: The virtual machine 'Debian' has terminated unexpectedly during startup with exit code 1 (0x1)
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component MachineWrap, interface IMachine
(continued)

Re: [Help] No VMs works (exit code 1)

Posted: 26 Oct 2025, 04:24
by jollino
- Made sure that USB was set to 1.1 (in fact it was entirely disabled), as some sources online suggest that to be the culprit

- Changed the network for the VM from NAT to bridged, then disabled it entirely

- Disabled the audio card in the VM

- Changed the graphics controller to VBoxVga

- Tried ALL the virtualization interfaces

- Changed the motherboard chipset, enabled cpu extended features, really tinkered with pretty much any setting

- Rebooted everything

- Uninstalled virtualbox (including the settings), rebooted and reinstalled it

Nothing worked. I'm genuinely at a loss. I've seen suggestions about "reinstalling TOS" but what exactly would that entail? And why exactly would I even have to do that just to get this to work, i.e. what would that accomplish? I'd rather fix whatever's broken by hand if at all possible, to avoid resetting other unrelated settings.

May or may not be be relevant: this used to be TOS 5.x on an F4-423, which I upgraded to TOS 6.x. Then I moved the disks to this F6-424 and expanded the array. I'm not sure I ever tried to use virtualbox on the old NAS, but I'm sure it never ever worked (I would remember that!).

It makes me wonder if the sssd cache miss (see the logs above) is somehow related to any of this.

Any help would be most welcome.