Step-1 Install Virtual Box
Open terminal (Alt-F2 Type terminal) and type
mkdir ~/virtualbox
cd ~/virtualbox
wget -c http://download.virtualbox.org/virtualbox/2.1.4/virtualbox-2.1_2.1.4-42893_Ubuntu_hardy_i386.deb
ls -ltr
You should able to see file virtualbox-2.1_2.1.4-42893_Ubuntu_hardy_i386.deb
If file is found with virtualbox-2.1_2.1.4-42893_Ubuntu_hardy_i386.deb?xxxxxx then type following command
mv virtualbox-2.1_2.1.4-42893_Ubuntu_hardy_i386.deb?xxxxxx virtualbox-2.1_2.1.4-42893_Ubuntu_hardy_i386.deb
dpkg -i virtualbox-2.1_2.1.4-42893_Ubuntu_hardy_i386.deb
Note: If following libraries are not found/compitable you need to download and install following files
libqt4-core_4.3.4-0ubuntu3_i386.deb
URL: http://packages.ubuntu.com/hardy/libqt4-core
libqt4-gui_4.3.4-0ubuntu3_i386.deb
URL : http://packages.ubuntu.com/hardy/i386/libqt4-gui/download
libaudio2_1.9.1-1_i386.deb
URL: http://packages.ubuntu.com/hardy/libaudio2
to install use the command
dpkg -i *.deb
Once it is done you should able to start the virtual box.
Open terminal (Alt-F2 Type terminal) and type
VirtualBox
alternative you can use menu Applications > System Tools > Virtual Box
Step - 2 Creating Master Boot Record
Type following in terminal
install-mbr --force myBootRecord.mbr
Step 3 Getting the partition details where window is installed
Type following in terminal
sudo fdisk -l /dev/sda
It will display
Device Boot Start End Blocks Id System
/dev/sda1 * 1 6374 51199123+ 7 HPFS/NTFS
/dev/sda2 6375 9729 26949037+ 5 Extended
/dev/sda5 6375 9585 25792326 83 Linux
/dev/sda6 9586 9729 1156648+ 82 Linux swap / Solaris
Step 4 Creating group permission
Type following in terminal
sudo usermod -a -G disk
Log Out and Login again.
Step 5 Creating Virtual Disk and registering the same
VBoxManage internalcommands createrawvmdk -filename ./WinXP.vmdk -rawdisk /dev/sda -partitions 1 -mbr ./myBootRecord.mbr -relative -register
Note:
Change the following in above command:
-rawdisk /dev/sda to -rawdisk your_device
-partitions 1 to -partitions your_partion Number.
Step 6 Configuring Virtual Box
Open Virtual Box ( Refer Step 1)
Click Setting > General > Advance
Check all extended features.
Step 7 Finally Creating New Virtual Machine
Open Virtual Box ( Refer Step 1)
Click New -- Virtual Machine Wizard will come
Click Next
Enter your desire name
Select Operating System : Microsoft Windows
Version: Window XP
Click Next
Select Base Memory Size : 512 MB
Click Next
Click exsisting
Click Add
Browse your WinXP.vmdk file created in step 5
Click Finish
Your Virtual Box is ready select it and press start it will start your windows in Ubuntu
Note: To enter cltr+alt+delete use HOST (right control key) + Del