Comments on Installing Xen On CentOS 5.0 (i386)

Installing Xen On CentOS 5.0 (i386) This tutorial provides step-by-step instructions on how to install Xen (version 3.0.3) on a CentOS 5.0 system (i386). Xen lets you create guest operating systems (*nix operating systems like Linux and FreeBSD), so called "virtual machines" or domUs, under a host operating system (dom0). Using Xen you can separate your applications into different virtual machines that are totally independent from each other (e.g. a virtual machine for a mail server, a virtual machine for a high-traffic web site, another virtual machine that serves your customers' web sites, a virtual machine for DNS, etc.), but still use the same hardware.

7 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: M.J.

Try "xm console vm02" as below:

 [root@virtlab vm]# xm list
Name                                      ID Mem(MiB) VCPUs State   Time(s)
Domain-0                                   0     1753     4 r-----    298.9
vm02                                       3      255     1 ------      0.0

 [root@virtlab vm]# xm console vm02

By: Greg

Thanks for the very clear walkthrough.

These steps had Xen and a VM up and running in no time, as long as I assigned a static IP to the VM.

I know that the settings in /etc/xen/xend-config.sxp and in the VM's config file are where one enables DHCP, but so far I haven't hit on the correct combination. 

 

 

By: quequotion

How up-to-date is this guide?

I've gone through this installation process without deviation several times and tried various alterations but the end result is always the same: an unbootable operating system.

 Is this information current? there are some oddities here, like having the initrd in menu.lst called by "module"... also, why do i not need to make a new initrd?

 unfortunately, i cannot debug effectively or understand or explain the errors because i'm working on a remote host, and now i have to call someone to manually reboot it... again...

By: ryan keywest

I follow step by step on this guide but no console after virt-install completed the process. I should stay on the console right? But I'm not :(.

 I cannot access the console either using xm console vm02...

 [root@virtlab vm]# xm list
Name                                      ID Mem(MiB) VCPUs State   Time(s)
Domain-0                                   0     1753     4 r-----    298.9
vm02                                       3      255     1 ------      0.0

That state should be 3600+ at least because it's been a day now...

Any ideas?

Thanks

By: foomip

Hi Guys

If anyone is looking for help setting up XEN on debian, check out this article www.pressercore.com/how-to-run-xen-on-debian-etch4/ .

By: Anonymous

Following this tutorial is great until you get to :

What is the install location? <-- http://wftp.tu-chemnitz.de/pub/linux/centos/5.0/os/i386

 This fails and all other variations I tried all fail in some way, many begin then error part way through, and I failed to get it to work with the hosts CD rom.

So the answer is to start the http server on the host where you are installing the Virtual Machine, and copy in the packages from the CD_ROM to the root of the http server. In my case this was /var/www/html/ and I created CentOS_5.2_Final/CentOS/ to match the CD-Structure.

The commands are:

$ cd /var/www/html/CentOS_5.2_Final/CentOS

$ cp -r /media/CentOS_5.2_Final/CentOS/ .

And repeat the copy for each of your distro disks.

Then prove it is working by  pointing your browser at it, like this:

http://localhost/CentOS_5.2_Final/CentOS/

and you should see all the rpm files you have copied.

Now use http://localhost/CentOS_5.2_Final/CentOS/ as the location and all is well.

Regards

Keith

 

By: Jose Luis Chafardet

Hello, I'm playing with xen this days, and im wondering if there is a way to force / use a kickstart file with virt-install.

 I've tried the -x flag as in additional arguments, using --extra-args=ks=http://domain/kickstart.cfg without luck it doesn't reads my kickstart file, maybe im doing something wrong somewhere, as it halts on the lan configuration

 network --device eth0 --bootproto static --ip xx.yy.zz.90 --netmask 255.255.255.252 --gateway xx.yy.zz.89 --nameserver ww.xx.yy.zz,aa.bb.cc.dd --hostname xentest2.domain

 maybe there is something wrong with the line for it. I'm not sure, so far looks good. tho anyway stops and asks me all the information.

 any clues?