CentOS debootstrap ?

If it doesn't fit in another category, ask it here.

CentOS debootstrap ?

Postby 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.
Evelations
 
Posts: 2
Joined: 2010/04/02 00:03:34

Re: CentOS debootstrap ?

Postby chuina » 2010/04/02 07:00:53

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

First take a look at FAQ & Readme First.

Evelations wrote:
...I have a little question about CentOS, and sorry about my stupid question, I'm beginner in linux systems...

We all have a beginning point.

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...

The package installer is yum. u will find about this in FAQ & Readme First's Installing Software.

Evelations wrote:
My objective is to have a PXE server (on CentOS) and install CentOS on client computer via NFS

There are Wiki Pages in PXE on CentOS.
And for NFS: Chapter #18 of the Deployment Guide.
chuina
 
Posts: 355
Joined: 2009/12/11 10:25:56

Re: CentOS debootstrap ?

Postby 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.
Evelations
 
Posts: 2
Joined: 2010/04/02 00:03:34

Re: CentOS debootstrap ?

Postby chuina » 2010/04/03 07:52:20

Welcome.

Looks like multiple questions.

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.


Looks like you successfully configured a Local Mirror.

For NFS, Just give the sharing of the CentOS source files in /etc/exports
Code: Select all
/location/of/CentOS/source    192.168.0.0/255.255.255.0(ro,sync)

Fix them appropriately.

...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

Sorry, never used debian/bootstrap, can't suggest anything, someone else may help you.

...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

know the available groups by
Code: Select all
yum grouplist

To install any group
Code: Select all
yum groupinstall '<groupname>'



...Is it possible to take CentOS cdrom as source ? I'm more interested by this way.

To use CD-ROM insert the CD , mount and then:
Code: Select all
yum --disablerepo=\* --enablerepo=c5-media install <packagename>

goupinstall also works here.

...What about Mock ?

You may read these How (not) to install Software from Source on CentOS and Rebuild a Source RPM (SRPM) package
chuina
 
Posts: 355
Joined: 2009/12/11 10:25:56

CentOS debootstrap ?

Postby pschaff » 2010/04/03 13:05:59

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....

Have you found http://wiki.centos.org/HowTos/PXE ?

What about Mock ?

Mock is about rebuilding SRPMS as chuina described, not installations. Perhaps you want to look at cobbler from RPMforge repo
Code: Select all

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.
pschaff
Retired Moderator
 
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America


Return to CentOS 5 - Miscellaneous Questions

Who is online

Users browsing this forum: No registered users and 0 guests