Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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