WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

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

To: "Xen Users" <Xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] Create a domU using rpmstrap CentOS
From: "john maclean" <jayeola@xxxxxxxxx>
Date: Sun, 22 Oct 2006 01:35:08 +0100
Delivery-date: Sat, 21 Oct 2006 17:35:39 -0700
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=OiLU99LHqWFyFkiiBZUq6XyO+YQQZbH1DaIDsy3wCe7gIjk6EyPmhpqdc2wDIYomhqgxZSDgU3yIaF8YhrAg+uFwS92rsFdTOjNBbNZoFcQ+bUOo7yytQpSpOwFst2ALTiedFOQ+4CFZPGKMS5Rd/kJu+C/bnxHlQFzHOtnUm20=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <453AB277.1080700@xxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <6af0ecc70610201934u7e6d4372r7d01b1de45271228@xxxxxxxxxxxxxx> <4539B518.9020609@xxxxxxxxxxx> <6af0ecc70610211605x24924f12jdf2343ae3bb57ba@xxxxxxxxxxxxxx> <453AB277.1080700@xxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
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