Page 1 of 1

Run VirtualBox as non-root user on Debian 8.9

Posted: 18. Nov 2017, 11:48
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.

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

Posted: 18. Nov 2017, 13:55
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.

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

Posted: 19. Nov 2017, 11:50
by Mato
Perryg thanks. I installed it again under the user and all is ok.