Page 1 of 1

Sharing of VMs with root user

Posted: 25. Jul 2017, 11:48
by Piedpiper
Is there a way to share the VMs create by a non-root user to be visible to the root user to manage all user VMs on virtualbox 5.0.32,

Re: Sharing of VMs with root user

Posted: 25. Jul 2017, 13:21
by Perryg
Not easily and even when accomplished security is non-existent. VirtualBox is designed to restrict anyone other than the creator by default so as to secure the guest and sets the VBOX_USERS_HOME environment. Altering that and r/w becomes an issue.

Re: Sharing of VMs with root user

Posted: 25. Jul 2017, 14:06
by Martin
Of course nothing keeps the root user from switching to the users context with 'su - <username>' and manage the VMs there. ;)

Re: Sharing of VMs with root user

Posted: 25. Jul 2017, 14:22
by Piedpiper
Thanks, fully understand the associated security risks, but I'm running GNS3, which runs in root and my application runs in the userspace. So might need to move everything to root if sharing not an option.

Re: Sharing of VMs with root user

Posted: 25. Jul 2017, 14:32
by Perryg
I'm running GNS3, which runs in root
Why? Applications should never run in root. Is this the way they intend it to run?

Re: Sharing of VMs with root user

Posted: 25. Jul 2017, 14:58
by Piedpiper
yes, I tried running it in userspace, where it could start the VMs but I run into issues. Their documentation also says that they require root, but this is not for production application, more a lab that I am setting up so should be fine.

Re: Sharing of VMs with root user

Posted: 25. Jul 2017, 15:16
by Perryg
Wow, well someone needs to learn how to program and adapt the software to run properly. Anyway you do this just be sure that the host and guest never have access to LAN/WAN in the real world.