install XEN in Centos 5.4
Xen (pronounced /zɛn/) is a virtual-machine monitor for x86, x86-64, Itanium and PowerPC 970 architectures. It allows several guest operating systems to execute on the same computer hardware concurrently. The University of Cambridge Computer Laboratory developed the first versions of Xen; as of 2010 the Xen community develops and maintains Xen as free software, licensed under the GNU General Public License (GPL2).
Xen systems have a structure with the Xen hypervisor as the lowest and most privileged layer. Above this layer come one or more guest operating systems, which the hypervisor schedules across the physical CPUs. The first guest operating system, called in Xen terminology “domain 0″ (dom0), boots automatically when the hypervisor boots and receives special management privileges and direct access to all physical hardware by default. The system administrator can log into dom0 in order to manage any further guest operating systems, called “domain U” (domU) in Xen terminology. (source Wikipedia)
Lets create partitions where to save virtual machines , for example
[pirat9@localhost ~]$ sudo mkdir /vmw
boot etc lib lost+found mnt proc sbin srv tmp var
The Selinux Configutaion shouldm be disabled . shoudl be like:
[root@unixmen ~]# more /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing – SELinux security policy is enforced.
# permissive – SELinux prints warnings instead of enforcing.
# disabled – No SELinux policy is loaded.
# SELINUXTYPE= can take one of these two values:
# targeted – Targeted processes are protected,
# mls – Multi Level Security protection.
when you disable your Selinux please reboot your machine with
#yum install kernel-xen xen
after reboot check if the XEN kernel is started
[pirat9@localhost ~]$ uname -a
Linux localhost.localdomain 2.6.18-164.11.1.el5xen #1 SMP Wed Jan 20 08:06:04 EST 2010 x86_64 x86_64 x86_64 GNU/Linux
check if Xen is started with
[root@localhost ~]# xm list
Name ID Mem(MiB) VCPUs State Time(s)
Domain-0 0 5613 4 r—– 308.4
now we have to start installing virtual machines
install from the host http :
-n = name of vbox
-r ram in MB
-f the file image
-s size of the disk
-l install source host (http pr ftp)
[root@localhost ~]# virt-install -n vmx -r 256 -f /vmw/vmx.img -s 4 -l http://mirrors.nl.kernel.org/centos/5.4/os/x86_64/
Retrieving file vmlinuz… | 1.9 MB 00:04
Retrieving file initrd.img… | 7.1 MB 00:13
Creating storage file… | 4.0 GB 00:00
Creating domain… | 0 B 00:01
the installation will connect directly to the console to complete the installation
Verry fine. now some useful commands to use to manage your Vm machines
Login under root with
[pirat9@localhost ~]$ su -
check xm commandswith
[root@localhost ~]# xm help
how to join your vm machines listed
[root@localhost pirat9]# xm list
Name ID Mem(MiB) VCPUs State Time(s)
Domain-0 0 4818 4 r—– 2839.7
vmz 4 665 1 -b—- 16.8
Now join the VMZ domain from terminal
[root@localhost pirat9]# xm console vmz
Bootdata ok (command line is ro root=/dev/VolGroup00/LogVol00)
CentOS release 5.4 (Final)
Kernel 2.6.18-164.el5xen on an x86_64
Now you can login to vmz machine. and good luck
Like us on Facebook
This week Top Posts
- Top Things To Do After Installing Ubuntu 13.10 'Saucy Salamander' : Ubuntu 13.10 Saucy Salamander will be released on coming October 17th with many new salient featur...0 comments |
- Twelve Vulnerabilities Have Been Fixed In Ubuntu 12.04, Time To Update : Canonical has released security updates for Ubuntu 12.04 LTS and advices to update your system as so...1 comment |
- How To Upgrade From Ubuntu 13.04 Raring To Ubuntu 13.10 Saucy Salamander : Ubuntu 13.10 Saucy will be released on October 17th. Hope it will come with lot of improvements and ...0 comments |
- TeamViewer 9 Final Has Been Released! : TeamViewer is a commercial all-in-one software that can be used for remote control, desktop sharing,...0 comments |
- Setup DNS Server On openSUSE 13.1 : What is DNS Server? As you might know, DNS, Domain Name System, is a system that resolves Domain ...0 comments |
- Configure Your Browser To Use Tor On Ubuntu/Debian/Linux Mint : Tor, The Onion Router, is a network of Virtual Tunnels that allows users to communicate securely and...1 comment |
- Setup DNS Server On openSUSE 13.1
- TeamViewer 9 Final Has Been Released!
- Twelve Vulnerabilities Have Been Fixed In Ubuntu 12.04, Time To Update
- OpenLDAP Installation and Configuration in Ubuntu 12.10/13.04/13.10 And Debian 6/7
- Configure Your Browser To Use Tor On Ubuntu/Debian/Linux Mint
- Setup A Full Featured ITIL Management System Using Integria IMS On CentOS 6
- Install LibreOffice 4.1.3 in Elementary OS ‘Luna’
- How To Install Simple Scan in Crunchbang ‘Waldorf’
- Selene Media Encoder: Convert Audio, Video Files To Most Popular Formats
- Linux Kernel 3.12.2 Is Available For Download! Install / Upgrade Instructions
This work by unixmen.com is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.
Copyright © 2008-2013 Unixmen.com .