Run VirtualBox as non-root user on Debian 8.9

Discussions related to using VirtualBox on Linux hosts.

Run VirtualBox as non-root user on Debian 8.9

Postby Mato » 18. Nov 2017, 11:48

Hello,

I need use VirtualBox with Cuckoo as non-root user. So I have to run VirtualBox as cuckoo user. I have installed VirtualBox as root. I added user cuckoo to group vboxusers:
Code: Select all   Expand viewCollapse view
usermod -a -G vboxusers cuckoo

Code: Select all   Expand viewCollapse view
vboxusers:x:125:cuckoo


But I do not access to VBox machine or used of command
Code: Select all   Expand viewCollapse view
VBoxManage list vms
as cuckoo do not show any machine. When I use sudo all is ok, I see all machines. What additional steps I have to use for run VirtualBox as cuckoo user please?

Thanks for your help.
Mato
 
Posts: 5
Joined: 29. Jun 2014, 15:21
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Ubuntu, Windows XP, 7,8, Server

Re: Run VirtualBox as non-root user on Debian 8.9

Postby Perryg » 18. Nov 2017, 13:55

It sounds like you installed the guests as root as well setting the VBOX_USER_HOME environment for the guest to root. You can look at the location of the guests folders and see if it is in root or user cockoo. If root you should remove the guest ( not deleting ) and move the entire folder to the user home ( and chown the contents ) or just install again under the user without root or sudo. My suggestion to save time would be to start over using sudo to install VirtualBox and then non-sudo to install the guest/s.
Perryg
Site Moderator
 
Posts: 34282
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Run VirtualBox as non-root user on Debian 8.9

Postby Mato » 19. Nov 2017, 11:50

Perryg thanks. I installed it again under the user and all is ok.
Mato
 
Posts: 5
Joined: 29. Jun 2014, 15:21
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Ubuntu, Windows XP, 7,8, Server


Return to VirtualBox on Linux Hosts

Who is online

Users browsing this forum: jj007 and 18 guests