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