Run VirtualBox as non-root user on Debian 8.9

Discussions related to using VirtualBox on Linux hosts.
Post Reply
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

Run VirtualBox as non-root user on Debian 8.9

Post by Mato »

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

usermod -a -G vboxusers cuckoo 

Code: Select all

vboxusers:x:125:cuckoo
But I do not access to VBox machine or used of command

Code: Select all

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.
Perryg
Site Moderator
Posts: 34369
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

Post by Perryg »

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.
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

Post by Mato »

Perryg thanks. I installed it again under the user and all is ok.
Post Reply