Article Title: Configure XEN Virtual Machine in RedHat5.0. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
The Xen virtual machine can run in two ways: full virtualization and para virtualization ). Full virtualization provides full abstraction of the underlying physical system, and creates a new virtual system. The client operating system can run in it. You do not need to modify the client operating system or application (the client operating system or application runs as usual and cannot realize the existence of the virtual environment ). Semi-virtualization requires modifications to the client operating systems running on virtual machines (these client operating systems will realize that they are running in virtual environments) and provide similar performance, however, the performance of semi-virtualization is superior to that of full virtualization.
Table-1 is the list of x86 processors supporting Xen full virtualization
View your central processor type
It is best to use virtualization technology that supports Intel VT or amd pt. To check whether the central processor is supported, run the following command:
# Grep vmx/proc/cpuinfo
Flags: fpu tsc msr pae mce cx8 apic mtrr mca cmov pat limit 36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm merge pni monitor ds_cpl vmx est tm2 cx16 xtpr lahf_lm
If a vmx sign appears, it indicates that you have Intel processor virtualization support.
For AMD's central processor, run the following command:
# Grep svm/proc/cpuinfo
Flags: fpu tsc msr pae mce cx8 apic mtrr mca cmov pat limit 36 clflush dt acpi mmx fxsr sse sse2 ss ht tm syscall nx mmtext fxsr_opt rdtscp lm 3 limit pni cx16 lahf_lm limit svm limit
If an svm sign appears, it indicates that you have AMD processor virtualization support. In addition to checking the CPU flag, you should also make full virtualization in your system BIOS take effect. Figure-1 is from the author's AMD computer.
Figure-1 is from the author's AMD computer.
Note: Xen Is A virtualization software that supports semi-virtualization and full virtualization. It can also be used on CPUs that do not support Intel VT or amd pt technology, but can only run in semi-virtualization mode. Semi-virtualization means that the kernel of the virtual system needs to be modified so that the system can be perfectly virtualized on the Xen. For full virtualization, you can directly run on the Xen without modifying the system kernel.
Install Xen Service
Run the following command to check whether the system has installed Xen or the version installed, and whether the Linux kernel has patches for Xen.
Rpm-qa | grep xen
If the Xen virtual machine is not installed, run the following command to install the Linux patch, Xen virtual machine, and virt-manager Virtual Machine management tool. However, the user must be connected to the Internet and have the subscription number of the virtualization service.
Yum install kernel-xen virt-manager
Start and Stop the Xen Service
1. Start the Xen Service
/Etc/init. d/xend start
2. Stop the Xen Service
/Etc/init. d/xend stop
3. Restart the Xen service.
/Etc/init. d/xend restart
4. automatically start the Xen Service
To enable the Xen service to automatically load as the system starts, run the "ntsysv" command to start the service configuration program. Locate the "xend" service and add an asterisk (*) to it (*), then select "OK.
[1] [2] [3] [4] Next page