How To Install Xen Hypervizor On CentOs 7.
Install CentOs 7 on your vm/vps/server.
Partition the Xen hypervisor box:
The disk can be partitioned any way you like, with one exception: you must create a separate partition with LVM. This will be used to deploy block devices as hard disks for virtual machines.
Install essential utilities on the Xen Hypervisor box:
We recommend the following software is preinstalled on the Xen hypervisor box:
vim command-line editor. This guide uses vim in examples where files need to be edited.
GNU tar utility and GNU zip archive tool. They are used to pack the template.
X window system. We will use it to run some GUI applications.
Apache web server. It will be used to run local distributive mirrors, and access KickStart files during installation.
virt-manager. Not mandatory, but sometimes it makes creating servers easier.
vncviewer. Used for connecting to virtual servers via VNC.
LVM utilities. All of them will be required while creating servers and Linux templates for OnApp.
Add YUM repository:
An extra YUM repository is used to get the Xen hypervisor installed manually.
Please download extra repository configuration file and place it into standard YUM repositories configuration files location (/etc/yum.repos.d/):
Install Xen Hypervisor:
Clean YUM meta-data:
Remove old Xen if installed:
Install the latest Xen from GITCO:
Remove i386 libvirt:
Configure xend service to start on system boot:
Install Xen hypervisor (Dom0) kernel:
Verify the kernel-xen package is installed, and determine the version:
Configure GRUB boot loader to use Xen kernel as default (check GRUB’s configuration file):
Reboot the box:
Check if Xen hypervisor is running when the box boots: