= 2Splashimage = (hd0, 0)/grub/splash.xpm.gzHiddenmenuTitle CentOS (2.6.18-128.2.1.el5xen)Root (hd0, 0)Kernel/xen.gz-2.6.18-128.2.1.el5Module/vmlinuz-2.6.18-128.2.1.el5xen ro root =/dev/VolGroup00/LogVol00Module/initrd-2.6.18-128.2.1.el5xen.imgTitle CentOS (2.6.18-128.1.16.el5)Root (hd0, 0)Kernel/vmlinuz-2.6.18-128.1.16.el5 ro root =/dev/VolGroup00/LogVol00Initrd/initrd-2.6.18-128.1.16.el5.img
After the system is restarted, check whether the kernel is Xen
This article explains the following content: 1. installation steps of xen; 2. how to use xen to build your own virtual machine; 3. problems encountered during installation. 1. check before installation 1) Check whether your host cpu supports virtualization: enter the command cat/proc/cpuinfo | grepflags to check whether there is a pae in the result. If yes, semi-
system is restarted, check whether the kernel is Xen:
# Uname-r2.6.18-128.2.1.el5xenCheck whether Xen has been started:
#/Usr/sbin/xm listName ID Mem (MiB) VCPUs State Time (s)Domain-0 0 1220 2 r ----- 3214.1Create and install guestIf you think of the operating system of the running Xen kernel as the host, the operati
. For example, we can install and use Slackware, Debian, Gentoo... and other releases on Fedora. Because Xen is kernel-based, compared with VMWARE, it occupies about a few percent of the system resources of VMWARE. Is Xen more advantageous? Only when you practice it can you know. This is also the main reason for my writing this article;
1.1 Xen features;
Virtual
.
# Permissive-SELinux prints warnings instead of enforcing.
# Disabled-No SELinux policy is loaded.
SELINUX = disabled
# SELINUXTYPE = can take one of these two values:
# Targeted-Targeted processes are protected,
# Mls-Multi Level Security protection.
SELINUXTYPE = targeted
3) edit the/etc/hosts file and add an item for the host name specified when Fedora16 is installed, as shown below:
[Root @ localhost ~] $ Gedit/etc/hosts
127.0
-3.0.3-132.el5.i386.rpm
The dependent packages include:
Gnome-applet-vm-0.1.2-1.el5.i386.rpm
Libvirt-devel-0.1.8-15.el5.i386.rpm
Python-virtinst-0.99.0-2.el5.noarch.rpm
Libvirt-0.1.8-15.el5.i386.rpm
Libvirt-python-0.1.8-15.el5.i386.rpm
Virt-manager-0.2.6-7.el5.i386.rpm
Virtualization-en-US-5.0.0-7.noarch.rpm
Virtualization-zh-CN-5.0.0-7.noarch.rpm
Sat. Note that the version number in the xen-libs-3.0.3-132.el5.i386.rpm package must be consistent with
With the extensive use of virtualization technology, the use of virtualization thinking and start more, such as direct expansion of disk space in this case, I recommend a new disk to add a way to fit the normal physical machine to use the way.
Another way to increase disk space is to extend the space of an existing disk directly, in this way.
1. View the virtual machine configuration file
[Root@node1 data]#
[Root@node1 data]# XM List
Name ID Mem (MiB) Vcpus state time (s)
Domain-0 0 1744 1
Preparing the Linux virtual system installation source
#可以使用HTTP, FTP, or NFS are provided to Xen virtual machines for system installation. FTP is used here for installation, very simple and fast.
1) Installation of VSFTPD service
# yum Install-y vsftpd
# service VSFTPD Start
2 Mount CD to FTP anonymous directory
# mount/dev/cdrom/var/ftp/pub/
Description: VSFTPD will support anonymous access after installation.
2. Create a virtual machine
1)
you know. This is also the main reason for my writing this article;
1.1 Xen features;
Virtual Machine performance is closer to the real hardware environment)
Switching between platforms and virtual platforms in real physical environments)
Each customer's Virtual Machine supports 32 virtual CPUs, hot swapping through VCPU)
Supporting the PAE Instruction Set x86/32, x86/64 platforms
Using Intel virtual support VT support to use virtual original operati
Centos 5.5 installation and use of Xen is a mainstream Virtual Machine with minimal performance loss (but does not support windows). It can run on x86 systems and is porting to x86_64, IA64, and PPC. Porting to other platforms is technically feasible and may be implemented in the future.1. install the Linux kernel supporting Xen and Xen1yum-y install xen kernel-
as follows:
Listen 8000
Listen 8001
To increase the virtual host:
Documentroot/data/os
Options Indexes MultiViews
AllowOverride None
Order Allow,deny
Allow from all
Restart HTTPDD:/ETC/INIT.D/HTTPD Reload
6. Create Virtual machines
The code is as follows:
Virt-install-n xen1-r 256-f/home/xen1.img-lhttp://192.168.0.110:8001–network=network:default-s 20–nographics–vnc –vcpus=8
-N: Follow the virtual machine
RHEL 5 is a new system with high security and stability ., Xen is an open-source Virtual Machine monitor developed by the University of Cambridge. It intends to run up to 128 fully functional operating systems on a single computer, so the perfect combination of RHEL 5 Xen is now available.
Red Hat adopted Xen server virtualization technology for the first time in
name as a parameter to help to display the detailed usage of this command. If you do not attach any parameters, just list all the commands and a simple description.
passwd: Modify the password used to log on to Xen-shell.
Pause: Stop VPS. Note that the stop is not closed, and the unpause can be used to make the VPS run immediately without the need to start the process.
Quit: With exit, Exit Xen-shell.
The Host OS is debian6.0.3 _ amd64.Basically, it is based on http://wiki.debian.org/xen.1. Install xen and other toolsJava codeAptitude-P install xen-linux-system xen-tools xen-hypervisor-4.0-amd64Aptitude-P install
follows:
Listen 8000
To increase the virtual host:
The code is as follows:
Restart HTTPDD:/ETC/INIT.D/HTTPD Reload
6. Create Virtual machines
The code is as follows:
Virt-install-n xen1-r 256-f/home/xen1.img-lhttp://192.168.0.110:8001–network=network:default-s 20–nographics–vnc –vcpus=8
-N: Follow the virtual machine name and configure/etc/xen
-r: The memory size
Most of our machines have used the CENTOS4 image from jailtime.org. Editing a File system image using loopback device:
[Root@arch1 xen]# Mount-o Loop/opt/xen/centos.4-3.img/mnt/xenfs[Root@arch1 xen]# Mount/dev/mapper/volgroup00-logvol00 on/type ext3 (rw)None On/proc type proc (rw)None On/sys type SYSFS (rw)None on/dev/pts type devpts (rw,gid=5,mode=620)/dev/cciss
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.