Install xen on rhel5 server and create a Windows Virtual Machine

Source: Internet
Author: User

Author: sideway 2007.7.9
Email: xtadw@yahoo.com.cn

I. Test Environment
1. HP dl140g3x5130 (supporting VT 5130cpu, 2 GB memory)
2. rhel5 Server
3. Windows 2003

Ii. Installation Steps
1. Install rhel5
I believe that you should install rhel5 on a single disc. I will not talk about it here. After installing XWindow, you can enter gnome normally.

2. Install xen
1. Mount/var/ISO/rhel5_server.iso t/rhel5
2. CD t/rhel5
3. rpm-IVH./Server/xen-libs-3.0.3-25.el5.i386.rpm
4. rpm-IVH./Server/bridge-utils-1.1-2.i386.rpm (Bridge Manager)
5. rpm-VIH./VT/xen-devel-3.0.3-25.el5.i386.rpm
6. rpm-IVH -- nodeps./VT/libvirt-0.1.8-15.el5.i386.rpm (solve the loop dependency, so add the -- nodeps parameter)
7. rpm-IVH./VT/libvirt-python-0.1.8-l5.el5.i386.rpm
8. rpm-IVH./VT/xen-3.0.3-25.el5.i386.rpm (xen Main Program)
9. rpm-IVH./Server/kernel-xen-2.6.18-8.el5.i686.rpm (xen kernel)
10. rpm-IVH./Server/gnome-python2-gnomekeyring-2.16.0-1.fc6.i386.rpm (virt-manager dependency package)
11. rpm-IVH./VT/virt-manager-0.2.6-7.el5.i386.rpm (xen graphical management tools)

3. Use the xen kernel to start the computer
1. Reboot
2. Press F10 to enter the bios and enable the VT function of the CPU.
3. Select "Red Hat Enterprise Linux Server (2.6.18-8. el5xen)" in the boot menu )"

4. Verify whether xen is running properly and whether it supports full-virtual
1. XM list
Name id mem (MIB) vcpus state time (s)
Domain-0 0 1886 4 R ----- 30.6
Seeing similar information indicates that the virtual platform has been established and is running.
2. XM dmesg | grep vmx

Next we can create virtual operating systems.

5. Open the Virtual Machine manager in GNOME and create a virtual machine.
1. Click "Applications"-"System Tools"-"Virtual Machine manager" to open the xen Graphics Management window.
2. Create a virtual machine
(1) Click the "new" button or "file"-"New machine..." menu
(2) Click "forward ".
(3) enter system name, for example, win2003, and click "forware ".
(4) Select "fully receivalized" and click "forware ".
(5) Find win2003.iso (here I will use the ISO file instead of the CD for installation) and click "forware ".
(6) Click "simple file" and enter/var/xen/imagess/win2003.img in file location (Note: create a directory first ),
Set file size to 4000 and click "forware ".
(7) set VM Max memory and Vm startup memory to 500, set vcpus to 1, and click "forware ".
(8) Click "finish" to go to the Windows installer.
(9) after entering the Windows Installer, press F5 when prompted to press F6, and a selection menu will appear. Please select "standard PC ", otherwise, it will fail during hardware detection.
(10) after Windows completes file copying, the VM window will be closed after restart. You need to manually start the VM. At this time, you need to modify the configuration file of the VM, otherwise, the system will prompt that the CD cannot be found during subsequent Windows installation.
VI/etc/xen/win2003
Modify disk = ['file:/var/xen/imagess/win2003.img, hda, W',] to the following sentence:
Disk = ['file:/var/xen/imagess/win2003.img, hda, W', 'file:/var/ISO/win2003.iso, HDC: CDROM, R',]
Save and exit (ESC,: WQ)
(11) XM create win2003 (restart the win2003 VM)
(12) In Virtual Machine manager, double-click the win2003 Virtual Machine to open the Virtual Machine display window. Continue to install Windows until the installation is complete.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.