About nixCraft

How to: Install and Setup XEN Virtualization software on CentOS Linux 5

Posted by Vivek Gite [Last updated: October 18, 2007]

One of our regular reader asks:

I'm using CentOS Linux 5 server. How do I set up Xen on Linux ? How do I install guest VPS oses such as Fedora or Windows 2000 or Debian Linux inside XEN?

Xen is a free open source software virtual machine monitor for Intel / PowerPC architectures. It is software that runs on a host operating system and allows several guest operating systems to be run on top of the host on the same computer hardware at the same time (just like VMWare software). Luckily Installing and managing XEN is quite easy under CentOS 5 Linux.

Login as the root and type the following commands:
# yum install xen virt-manager kernel-xen
# chkconfig xend on
# reboot

Make sure you boot CentOS server using XEN kernel.

How do I install NetBSD / any Linux distro / Windows 2000 inside XEN?

Simply use gui tool called virt-manager:
# virt-manager &

Install and Setup XEN Virtualization software on CentOS Linux 5

Now just follow on screen instructions to setup new guest operating systems (VPS oses). virt-manager is Xen Management Consoles software. It can perform the common tasks of administering a Xen host such as configuring, starting, monitoring and stopping of Xen guests oses. Please note that above instuctions also works on

Further readings:

Want to stay up to date with the latest Linux tips, news and announcements? Subscribe to our free e-mail newsletter or RSS feed to get all updates. You can Email this page to a friend.

You may also be interested in other helpful articles:

Discussion on This Article:

  1. Artem Nosulchik Says:

    Nice one! Is it necessary to enable any additional yum repositories in CentOS 5 in order to install xen, virt-manager and kernel-xen packages?

  2. vivek Says:

    Noop, you can install from DVD or just download and install using yum.

  3. raj Says:

    Really easy, thanks for all info :)

  4. Scott Says:

    “Now just follow on screen instructions to setup new guest operating systems (VPS oses). ”

    You’re kidding, right? How unfortunate this topic got indexed in Google, because here’s what gets glossed over:

    Try installing a VM from a regular DVD. Go ahead. Please.

    Under Install Media URL, I’ve tried
    /media/Fedora 8 x86_64 DVD
    /media/Fedora8 (which I ln -s to ‘Fredora 8 x86_64 DVD’)
    file:///media/Fedora8
    /dev/scd0 (the DVD device)

    /dev/scd0 does spin the drive, but then vaguely complains it can not find what it needs…

    It appears you

    OK, pop in a Fedora 8 DVD

  5. vivek Says:

    Scott,

    I’m sorry to hear it didn’t work out for you. These instructions are only tested on CentOS 5.0 and Fedora 7. I’ve already mentioned the fact.

  6. nevyn Says:

    What would have been helpful is if you had:
    a) included more information than “follow on screen instructions” such as a idea what sort of information we should be putting in a particular field. For example, if I wanted to install ubuntu-server, what would the URL be?
    b) Included the instructions for installing off local media - as far as I know, you can’t install directly off dvd or cd but can off nfs so if you export the cd/dvd via nfs and then use the url for the nfs share you’d be sweet.

  7. Chris Says:

    How to: Install and Setup XEN Virtualization software on CentOS Linux 5, fairplay for taking the time to write anything at all. This does indeed do what the title said, if it was titled, Install and Setup XEN Virtualization software on CentOS Linux 5,then install everything else under the sun I would be disappointed. I found that using my keyboard and Google I could find the info I needed, look: http://www.howtoforge.com/centos_5.0_xen, ahhhhh, Xen, peace is restored.

Leave a Reply

We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Tags: , , , , , , , ,

Copyright © 2004-2008 nixCraft. All rights reserved - TOS/Disclaimer - Privacy policy - Sitemap - Powered by Open source software.