H-Sphere VPS 1.5-9 Installation
(H-Sphere 2.5 and up)
08 Jan 2008 Features | Update
This document is the step-by-step instruction of adding a
VPS hosting box into an H-Sphere cluster
by means of H-Sphere update script in H-Sphere 2.5 and up.
For H-Sphere under 2.5 or non H-Sphere boxes you need to install VPS server
manually.
Important! These instructions are valid only for
H-Sphere 2.5 Patch 4
and up. For
lower H-Sphere versions, perform steps described here.
For more information on VPS, please contact
vps@psoft.net.
Step 1. Preparation
See Preparing Server for H-Sphere VPS Installation in a separate document.
Step 2. Installation
Important! Add a VPS service to a separate physical box
reserved only for VPS. We don't recommend to add other services to this box like web, mail etc.
Starting with H-Sphere 2.5 RC 2, a new physcical VPS box is added to H-Sphere cluster within the standard procedure
of adding servers and services (first add a physical Unix
box via the cp, then add a logical vps server to it, then run the installation script).
Note: This procedure will install the following core VPS related packages on the VPS host server:
- FreeVPS kernel: freevps-1.5-9
- FreeVPS tools: freevps-tools-1.4-9
- H-Sphere VPS: hsphere-vps-1.5-9.noarch
The packages may vary depending upon the operating system.
For a full list of VPS related packages installed on VPS box, please refer to VPS Server
per supported operating systems in H-Sphere 2.5 RC 2 Package
List.
Step 3. Edit Boot Loader Configuration File
Edit this file (/boot/grub/grub.conf, or /etc/lilo.conf) so its default variable is set to take newly
installed kernel as the boot image.
Important! Keep the old kernel image settings, so the system can start if anything goes wrong with the new kernel
installation.
- grub.conf
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Linux (2.4.21-freevps-1.5-9)
root (hd0,0)
kernel /vmlinuz-2.4.21-freevps-1.5-9 ro root=/dev/sda5
initrd /initrd-2.4.21-freevps-1.5-9.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
- lilo.conf
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.5-9
label=linux_patched
initrd=/boot/initrd-2.4.21-freevps-1.5-9.img
read-only
root=/dev/sda5
Now apply changes to lilo.conf (skip this step if you use grub boot loader):
# lilo
If you correctly edit lilo.conf, the command will list all labels' values as added.
Step 4. Reboot the Server
Run:
# shutdown -r now
Step 5. Check Kernel Version
Run:
# uname -a
If the procedure has been performed correctly, this command will return a line with parameters of the server which must include
1.5-9.
Step 6. VPS Host Configuration
To configure your virtual servers, run the configuration script:
# /hsphere/shared/scripts/vps-configure.pl
With the further steps, you'll perform basic configuration of your virtual servers.
See more on VPS host configuration.
Step 7. Configure Network Gateways
Follow insructions on adding VPS network gateways.
|