CentOS debootstrap ?

If it doesn't fit in another category, ask it here.
Post Reply
Evelations
Posts: 2
Joined: 2010/04/02 00:03:34

CentOS debootstrap ?

Post by Evelations » 2010/04/02 00:13:40

Hello,

I have a little question about CentOS, and sorry about my stupid question, I'm beginner in linux systems ! :)

On Debian, it's possible to download the minimal system, with the following commands :
# aptitude install debootstrap
# debootstrap sarge /nfsroot http://ftp2.fr.debian.org/debian/

I would like to know if there is similar command for CentOS.

My objective is to have a PXE server (on CentOS) and install CentOS on client computer via NFS.
If anyone can help me, that'll be great !

Thank you for your answers.
regards,
Evelations.

chuina
Posts: 355
Joined: 2009/12/11 10:25:56

Re: CentOS debootstrap ?

Post by chuina » 2010/04/02 07:00:53

Welcome to the [color=003300]CentOS[/color].

First take a look at [url=http://www.centos.org/modules/newbb/viewforum.php?forum=47]FAQ & Readme First[/url].

[quote]Evelations wrote:
...I have a little question about CentOS, and sorry about my stupid question, I'm beginner in linux systems...[/quote]
We all have a beginning point.

[quote]Evelations wrote:
...On Debian, it's possible to download the minimal system, with the following commands :
# aptitude install debootstrap
I would like to know if there is similar command for CentOS...[/quote]
The package installer is yum. u will find about this in [b]FAQ & Readme First[/b]'s [b]Installing Software[/b].

[quote]Evelations wrote:
My objective is to have a PXE server (on CentOS) and install CentOS on client computer via NFS[/quote]
There are Wiki Pages in [url=http://wiki.centos.org/HowTos#head-64b15663a304804abd2d978a3f2664411553848f]PXE on CentOS[/url].
And for NFS: [b]Chapter #18[/b] of the [url=http://www.redhat.com/docs/manuals/enterprise/RHEL-5-manual/Deployment_Guide-en-US/index.html]Deployment Guide[/url].

Evelations
Posts: 2
Joined: 2010/04/02 00:03:34

Re: CentOS debootstrap ?

Post by Evelations » 2010/04/02 22:42:44

Thank for your answer chuina.

Well, I'll explain a little more my problem. It'll be better.

I have a laptop on CentOS 5.4, and I configured it for PXE server. With, I'll only deploy Centos 5.4 too.
Everything works with FTP method (with CentOS DVD install source files). But now, I want to use NFS method. My configuration for NFS seems to be good. However by this way, I would like to put the core (or base) CentOS files.

I searched on Internet, and I found the tools debootstrap for Debian, and I would like to know if there is something similar for CentOS.
Debootstrap install debian distribution (or similar) on a mount point using the engine from another debian system already in use, and retrieving the packets on a website or a folder. It can also be used from a live cdrom.

Today, I saw feboostrap for Fedora, but the yum install febootstrap donesn't works at all : package doesn't exist.

Is it possible by yum ? I tried the command yum --installroot=/nfsroot groupinstall Core, but I get error at the beginning (YumRepo Error: All mirror URLs are not using ftp, http[s] or file.). Is it possible to take CentOS cdrom as source ? I'm more interested by this way.

What about Mock ?

Thanks for your answers.

chuina
Posts: 355
Joined: 2009/12/11 10:25:56

Re: CentOS debootstrap ?

Post by chuina » 2010/04/03 07:52:20

Welcome.

Looks like multiple questions.

[quote]Evelations wrote:
...Everything works with FTP method (with CentOS DVD install source files). But now, I want to use NFS method. My configuration for NFS seems to be good. However by this way, I would like to put the core (or base) CentOS files.[/quote]

Looks like you successfully configured a [url=http://wiki.centos.org/HowTos/CreateLocalMirror]Local Mirror[/url].

For NFS, Just give the sharing of the CentOS source files in /etc/exports
[code]/location/of/CentOS/source 192.168.0.0/255.255.255.0(ro,sync)[/code]
Fix them appropriately.

[quote]...I searched on Internet, and I found the tools debootstrap for Debian, and I would like to know if there is something similar for CentOS.
Debootstrap install debian distribution (or similar) on a mount point using the engine from another debian system already in use, and retrieving the packets on a website or a folder. It can also be used from a live cdrom.
Today, I saw feboostrap for Fedora, but the yum install febootstrap donesn't works at all : package doesn't exist[/quote]
Sorry, never used debian/bootstrap, can't suggest anything, someone else may help you.

[quote]...Is it possible by yum ? I tried the command yum --installroot=/nfsroot groupinstall Core, but I get error at the beginning (YumRepo Error: All mirror URLs are not using ftp, http[s] or file[/quote]
know the available groups by [code]yum grouplist[/code]
To install any group [code]yum groupinstall '<groupname>'[/code]


[quote]...Is it possible to take CentOS cdrom as source ? I'm more interested by this way.[/quote]
To use CD-ROM insert the CD , mount and then:
[code]yum --disablerepo=\* --enablerepo=c5-media install <packagename>[/code]
goupinstall also works here.

[quote]...What about Mock ?[/quote]
You may read these [url=http://wiki.centos.org/PackageManagement/SourceInstalls]How (not) to install Software from Source on CentOS[/url] and [url=http://wiki.centos.org/HowTos/RebuildSRPM]Rebuild a Source RPM (SRPM) package[/url]

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

CentOS debootstrap ?

Post by pschaff » 2010/04/03 13:05:59

[quote]
Evelations wrote:
...
I have a laptop on CentOS 5.4, and I configured it for PXE server. With, I'll only deploy Centos 5.4 too....
[/quote]
Have you found http://wiki.centos.org/HowTos/PXE ?

[quote]
What about Mock ?
[/quote]
Mock is about rebuilding SRPMS as [b]chuina[/b] described, not installations. Perhaps you want to look at cobbler from [url=http://wiki.centos.org/Repositories/RPMForge]RPMforge repo[/url]
[code]

Name : cobbler
Arch : noarch
Version : 0.5.0
Release : 1.el5.rf
Size : 330 k
Repo : rpmforge
Summary : Boot server configurator
URL : http://cobbler.et.redhat.com/
License : GPL
Description: Cobbler is a command line tool for configuration of network boot and update
: servers. It is also available as a Python library. Cobbler supports PXE,
: provisioning virtualized images and reinstalling machines that are already
: running (over SSH).
:
: The last two modes require a helper tool called 'koan' that integrates with
: cobbler. Cobbler's advanced features include importing distributions from
: rsync mirrors, kickstart templating, integrated yum mirroring, kickstart
: monitoring, and auto-managing dhcpd.conf.
[/code]

Post Reply