This is an old revision of the document!
Oracle VirtualBox (for OS compatibility)
This guide describes how to create a shared virtualbox between several users in a Windows domain environment.
This guide will use a virtual machine with Windows XP, but it could be anything you like. The purpose of this
is to have a virtual environment for programs that can’t run on your primary Operating System.
The package creates a shortcut on all users’ desktop called “Create VirtualXP”. When someone clicks this icon,
a new shortcut will appear on that users’ desktop called “VirtualXP”. This shortcut loads the shared virtual machine,
disables auto-update and disables all the default pop-up messages. If the icon has already been clicked, nothing will happen.
Tested With:
- OPSI 4.0.2.4
- Winst 4.11.3.3
- Windows 7, 64-Bit
Instructions:
Okay, this package is not that easy and you will need to do some preparations for it to work.
- Prepare VirtualBox-installer (.msi):
- Start off by downloading VirtualBox for Windows from: https://www.virtualbox.org/wiki/Downloads
- Open a command prompt and write: VirtualBox-4.3.0-89960-Win.exe –extract
- You can now find the .msi-file under Appdata → Local → Temp → Virtualbox. You will need both the .msi-file (x64) and the common.cab.
- Copy them to CLIENT_DATA\VirtualBox
- Prepare the certificate for silent install:
- Now you should install the program (just use the .exe-file) – accept the certificate when prompted.
- When installed, go to Run… and write certmgr.msc.
- Navigate to “trusted publishers” → Right click and browse to Export… - export the certificate as “oraclecert.cer”.
- Copy the certificate to CLIENT_DATA\Certificate
- Prepare the virtual machine:
- Create a new virtual machine in VirtualBox (doesn’t have to be Windows XP – could also be linux ect.) and set it up with the software you like.
- Network could cause problems when you install the package to a new PC if “bridged” mode is set – I use NAT.
- When the virtual machine is created as you like, shut it down.
- Copy the VM-folder from <user folder>\VirtualBox VMs to CLIENT_DATA\VMs-folder.
- Prepare the user-specific shortcut:
- Create a shortcut to your desktop with a path to: “C:\Program Files\Oracle\VirtualBox\VBoxManage.exe” startvm VirtualXP.
- Copy this shortcut to CLIENT_DATA\VMs-folder.
- Prepare the .bat-file:
- Create a .bat-file (scroll to bottom) and copy it to CLIENT_DATA\VMs.
Tree:
CLIENT_DATA
├ setup.ins
├ uninstall.ins
├ delsub.ins
├ vbox-virtualxplogo.png
├ Certificate
│ └ oraclecert.cer
├ Icons
│ ├ registericon.ico
│ └ virtualxpicon.ico
├ VirtualBox
│ ├ common.cab
│ └ VirtualBox-X.X.XX-rXXXXX-MultiArch_amd64.msi
└ VMs
├ VirtualXp(.lnk)
├ Create_VirtualXP.bat
└ VirtualXP
├ VirtualXP.vbox
├ VirtualXP.vbox-prev
├ VirtualXP.vdi
└ Logs (folder)
