Failure to export a virtual machine

VBox 7.1.4_SUSE r165100
opensuse tumbleweed 20250220

The key message from below is Could not find a registered machine named 'os2v4.52'. What does “registered” mean?

If that is the case, why can I run the VM?

# /usr/bin/VBoxManage export os2v4.52 --output=/d500g/backups/vbox/os2v4\.52.ovf --verbose

VBoxManage: error: Could not find a registered machine named 'os2v4.52'
VBoxManage: error: Details: code VBOX_E_OBJECT_NOT_FOUND (0x80bb0001), component VirtualBoxWrap, interface IVirtualBox, callee nsISupports
VBoxManage: error: Context: "FindMachine(Bstr(a->argv[0]).raw(), machine.asOutParam())" at line 363 of file VBoxManageControlVM.cpp
VBoxManage: error: Could not find a registered machine named 'os2v4.52'
VBoxManage: error: Details: code VBOX_E_OBJECT_NOT_FOUND (0x80bb0001), component VirtualBoxWrap, interface IVirtualBox, callee nsISupports
VBoxManage: error: Context: "FindMachine(Bstr(strMachine).raw(), machine.asOutParam())" at line 1786 of file VBoxManageAppliance.cpp

You are running the command as root. As root has no VB installation/config, the command fails.

VB (and its commands) needs to be run as normal user (in the vboxusers group).

Ah. I am so used to backups needing to run as root.

I verified my account is in the vboxusers group.
I do not understand what the error message is saying.

$ /usr/bin/VBoxManage export os2v4.52 --output=/d500g/backups/vbox/os2v4.52.ovf
VBoxManage: error: Code NS_ERROR_ABORT (0x80004004) - Operation aborted (extended info not available)
VBoxManage: error: Context: "ExportTo(pAppliance, Bstr(pszAbsFilePath).raw(), pVSD.asOutParam())" at line 1867 of file VBoxManageAppliance.cpp

You may need to ask at the VB forum/support channels. I found one report with the exact same error message:
https://forums.virtualbox.org/viewtopic.php?t=112717

Okay. I will move the discussion there.