|
|
|
|
|
|
|
|
|
|
xen-users
Re: [Xen-users] Create a domU using rpmstrap CentOS
I had *alot* of trouble with rpmstrap. Googled, did a bit of reading
and came up with this:- http://wiki.blagblagblag.org/Xen_images. It
works for me everytime - that's whay I wrote it ;)
On 22/10/06, Michael Kress <kress@xxxxxxxxxxx> wrote:
Hi Joao,
Joao Correia wrote:
> Hello many thanks, I had looked over yum but I get this error:
>
> [root@springpbx-sitic /]# yum -c /etc/yum.conf --installroot=/mnt -y
> groupinstall Base
> Setting up Group Process
> Setting up repositories
> not using ftp, http[s], or file for repos, skipping - Null is not a
> valid release or hasnt been released yet
> Cannot find a valid baseurl for repo: update
> Error: Cannot find a valid baseurl for repo: update
> [root@springpbx-sitic /]#
>
> Any tips ?
you have to hardcode your release number in
/etc/yum.repos.d/CentOS-Base.repo.
I use for example:
[base]
name=CentOS-$releasever - Base
###
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
baseurl=http://my-local-server-in-lan/centos/4/os/$basearch
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
(note the "4" in the baseurl line.)
Same thing for update repo entries.
On the following page I've seen another comment/discussion about the issue:
http://wiki.sisuite.org/BuildingLinuxChroots
Maybe it's some use i.e. first installing the centos-release rpm, but I
haven't tried it yet.
HTH
Regards,
Michael
--
Michael Kress, kress@xxxxxxxxxxx
http://www.michael-kress.de / http://kress.net
P E N G U I N S A R E C O O L
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
--
John Maclean - 07739 171 531
MSc (DIC)
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
|
|
|
|
|