[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: RHEL VM on Xen



This is actually something I have been working on this week, so I made a quick tarball of my scripts. The Anaconda in RHEL does not work under Xen, so this uses the older method of creating a disk image, and bootstrapping RPMs using yum and package groups.

You can download an archive of my scripts at http:// powermacg5.ece.iastate.edu/~jmesterh/xen/build.tgz

Quick instructions:

There are two scripts here, buildrepo.sh and makeimage.sh. Buildrepo.sh will take the RHEL iso images (place them in the iso's folder) and create a Yum repository from them. You will need to install the 'createrepo' RPM also, and also change the configs/ yum.conf to point to the path of this new yum repo.

Makeimage.sh will then build an 8GB RHEL image using this yum repository, setup networking and install some additional packages (apache and mysql).

One odd thing I have noticed is that some of the post-install scripts in the 'core' package group get executed locally on the FC5 machine, and manage to break booting additional guests until you reboot. Because of this I build my disk images on another FC5 box, and then copy them over to the Xen server when they are ready. If you do this, make sure your build host has the Xen kernel RPMS installed.

These scripts weren't really written for distribution, so if they break your system you get to keep the pieces :)

Joe

On Apr 5, 2006, at 4:25 AM, John Que wrote:

Hello,
I want to run RHEL as a guest domain of a machine
where Xen is installed.
Is there some guide on how to prepare an image based on
RHEL for a Xen guest?

There is such a guide for CentOS:
http://mark.foster.cc/wiki/index.php/Centos-4_on_Xen
and on FC4:
http://www.fedoraproject.org/wiki/FedoraXenQuickstart
and on FC5:
http://www.fedoraproject.org/wiki/FedoraXenQuickstartFC5

But I googled for something paralle for RHEL and could not
find.
regards,
John

--
nahant-list mailing list
nahant-list redhat com
https://www.redhat.com/mailman/listinfo/nahant-list

--
Joe Mesterhazy
ECpE UNIX Administrator
2101 Coover Hall, Iowa State University
Ames, IA 50011.  (515) 294-7359
http://www.mesterhazy.net


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]