Page 1 of 1

Add Virtual machines Automatically to Virtual Box

Posted: 17. Dec 2010, 03:59
by sahas20
Hi All,
I work for an education instute and our environment is totally mac. I have aroung 1600 macbooks to iamge for 2011 and Each MBP has a virtual Windows 7 VM. All macs are connected Active directory and Open Directory.
The problem I have is that we create the virtual machine using Local Admin account and I placed the virtual machine in a place accessible by all users(/Users/Shared/VirtualBox) (as the default install is in (~/Library/VirtualBox). But When the user logges in They can't see the Virtual machine. I still have to log in as a user and point the application to the VM. I want to not have to touch it after the imageing. I jsut need it to appear for the every user logges in to the machine. Is there a Script for this??

Please Help....

Thanks

Re: Add Virtual machines Automatically to Virtual Box

Posted: 18. Dec 2010, 16:56
by Sasquatch
Look for a system wide variable that you can set, then call it VBOX_USER_HOME and point it to the shared VM location. You have to make sure that everything for VB is in that common location, so the main XML has to be there too, so whoever starts VB can read it's config.
But keep in mind that after one run, the VirtualBox.xml file will become user read/write only. No group or other can read it. This means that User A logs on to the Mac, start VB, then closes it again, User B won't be able read the settings file on that same Mac. At least, that's how it's done on Linux. Mac OSX has a similar structure so it should apply for it too.