Make Multiple Users of a Windows Computer Use the Same Virtual Machine

You use the administrator account of your computer and have friends who make use of other accounts on the same computer. You have installed VirtualBox on the PC. Problem is when your friends’ logon to their respective accounts to use VirtualBox they cannot see the virtual machine profiles that you created in the administrator account. Instead they have to create their own virtual machines and hard disks which can be a giant eater of disk space. What do you do? How do you make your own machine visible to their user accounts so they can use the same machine that you use and conserve disk space? Buckle up for the stepwise procedure.

Steps

  1. Create a group and call it VBOXUSERS then add as many users to the group as you want to access the administrator virtual machine
  2. For XP, go to system properties (i.e. right click on my computer icon and click properties).
  3. Select the advanced tab. Just at the bottom you’d see it smiling at your face. Yes, ENVIRONMENT VARIABLES. Click on it.
  4. Under the system variables section create new variable and name it "VBOX_USER_HOME" then the set the location to C:\Users\.VirtualBox\ (or any other preferable central location; it's important to write the last "\"). Click OK and exit.
  5. For Windows Vista and Windows 7, right click my computer icon and select properties. At the top left section of the window, looking down the list, you’d see advanced system settings.
  6. Click on it and follow step “3”.
  7. Click on it and follow step “4”. That’s it, seriously!!! Now anytime you create a virtual machine other authenticated users automatically get access to it.

Tips

  • In step “4” check the user variables section and delete any VBOX entry you find there before creating a new one under the system variables section.
  • Remember to set security settings for the new .VirtualBox folder to include the VBOXUSERS group!! If you don't know how, right click on the .VirtualBox folder and select security. From there you'll see an "add" and "delete" tab. Just add the group VBOXUSERS and set the users that you want to grant access to the machine.
  • Make sure you use individual hard disks for each installation to avoid boot conflicts. For example, having Linux, XP, and Server2003 on a single virtual hard disk is a huge no no
  • After you've finished the process described above, open VirtualBox and then close it again. This automatically creates the new .VirtualBox folder

Warnings

  • Don't try to use a single virtual disk to house more than one OS. The drawback of this is that you cannot start more than one machine at a time as opposed to using one virtual disk per OS. In other words, there will be no networking with other VMs.

Related Articles