Code: Select all
[scott@scott-dell7577 ~]$ VBoxManage list vms
"<inaccessible>" {40f0f5f6-a651-459c-aa4b-9afd94088847}
"<inaccessible>" {4c4c4544-004d-4c10-8042-b9c04f4c4832}
"NewestWin" {a2c4b5b7-6ae2-4f48-8c8d-2684f19b81de}
[scott@scott-dell7577 ~]$
Code: Select all
[scott@scott-dell7577 ~]$ VBoxManage modifyvm "NewestWin" --pciattach 01:00.0a@01:00.0
Oracle VM VirtualBox Command Line Management Interface Version 6.1.4
(C) 2005-2020 Oracle Corporation
All rights reserved.
Usage:
VBoxManage modifyvm <uuid|vmname>
..... LONG usage output text notice ending with
[--defaultfrontend default|<name>]
VBoxManage: error: Unknown option: --pciattach
Code: Select all
[[scott@scott-dell7577 ~]$ sudo VBoxManage modifyvm "NewestWin" --pciattach 01:00.0a@01:00.0
[sudo] password for scott:
VBoxManage: error: Could not find a registered machine named 'NewestWin'
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 546 of file VBoxManageModifyVM.cpp
What do I do? I don't want to register the VM to root, but it seems that I must run VBoxManage as root. But then it won't operate on machines which are owned by other users. How to i get out of this catch 22 please?
Is the solution that I must Unregister the VM, then register it as root? This machine was created with the virtualbox application, so it's xml file was automatically generated and sits inside the .config directory. So what I need to do is sometihng like
1. go into the .config file And create a new xml for the VM. 2. detach all virtual disk derives 3. unregister the machine 4. register it using sudo VBoxManage 5, Finally import the machine to the virtualbox accoutn of my own.
Surely there is something simpler i can do.
I am sorry to be so stupid; thank you for your help.
Scott
P.S. May I humbly suggest that the error which is returned when not running with root priviliges should NOT be unknown option, but rather something like "Only root can do that" or "insuficient permission"