VBoxManage guestproperty - normal user or elevated user

Discussions related to using VirtualBox on Linux hosts.
Post Reply
jcdole
Posts: 95
Joined: 3. May 2013, 18:25
Primary OS: openSUSE
VBox Version: PUEL
Guest OSses: WIN 7, WIN 10
Location: South west of france

VBoxManage guestproperty - normal user or elevated user

Post by jcdole »

Hello.

Host : Opensuse leap 15.1
Guest : Opensuse leap 15.2
Virtrualbox Version 6.1.8 r137981 (Qt5.9.7)

I run into problem while using the cli with VBoxManage command on the Host side.
Using a normal user :
1-)

Code: Select all

sudo VBoxManage list vms
No error but return nothing

2-)

Code: Select all

VBoxManage list vms
return

Code: Select all

"LEAP_15.1_INITIAL" {2651d93b-a803-4003-8aeb-98b64caf8925}
"LEAP_15.1_TEST_EVERY_THINGS" {deaf0311-26b7-46f8-add2-01c15050b24c}
"WINXP_NONAME_01" {c536c16c-9309-4d51-9b60-740b7b310ee7}
"LEAP_15.2_BETA" {7a796708-46ab-4a7d-9abe-5aeb52aa4fbb}
3-)

Code: Select all

sudo VBoxManage guestproperty delete "LEAP_15.2_BETA" "VMname"
return error :

Code: Select all

VBoxManage: error: Could not find a registered machine named 'LEAP_15.2_BETA'
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 198 of file VBoxManageGuestProp.cpp
4-)

Code: Select all

VBoxManage guestproperty delete "LEAP_15.2_BETA" "VMname"
return error :

Code: Select all

VBoxManage: error: The VBoxGuestPropSvc service call failed with the error VERR_PERMISSION_DENIED
VBoxManage: error: Details: code VBOX_E_IPRT_ERROR (0x80bb0005), component ConsoleWrap, interface IConsole, callee nsISupports
VBoxManage: error: Context: "DeleteGuestProperty(Bstr(pszName).raw())" at line 207 of file VBoxManageGuestProp.cpp
Any help is welcome
jcdole
Posts: 95
Joined: 3. May 2013, 18:25
Primary OS: openSUSE
VBox Version: PUEL
Guest OSses: WIN 7, WIN 10
Location: South west of france

Re: VBoxManage guestproperty - normal user or elevated user

Post by jcdole »

from guest

Code: Select all

sudo VBoxControl guestproperty delete  "VMname"
return error :

Code: Select all

[sudo] password for root:
Oracle VM VirtualBox Guest Additions Command Line Management Interface Version 6.1.8
(C) 2008-2020 Oracle Corporation
All rights reserved.

VBoxControl: error: Failed to delete the property value, error VERR_PERMISSION_DENIED

from host

Code: Select all

VBoxManage guestproperty delete "LEAP_15.2_BETA" "VMname
return error :

Code: Select all

"VBoxManage: error: The VBoxGuestPropSvc service call failed with the error VERR_PERMISSION_DENIED
VBoxManage: error: Details: code VBOX_E_IPRT_ERROR (0x80bb0005), component ConsoleWrap, interface IConsole, callee nsISupports
VBoxManage: error: Context: "DeleteGuestProperty(Bstr(pszName).raw())" at line 207 of file VBoxManageGuestProp.cpp

Code: Select all

sudo VBoxManage guestproperty delete "LEAP_15.2_BETA" "VMname"
return error :

Code: Select all

VBoxManage: error: Could not find a registered machine named 'LEAP_15.2_BETA'
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 198 of file VBoxManageGuestProp.cpp
Any help is welcome
jcdole
Posts: 95
Joined: 3. May 2013, 18:25
Primary OS: openSUSE
VBox Version: PUEL
Guest OSses: WIN 7, WIN 10
Location: South west of france

Re: VBoxManage guestproperty - normal user or elevated user

Post by jcdole »

Guest Addition is installed.
User on host belongs to group vboxuser
User on running guest VM belongs to group vboxsf
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: VBoxManage guestproperty - normal user or elevated user

Post by scottgus1 »

Virtualbox runs in the logged-on user's environment and permissions. All the Virtualbox settings are in the user's Home folder, by default.

Running 'sudo' takes the command environment out of the logged in user's environment, thus removing vboxmanage's ability to see the user's files and the Virtualbox processes running, so you get errors and no outputs.
jcdole
Posts: 95
Joined: 3. May 2013, 18:25
Primary OS: openSUSE
VBox Version: PUEL
Guest OSses: WIN 7, WIN 10
Location: South west of france

Re: VBoxManage guestproperty - normal user or elevated user

Post by jcdole »

As my messages show, when I use the command as a normal user, I have an error :

Code: Select all

"VBoxManage: error: The VBoxGuestPropSvc service call failed with the error [b]VERR_PERMISSION_DENIED[/b]
VBoxManage: error: Details: code VBOX_E_IPRT_ERROR (0x80bb0005), component ConsoleWrap, interface IConsole, callee nsISupports
VBoxManage: error: Context: "DeleteGuestProperty(Bstr(pszName).raw())" at line 207 of file VBoxManageGuestProp.cpp
multiOS
Volunteer
Posts: 828
Joined: 14. Sep 2019, 16:51
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: WIN11,10, 7, Linux (various)
Location: United Kingdom

Re: VBoxManage guestproperty - normal user or elevated user

Post by multiOS »

The shared folders automatically appear in the media folder in Linux systems, unless directed elsewhere; and a relatively common issue is that the user does not have permission to access to the media folder, so can't get to the sf_folders within.

Try: chmod o+rx /media
jcdole
Posts: 95
Joined: 3. May 2013, 18:25
Primary OS: openSUSE
VBox Version: PUEL
Guest OSses: WIN 7, WIN 10
Location: South west of france

Re: VBoxManage guestproperty - normal user or elevated user

Post by jcdole »

Thank you everybody
Post Reply