Install the new kernel package.
Note: Skip this step if you have the latest kernel release.
1) Install the new kernel package kernel-freevps-1.2-x.
2) Go to the /boot directory to check if the kernel update takes place:
# cd /boot
# ls -la
The new kernel is vmlinuz-2.4.21-freevps-1.2-x.
The old one would look like vmlinuz-2.4.18-3 or
vmlinuz-2.4.21-4.EL.
3) Modify the boot loader, (a) for GRUB or (b) for LILO:
(a) GRUB: Edit the /boot/grub/grub.conf configuration file/
Note: GRUB loader may automatically update its configs.
In such case you need to change the default boot image.
# vi /boot/grub.conf
The file should look like this:
Red Hat Linux release 7.3:
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Linux (2.4.21-freevps-1.2-31)
root (hd0,0)
kernel /vmlinuz-2.4.21-freevps-1.2-31 ro root=/dev/sda5
initrd /initrd-2.4.21-freevps-1.2-31.img
title Red Hat Linux (2.4.18-3)
root (hd0,0)
kernel /vmlinuz-2.4.18-3 ro root=/dev/sda5
initrd /initrd-2.4.18-3.img
Red Hat Enterprise Linux release 3:
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Enterprise Linux ES (2.4.21-freevps-1.2-31)
root (hd0,0)
kernel /vmlinuz-2.4.21-freevps-1.2-31 ro root=/dev/sda5
initrd /initrd-2.4.21-freevps-1.2-31.img
title Red Hat Enterprise Linux ES (2.4.21-4.EL)
root (hd0,0)
kernel /vmlinuz-2.4.21-4.EL ro root=/dev/sda5
initrd /initrd-2.4.21-4.EL.img
default=0 means that GRUB would take the first title record
as the boot image, i.e., our new kernel.
GRUB loader would update the kernel automatically after reboot.
(b) LILO:
Step 1: Modify the lilo.conf configuration file:
# vi /etc/lilo.conf
Copy and paste the kernel image settings lines
and change the kernel number and the label parameter.
Change the default kernel loading parameter to the new kernel label name.
Important! Do not delete the old kernel image settings! If you delete these lines and
something goes wrong with the new kernel installation, your system would not start!
After these changes, lilo.conf would look like:
Red Hat Linux release 7.3:
prompt
timeout=50
default=linux_patched
boot=/dev/sda
map=/boot/map
install=/boot/boot.b
message=/boot/message
linear
image=/boot/vmlinuz-2.4.18-3
label=linux
initrd=/boot/initrd-2.4.18-3.img
read-only
root=/dev/sda5
image=/boot/vmlinuz-2.4.21-freevps-1.2-31
label=linux_patched
initrd=/boot/initrd-2.4.21-freevps-1.2-31.img
read-only
root=/dev/sda5
Red Hat Enterprise Linux release 3:
prompt
timeout=50
default=linux_patched
boot=/dev/sda
map=/boot/map
install=/boot/boot.b
message=/boot/message
linear
image=/boot/vmlinuz-2.4.21-4.EL
label=linux
initrd=/boot/initrd-2.4.21-4.EL.img
read-only
root=/dev/sda5
image=/boot/vmlinuz-2.4.21-freevps-1.2-31
label=linux_patched
initrd=/boot/initrd-2.4.21-freevps-1.2-31.img
read-only
root=/dev/sda5
Step 2: Type lilo to apply changes:
# lilo
You will see the line:
Added linux
Added linux_patched *
4) Reboot the server:
# shutdown -r now
5) Check if the kernel update takes effect:
# uname -a
If the kernel version is 2.4.21-freevps-1.2-x,
the kernel is patched successfully.
6) Install FreeVPS tools.
If you are not going to install H-Sphere VPS, download the basic FreeVPS tools package
from the FreeVPS download area:
# wget http://www.freevps.com/download/freevps-tools/freevps-tools-1.2-6.i386.rpm
If you install H-Sphere VPS, you need to download special FreeVPS tools for H-Sphere VPS
from the PSoft site:
RedHat 7.3:
# wget http://www.psoft.net/shiv/HS/VPS/RH73/freevps-tools-1.2-6.i386.rpm
RedHat EL 3:
# wget http://www.psoft.net/shiv/HS/VPS/RHEL/freevps-tools-1.2-6.i386.rpm
Then, install the package:
# rpm -ivh freevps-tools-1.2-6.i386.rpm