Skip to content

Instantly share code, notes, and snippets.

@CootCraig
Created December 21, 2011 13:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CootCraig/1505972 to your computer and use it in GitHub Desktop.
Save CootCraig/1505972 to your computer and use it in GitHub Desktop.
VirtualBox 2011-12-21 RHEL 6.1 host Windows 2003 guest
Commands used for a successful virtualbox setup Scientific Linux 6.1 host, Windows 2003 guest.
The Windows 2003 guest is run headless. Use an RDP client to access the console.
$ VBoxManage --version
4.1.8r75467
$ createvm.sh
$ storage.sh
VBoxHeadless --startvm Windows2003
# eject virtual CD
$ VBoxManage storageattach Windows2003 --storagectl 'Ide Controller' --port 0 --device 0 --type dvddrive --medium none
sudo VBoxManage createvm --name Windows2003 \
--basefolder /opt/virtual_box \
--ostype Windows2003 \
--register
sudo VBoxManage modifyvm Windows2003 --memory 768
sudo VBoxManage modifyvm Windows2003 --hwvirtex off
sudo VBoxManage modifyvm Windows2003 --vtxvpid off
sudo VBoxManage modifyvm Windows2003 --vram 32
sudo VBoxManage modifyvm Windows2003 --nic1 bridged --bridgeadapter1 eth0
sudo VBoxManage createhd --size 51200 --filename /opt/virtual_box/Windows2003/c_drive
sudo VBoxManage storagectl Windows2003 --name 'Ide Controller' --add ide --sataportcount 2 --bootable on --hostiocache on
sudo VBoxManage storageattach Windows2003 --storagectl 'Ide Controller' --port 0 --device 0 --type dvddrive --medium /opt/iso/en_win_srv_2003_r2_standard_cd1.iso
sudo VBoxManage storageattach Windows2003 --storagectl 'Ide Controller' --port 1 --device 0 --type hdd --medium /opt/virtual_box/Windows2003/c_drive.vdi
# cat /etc/yum.repos.d/virtualbox.repo
[virtualbox]
name=RHEL/CentOS-$releasever / $basearch - VirtualBox
baseurl=http://download.virtualbox.org/virtualbox/rpm/rhel/6.0/$basearch
enabled=1
gpgcheck=1
gpgkey=http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment