Windows 7 VirtualBox Remote Setup

From richud.com
Jump to: navigation, search



Some of my notes only, not a tut!

Install VirtualBox remotely

Run install.bat with psexec -hesd

install.bat

@echo off
"%~dp0VirtualBox-5.0.10-104061-Win.exe" --silent --msiparams VBOX_START=0
"c:\Program Files\Oracle\VirtualBox\VBoxManage.exe" extpack install "%~dp0Oracle_VM_VirtualBox_Extension_Pack-5.0.10-104061.vbox-extpack"

Setup VM remotely

psexec -hes \\xx-xxxxx cmd
set vb="c:\Program Files\oracle\VirtualBox\vboxmanage.exe" 

%vb% createvm --name RSGISLib --basefolder "c:\localdata\VirtualBox VMs" --register --ostype Ubuntu_64
%vb% modifyvm RSGISLib  --ioapic on --acpi on --memory 2048 --cpus 2 --nic1 nat --clipboard bidirectional --draganddrop bidirectional --accelerate3d on
%vb% storagectl RSGISLib --name "IDE Controller" --add ide
%vb% storageattach RSGISLib --storagectl "IDE Controller" --port 0 --device 0 --type hdd --medium "c:\localdata\VirtualBox VMs\RSGISLib\RSGISLib.vdi"

%vb% sharedfolder add RSGISLib --name c-drive-share --hostpath c:\ --automount

Comments

blog comments powered by Disqus