Monday, November 19, 2007

Installation of fully virtualized windows-xp on RHEL5 or Oracle-EL5

Installation of fully virtualized windows-xp on RHEL5 or Oracle-EL5.

Pre-requisites:

1. RHEL5 with xen kernel should be installed. The same feature is also available on Fedora and other linux flevours.


2. Verify that CPU architect support for virtuallization.

for intel processor check: cat /proc/cpuinfo|grep -i vmx
for amd processor check: cat /proc/cpuinfo|grep -i svm

3. Enable Bios for virtualization.

4. Disable SELinux as given below :

In /etc/selinux/config, set "SELINUX=disabled".
and in /etc/grub.conf append the kernel parameter as "selinux=0".

5. Require Windows-XP CD/DVD or iso image for installation.

Reboot the Linux using xen kernel.


Steps to install fully virtuallyzed winxp on RHEL5 Linux.:

1. logon as root.


2. create a windows-xp binary image file where this installation want to store.

for this use dd command to create a binary image file.

[root@localhost xen]# dd if=/dev/zero of=/xen/winxp.img bs=1M count=15000

So I will install the xp on /xen/winxp.img, with allocated storage 15gb. The storage limit is optional.



3. Once the binary file '/xen/winxp.img' is created, start virt-manager

[root@localhost etc]# virt-manager









Note: screenshot: 1.png

Select "Local Xen Host" and click on connect.



















4. On "Virtual Machine Manager" screen, select "+New".























5. On screen "Creating a New virtual System", click forward.























6. On screen "Naming your virtual system" specify the desired "System Name". (eg: winxp).






















7. Select "Fully Virtualized" option.























8. If have iso image of "windows-xp" select "ISO Image Location" and specify the path. Or select "CD-ROM or DVD " and load media.






















9. On screen "Assigning storage space", select 'simple file' and specify "/xen/winxp.img". (i.e. the location of target where want to install windows-xp .)





















10. On screen "Allocate memory and CPU" specify the memory and cpu
resource want to allocate for virtual windows.







11. Click Finish.














12. This will open the screen for windows installation.
























13. if installation hangs on "starting windows installation". Shutdown the virtual server of winxp.
and repeat step 4-11 and when windows installation screen comes and show for "F6" key , press F5 key instead of F6 key.

















































14 Select "standard PC.." option.
















































15. Once the installation is complete.Check the device name where '/xen/winxp.img' is present.
In my case its on "sda", I have replaced one line as given below in /etc/xen/winxp

disk = [ 'file:/xen/winxp.img,hda,w', ]
with
disk = [ 'file:/xen/winxp.img,sda,w', ]























































































16. As root user write "xm create -c /etc/xen/winxp".










[root@localhost xen]# xm create -c /etc/xen/winxp
Using config file "/etc/xen/winxp".
Started domain winxp










17. if install show any boot error. Shutdown virtual server and repeat step 4-11. It will start the xp installation.

18.now write "xm create -c /etc/xen/winxp" as root user and go to 'Vitual Machine Manager' screen and select 'winxp' and click on open. Tjis will open window-xp session.





References: Virtualization.pdf,Virtual_Server_Administration.pdf

No comments: