Setup VirtualBox RHEL 6.1 host Windows 2003 guest

Also see gist

VirtualBox 2011-12-21 RHEL 6.1 host Windows 2003 guest

# cat createvm.sh
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

# cat storage.sh
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

# start headless
VBoxHeadless –startvm Windows2003

# eject virtual CD
sudo VBoxManage storageattach Windows2003 –storagectl ‘Ide Controller’ –port 0 –device 0 –type dvddrive –medium

$ cat 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

Advertisements

Tags:

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: