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

Re: [Xen-users] Create a domU using rpmstrap CentOS


  • To: Xen Users <Xen-users@xxxxxxxxxxxxxxxxxxx>
  • From: Michael Kress <kress@xxxxxxxxxxx>
  • Date: Sun, 22 Oct 2006 01:51:19 +0200
  • Delivery-date: Sat, 21 Oct 2006 16:50:23 -0700
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.