LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Red Hat 5.4 Kickstart, Clustering and KVM installation failing (https://www.linuxquestions.org/questions/linux-server-73/red-hat-5-4-kickstart-clustering-and-kvm-installation-failing-868474/)

co_bofh 03-14-2011 08:31 AM

Red Hat 5.4 Kickstart, Clustering and KVM installation failing
 
I added the "@clustering" and "@kvm" keywords to my ks.cfg file but during installation, an error about not being able to find either of these packages popped up and it wasn't installed.

I do see the Cluster and VT directories in my redhat_es5.4 directory along with the Server directory. The rest of the files install just fine.

In doing some net and forum searching, I find a reference to a base.repo file that lists the directories but I'm not sure if it's related to creating a yum repository or if not, should it have been created in the redhat_es5.4 directory.

While I've built kickstarts for several years and am comfortable with the file, this is the first time I'm working with rpms outside the main Server path.

I'll likely give the base.repo file a try while I'm waiting on an answer or two.

Thanks for any help.

Carl

acid_kewpie 03-14-2011 08:53 AM

it should just be a case of defining a "repo" in the kickstart instead of a "url" to the main installation source, e.g.:


url --url=http://build/infrastructure/$revision/rpm/repos/maincentos
repo --name=rpmforge --baseurl=http://build/infrastructure/$revision/rpm/repos/rpmforge

co_bofh 03-14-2011 10:02 AM

I did just find the repo keyword in the anaconda docs so thanks for confirming it. I've reconfigured my kickstart to add in the two repo keywords but left in the url for the main distro. Would I need to use repo instead of the url or could I use url for the main install and repo for any additional ones?

Carl

acid_kewpie 03-14-2011 10:16 AM

url defines the installation source, and repo defines additional repositories.

co_bofh 03-14-2011 10:25 AM

Perfect, thanks for the help.

Carl

co_bofh 03-15-2011 08:36 AM

Just to provide the final specific information as it's not clear in the docs.

We are running an internal web site for our kickstarts as we install several different versions depending on the project. So we have:

/redhat_es5.0
/redhat_es5.2
/redhat_es5.4

So the repo line needs to be:

repo --name=clustering --baseurl=http://$HOST_IP/redhat_es5.4/Cluster
repo --name=kvm --baseurl=http://$HOST_IP/redhat_es5.4/VT

And it's in addition to the url line as noted.

It took a few tries in order to get the proper format of the repo line.

And one more little tidbit. In my efforts to try and find where the clustering package resided, I uncompressed the various files in the repodata directory to scan them, and then compressed them again when I was done. Unfortunately that changed the checksum and prevented the installation.

Thanks again for the help.

Carl

acid_kewpie 03-15-2011 09:17 AM

the installation source configs on the DVD's do actually have support for multiple locations, as I found out from digging into cobbler configs. I think redhat themselves introduced this functionality especially for this sort of scenario or possibly to deal with 2nd dvd's / 18th cd's easier, so if you're using cobbler you would find this is automatically populated based on config data on the distro cd's, although right now I can't find this metadata on the dvd after looking for a few minutes.

co_bofh 03-15-2011 10:08 AM

I'll have to check on cobbler. We're just snagging the iso and dumping it into the redhat_es5.4 directory.

Carl


All times are GMT -5. The time now is 11:54 PM.