|
Search |
OVH propose Netboot service for free. It enables you to boot your server on a pre configured kernel directly from your network. See KernelNetboot If you wish that your server start on the kernel installed on its hard disk, you have to configure this option from your manager. Go to ‘Dedicated servers’ section and choose the server you’d like to configure. Then ‘select netboot’ 1. Connect via SSH to your dedicated server as a root. wget ftp://ftp.ovh.net/made-in-ovh/bzImage/bzImage-2.4.32-piv
wget ftp://ftp.ovh.net/made-in-ovh/bzImage/System.map-2.4.32-piv Once the files are recovered, create a symbolic link for System.map: ln -sf /boot/System.map-2.4.32-piv /boot/System.map
4. Edit /etc/lilo.conf file and modify the file as follows (you should have only the bold line to modify):
boot=/dev/hda
map=/boot/map install=/boot/boot.b prompt timeout=50 linear default=linux append="nousb" serial=0,9600n8 image=/boot/bzImage-2.4.32-piii label=linux read-only root=/dev/hda1 image=/boot/xxxxxxxxxxxxxxxx label=linux-old read-only root=/dev/hda1
boot=/dev/hda
map=/boot/map install=/boot/boot.b prompt timeout=50 linear default=linux append="nousb" serial=0,9600n8 image=/boot/bzImage-2.4.32-piv label=linux read-only root=/dev/hda1 image=/boot/xxxxxxxxxxxxxxxxxx label=linux-old read-only root=/dev/hda1
boot=/dev/hda
map=/boot/map install=/boot/boot.b prompt timeout=50 linear default=linux append="nousb noapic" serial=0,9600n8 image=/boot/bzImage-2.4.32-bipiv label=linux read-only root=/dev/hda1 append="nousb noapic" image=/boot/xxxxxxxxxxxxxxxxxxxx label=linux-old read-only root=/dev/hda1 5. Don’t forget to launch the following command to take into account your modifications at the time of reboot:
/sbin/lilo
6. Special Cases /etc/sysconfig/network-scripts/ifcfg-eth0
/etc/sysconfig/network-scripts/ifcfg-eth1 And reverse the configurations (you just have to reverse ifcfg-eth0 files to ifcfg-eth1 and ifcfg-eth1 to ifcfg-eth0 To reverse the interfaces under Debian, you have to edit the following file: /etc/network/interfaces
And place eth0 configuration on eth1 and eth1 on eth0. To reverse the interfaces under Gentoo, you have to edit the following file: /etc/conf.d/net
Once you have reversed the interfaces, you can reboot the server on the new kernel. If your server doesn’t respond and doesn’t ping, you can reboot the server on rescue then correct the configuration files once again. |