[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: "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=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

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


 


Rackspace

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