Fedora16 install XEN Virtual Machine

Source: Internet
Author: User
XEN was initially a project at Cambridge University. At present, the XEN. ORG community is responsible for its development and maintenance, and it has been greatly developed in the open source community. XEN is a software directly running on the hardware layer. It allows computer hardware to run the operating system of multiple users at the same time. Thanks to support for x86, x86-64, Itanium, PowerPC, and ARM processors, XEN management tools support Linux, and NetBSD XEN was initially a project at the University of Cambridge, currently, XEN. the ORG community is responsible for its development and maintenance. It has been greatly developed in the open-source community.

XEN is a software directly running on the hardware layer. It allows computer hardware to run the operating system of multiple users at the same time. Because of x86, x86-64, Itanium, Power PC,

Therefore, XEN management tools support Linux, NetBSD, FreeBSD, Solaris, Windows, and other operating systems.

The operating system that runs normally on the XEN.

Next, I will explain in three steps how to install the XEN Virtual Machine Under Fedora16 and create DomU:

(1) pre-installation configuration (2) Installation of XEN Virtual Machine (3) creation of DomU


Suggestion:

To avoid permission errors when installing XEN, we recommend that you use the root user to log on and install XEN.

If you do not know how to enable root user logon, please read《Set Fedora to log on as a root userHttp://www.linuxidc.com/Linux/2011-12/48728.htm


--------------------------------------------------------------------

(1) configuration before installation

After Fedora16 is installed, configure it before installing XEN to improve the success rate of XEN installation.

1) configure the network service to enable it automatically

[Root @ localhost ~] $ Chkconfig network on

[Root @ localhost ~] $/Etc/init. d/network start


2) Disable SELinux, edit the/etc/selinux/config file, and change SELINUX to disabled, as shown below:

[Root @ localhost ~] $ Gedit/etc/selinux/config

  1. # This file controls the state of SELinux on the system.
  2. # SELINUX = can take one of these three values:
  3. # Enforcing-SELinux security policy is enforced.
  4. # Permissive-SELinux prints warnings instead of enforcing.
  5. # Disabled-No SELinux policy is loaded.
  6. SELINUX = disabled
  7. # SELINUXTYPE = can take one of these two values:
  8. # Targeted-Targeted processes are protected,
  9. # Mls-Multi Level Security protection.
  10. 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

  1. 127.0.0.1 localhost. localdomain localhost4 localhost4.localdomain4
  2. : 1 localhost. localdomain localhost6 localhost6.localdomain6
  3. 127.0.0.1 f16 localhost. localdomain
4) Update the Fedora16 System

[Root @ localhost ~] $ Yum update


5) Disable Firewall

[Root @ localhost ~] $ Chkconfig iptables off


6) disable the ksmtuned service, but it is not compatible with XEN.

[Root @ localhost ~] $ Chkconfig ksmtuned off


7) restart the system and select the latest kernel.

[Root @ localhost ~] $ Reboot




(2) install XEN Virtual Machine

Restart and select the new kernel to log on, and you can install XEN. Before installing XEN, we will first install some packages that may be used during XEN running.

1) install some development libraries and development tools

[Root @ localhost ~] $ Yum groupinstall "Development Libraries"

[Root @ localhost ~] $ Yum groupinstall "Development Tools"

2) packages that may be used during XEN Installation

[Root @ localhost ~] $ Yum install transfig wget texi2html libaio-devel dev86 glibc-devel e2fsprogs-devel gitk mkinitrd iasl xz-devel bzip2-devel

pciutils-libs pciutils-devel SDL-devel libX11-devel gtk2-devel bridge-utils PyXML qemu-common qemu-img mercurial
[Root @ localhost ~] $ Yum install glibc-devel.i686 3) All necessary packages have been installed. you can install XEN and its dependent packages.

[Root @ localhost ~] $ Yum install xen

4) Start Related Services

[Root @ localhost ~] #/Etc/init. d/xendeskled start

[Root @ localhost ~] #/Etc/init. d/xend start

[Root @ localhost ~] #/Etc/init. d/xendomains start

[Root @ localhost ~] #/Etc/init. d/xencommons start

[Root @ localhost ~] #/Etc/init. d/xenstored start

[Root @ localhost ~] #/Etc/init. d/lib1_d start

5) Restart Dom0 to enter XEN.

[Root @ localhost ~] $ Reboot

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.