OVH Community, your new community space.

[HOWTO] Clean CentOS 5.3 op Bestaand Systeem


pcman22
01-08-12, 16:02
ik heb het gedaan op de nieuwe kernels van ovh.
het is bijna hetzelfde.
Alleen je moet in plaats van menu.lst grub.conf hebben.
En een andere mirror maar verder werkt hetzelfde.
Hij werkt zowel op centos 6 als centos 5 nog.

darkstalker
11-10-11, 12:31
Hoe moet je dit tegenwoordig doen? Met de nieuwe grub versie die ovh gebruikt is er namelijk geen menu.lst meer. Ook werkt het simpel toevoegen van de regels in grub.cfg niet.

patrickekkel
09-02-11, 16:09
ah ben nu bezig met 1 server maar ziet er goed uit en werkt tot nu toe Perfect
oke ben nog niet klaar en hij is nu bezig met de CentOS Instalatie
hoop dat het werkt zijn we eindelijk van die o zo leuke ovh kernel af

oke zojuist is de instalatie afgerond

helemaal perfect zeer goede HOWTO van Jesper

Jesper
03-02-11, 16:18
Citaat Oorspronkelijk geplaatst door Vipeax
Jesper,
in 1 woord: Super!
Ik weet mijn weg wel te vinden in Linux, maar hier had ik echt niet aan gedacht.

De video tutorial was niet nodig, want je verhaal was al gewoon te volgen, dus daar lag het niet aan (voor mij i.i.g. ).
Heb jij mijn video-tutorial toevallig nog?

darkstalker
02-12-09, 15:58
Zonet even geprobeerd in Vmware over Debian heen. Het werkt ^_^
Iemand nog een tutorial hoe je Ubuntu over Debian heen installeert?
Ik heb namelijk nog een Debian dedicated server bij Leaseweb, maar zij installeren alleen Debian en CentOS.
Heb alleen SSH access, geen rescue mode of kvm.
De enige methode die ik gevonden heb is via debootstrap, maar dat is best complex "lees" materiaal waar niet echt een stap-voor-stap tut voor is.
Alle guides die ik gevonden heb, gaan er van uit dat je al een linux expert bent.

jimmy1987
19-11-09, 17:51
Ik heb dus het volgende probleem, als ik grub probeer te installeren krijg ik de melding nothing to do.

Code:
[root@ks357978 ~]# yum install grub
Loaded plugins: fastestmirror
Determining fastest mirrors
 * addons: mirror.ovh.net
 * base: mirror.ovh.net
 * extras: mirror.ovh.net
 * rpmforge: fr2.rpmfind.net
 * updates: mirror.ovh.net
addons                                                                                                       |  951 B     00:00
addons/primary                                                                                               |  203 B     00:00
base                                                                                                         | 2.1 kB     00:00
base/primary_db                                                                                              | 2.0 MB     00:00
extras                                                                                                       | 1.1 kB     00:00
extras/primary                                                                                               | 117 kB     00:00
extras                                                                                                                      290/290
rpmforge                                                                                                     | 1.1 kB     00:00
rpmforge/primary                                                                                             | 3.4 MB     00:00
rpmforge                                                                                                                  9520/9520
updates                                                                                                      | 1.9 kB     00:00
updates/primary_db                                                                                           | 294 kB     00:00
Excluding Packages in global exclude list
Finished
Setting up Install Process
Nothing to do
[root@ks357978 ~]#
Ik heb yum nog niet want een rpm -q geeft aan dat package grub niet geïnstalleerd is.

Want toen ik server restartte kreeg ik dus een kernel panic dat ie geen init had gevonden.

Edit:

Ik heb inmiddels via de herinstaller 32-bits centos geinstaleerd, vervolgens de tutorial gevolgd en draai inmiddels op mijn eigen centos 5.4 versie

Jesper bedankt!

Code:
login as: root
root@91.121.150.121's password:
[root@ks357978 ~]# uname -a
Linux ks357978.kimsufi.com 2.6.18-164.el5 #1 SMP Thu Sep 3 03:33:56 EDT 2009 i686 i686 i386 GNU/Linux
[root@ks357978 ~]#

yourweb
19-11-09, 16:48
Let op! controleer of je box wel /boot heeft, (controleer dit met de andere records, als /boot hier niet staat laat deze weg). Verder kies een ww van minimaal 6 tekens, anders loopt de server op een fout terecht.

Betatester123
16-06-09, 22:21
root@XXX [~]# yum install grub
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

/lib/libgcc_s.so.1: version `GCC_3.3.1' not found (required by /usr/lib/librpmio-4.4.so)
Ik heb dit probleem nu al geruime tijd op een VPS van me.
Weet iemand hoe ik dit kan oplossen?
YUM en RPM werken niet meer

Vipeax
30-04-09, 00:43
Jesper,
in 1 woord: Super!
Ik weet mijn weg wel te vinden in Linux, maar hier had ik echt niet aan gedacht.

De video tutorial was niet nodig, want je verhaal was al gewoon te volgen, dus daar lag het niet aan (voor mij i.i.g. ).

Jesper
29-04-09, 00:49
\\ EDIT

PHP Code:

http
://x-softrepository.nl/centoscleaninstalltutorial.avi 
of

PHP Code:

ftp
://ftp.x-softrepository.nl/tutorial/centoscleaninstalltutorial.avi 

Jesper
28-04-09, 22:33
Zal zo eens een video tutorial maken

Jesper
28-04-09, 13:35
You have to connect on port 1 ....

Your server will reboot, this can take from 30 sec to 2 minutes.
Download Ultra VNC, and connect to :1
And you have to set your IP/gateway in the grub bootconf.

En waarom praten we niet gewoon nederlands?
Het is mij zo'n beetje 20x gelukt

Praetorian
28-04-09, 00:25
Yeh, removing iptables is a sane thing to do.... :/

Raymon
28-04-09, 00:24
I'll check on this later. Most of the time my first command on a play-and-fuck-things-up-and-do-another-reinstall server is "yum remove iptables"

Praetorian
28-04-09, 00:21
Can you check the vncserver's log. It should be somewhere in /var/log/....
I'm not sure if CentOS comes with a preinstalled and configured firewall but I suppose you could do some checking with "iptabled -L -n" as root and see if there are any iptable rules.

jainoxi
28-04-09, 00:21
you have to connect on port 5500 or start your VNC viewer in listen mode.

Raymon
28-04-09, 00:19
Now lucky enough i'm a advanced linux user so i'll provide a little more details

Everything from the beginning to the grub install and reboot works out flawless. The server boots in the CentOS setup mode (saw it on the vkvm) and correctly boots the mini pxe boot but the VNC server doesnt seem to start of its connection is blocked so the user cant connect to VNC.

I didnt tail any logs yet of checked if a firewall was installed, it was just a quick try

Praetorian
28-04-09, 00:12
"It doesn't work" isn't really something we can work with...

You explained to us you aren't a linux expert, what exactly isn't working? Got any logs that show errors?

Raymon
28-04-09, 00:11
Doesnt work, after installing a "plain" centos from the manager and applying this, the above error is shown.

VNC is nog reachable, this may be due to a firewall installed with the initial setup from the manager, can you try to do a "yum remove iptables" before step 3?

AABL00D070
27-04-09, 16:22
This does not work.
I tried everything but i cant get VNC to connect.
It just says failed to connect to server xxxxxx

is there someone else who did this??

pls spoon fed me this information on how to get it to work.
I am not a linux expert so pls be patient.

^^

Greetz

BL00D

Jesper
25-04-09, 17:01
I'm writing this Guide in English, because its more handy for some people! :-D

Code:
http://ftp.hosteurope.de/mirror/centos.org/
This is an procedure to do an official clean install from the genuine CentOS disc(s).
Why am I doing this?

Because I hate Lilo, which OVH uses, and I need module support...
This guide is working for all OS'es.

1. Install CentOS (32bit is used in this guide) from the OVH manager with the default partitioning proposed by OVH (If u want other partitioning, u can do that later on! )
(Im using centos so it will report “centos” also in the ovh manager.)

2. Once everything is done log into the server with ssh as root

3. Issue these commands:

Code:
mkdir /newsys
cd /newsys
wget http://ftp.hosteurope.de/mirror/centos.org/5.4/os/i386/images/pxeboot/initrd.img
wget http://ftp.hosteurope.de/mirror/centos.org/5.4/os/i386/images/pxeboot/vmlinuz
cp vmlinuz /boot/vmlinuz.cent.pxe
cp initrd.img /boot/initrd.img.cent.pxe
4. If you are not using grub (like all the OVH servers) you will need to install grub.
Code:
yum install grub
5. Add to/Edit the grub menu.lst entry to load the new kernel (WARNING if you are already using grub will not need to type again the first 2 lines!! )
Code:
nano -w /boot/grub/menu.lst
Add:
Code:
default 0
timeout 30
title Centos Clean Install
root (hd0,0)
kernel /boot/vmlinuz.cent.pxe vnc vncpassword=YOURPW headless ip=YOURIP netmask=255.255.255.0 gateway=GATEWAYIP dns=213.186.33.99 ksdevice=eth0 method=http://ftp.hosteurope.de/mirror/centos.org/5.4/os/i386/ lang=en_US keymap=us
initrd /boot/initrd.img.cent.pxe
NOTE, IF YOU ARE USING GRUB ALREADY DO NOT ADD THE DEFAULT AND TIMEOUT LINE AGAIN!

replace in the line which starts with "kernel" the following;

* YOURPW with the VNC password you want setup (Whatever you like)
* YOURIP with the ip of your server
* GATEWAYIP with the gateway assigned to your server. if u have x.x.x.x it will be x.x.x.254

U can find out your gateway ip also by:
Code:
route -n | grep UG

Press control+x and save.

6. This step is only neccesary when you do not have grub already.
Code:
grub-install /dev/sda
grub-install --recheck /dev/sda
check whether u use sda or something else, as far as I know, OVH uses sda, but if you are not 100% sure, check it

7. reboot

Your server will reboot, this can take from 30 sec to 2 minutes.
Download Ultra VNC, and connect to :1

VNC will ask you for your password, fill in the pw u filled into the grub.conf file.

You can start installing,

Remember to install on custom filetable, or format everything, and your server will now have a clean, good* centos on it

*Depends on what packages/roles you let your installer install