Page 1 of 1

multiple users sharing VirtualBox hosted on Linux

Posted: 18. Jun 2014, 03:20
by pw
I am currently using Vagrant to control VirtualBox VMs. The Vagrant host is a linux server (for which I am not the owner). Other people are going to want to create VMs on this same host. I am unclear on how to police or even have visibility into the resource allocation of multiple VBox VMs owned by multiple users. I have experimented with vboxmanage commands that show me clearly about my usage but I am running as a single user. Can someone point me to some documentation about how you do this? Or explain to me how to create some sizing guidelines for us to share this hosting environment.

Re: multiple users sharing VirtualBox hosted on Linux

Posted: 18. Jun 2014, 03:32
by Perryg
Sorry we don't support vagrant

Re: multiple users sharing VirtualBox hosted on Linux

Posted: 18. Jun 2014, 19:16
by pw
I am not really asking about Vagrant. Vagrant is just to bring up the VBox VMs. I am asking about VirtualBox. If multiple users are on the same linux host bringing up VBox VM, is there any management facility within VirtualBox that is aware of the composite of resources that are being utilized by the multiple users and their VMs.

Re: multiple users sharing VirtualBox hosted on Linux

Posted: 18. Jun 2014, 20:30
by socratis
pw wrote:If multiple users are on the same linux host bringing up VBox VM, is there any management facility within VirtualBox that is aware of the composite of resources that are being utilized by the multiple users and their VMs.
Are you saying that you have multiple users using the same file (.vdi) for read-write operations? That would be a major no-no.

Re: multiple users sharing VirtualBox hosted on Linux

Posted: 18. Jun 2014, 22:18
by pw
No. Each user has his/her own files. Nothing shared except the host resources. That is the thing I am asking about. The consumption of the shared resources and all users using virtualbox vms to consume those resources.

Re: multiple users sharing VirtualBox hosted on Linux

Posted: 19. Jun 2014, 09:34
by socratis
Well, I understand better what you're saying, but even if there was a "resource monitor" for running VMs via VBoxManage (which I don't believe there is), the VMs would run under each user's context and not even root would know if a VM was running or not. You'd have to 'su <user>' and run VBoxManage for every one of your users.

I would focus on getting these stats from the host utilities directly.

Re: multiple users sharing VirtualBox hosted on Linux

Posted: 19. Jun 2014, 19:12
by pw
Thanks for clarifying this. I thought I just was not finding that information. I can stop looking and figure out plan b. now.
Thanks again.