H-Sphere VPS Versions


H-Sphere VPS 1.5-5 Installation

(manual procedure - all supported H-Sphere versions or non H-Sphere boxes)

28 Mar 2007

Features   |   Install   |   Update


This document is the step-by-step instruction of manual (i.e., not by means of H-Sphere update script) H-Sphere VPS installation on a VPS hosting box.

Note: In H-Sphere 2.5 RC 2 and up it is preferable to install the server by means of automatically by H-Sphere updater.

Note: H-Sphere VPS 1.5 and up comes under the GPL license and is admissible for installation on non H-Sphere boxes.

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

Installation procedure is different for H-Sphere 2.5 and up and for H-Sphere before 2.5 or non H-Sphere boxes.

Important!
Add VPS service to a separate H-Sphere physical box reserved only for VPS. We don't recommend to add other services to this box like web, mail etc.

 

H-Sphere 2.5 and up

Starting with H-Sphere 2.5 RC 2, a new physical 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-8
  • FreeVPS tools: freevps-tools-1.4-6
  • H-Sphere VPS: hsphere-vps-1.5-5.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.

 

H-Sphere 2.4.x or non H-Sphere boxes

  1. Download the following packages:

    RH73
    RHEL3
    RHEL4
    TRUSTIX22
    Location: http://www.psoft.net/shiv/HS/VPS/RH73/

    SysVinit-2.85-4.i386.rpm
    modutils-2.4.25-11.EL.i386.rpm
    modutils-devel-2.4.25-11.EL.i386.rpm
    pam-0.75-51.i386.rpm
    pam-devel-0.75-51.i386.rpm
    vixie-cron-3.0.1-74.i386.rpm
    procps-2.0.13-9.2E.i386.rpm
    hsphere-perl-1-8.rpm
    hsphere-vps-install-0.7-0.noarch.rpm
    hsphere-vps-1.5-5.noarch.rpm
    hsphere-scripts-0.2-1.vps.noarch.rpm
    hsphere-sudo-1.6.8p12-2.rpm
    hsphere-script-runner-1-10.rpm
    Location: http://www.psoft.net/shiv/HS/VPS/RHEL3/

    hsphere-perl-1-8.rpm
    hsphere-vps-install-0.7-0.noarch.rpm
    hsphere-vps-1.5-5.noarch.rpm
    hsphere-scripts-0.2-1.vps.noarch.rpm
    hsphere-sudo-1.6.8p12-2.rpm
    hsphere-script-runner-1-10.rpm
    Location: http://www.psoft.net/shiv/HS/VPS/RHEL4/

    hsphere-perl-1-8.rpm
    hsphere-vps-install-0.7-0.noarch.rpm
    hsphere-vps-1.5-5.noarch.rpm
    hsphere-scripts-0.2-1.vps.noarch.rpm
    hsphere-sudo-1.6.8p12-2.rpm
    hsphere-script-runner-1-10.rpm
    Location: http://www.psoft.net/shiv/HS/VPS/TRUSTIX22/

    hsphere-perl-1-8.rpm
    hsphere-vps-install-0.7-0.noarch.rpm
    hsphere-vps-1.5-5.noarch.rpm
    hsphere-scripts-0.2-1.vps.noarch.rpm
    hsphere-sudo-1.6.8p12-2.rpm
    hsphere-script-runner-1-10.rpm

    We recommend downloading these packages into a separate directory.

  2. Install the downloaded packages:

    1. Enter downloaded packages directory, and install the packages for your operating system in the order they are listed in the table above, up to the hsphere-vps-install package (including the latter). Use the rpm -iv option for installation:

      # rpm -iv PACKAGE_FILE

    2. Run the FreeVPS kernel and tools' installation script:

      # /hsphere/pkg/scripts/hsphere-vps-install/hsphere-vps-install.pl -v

      It will inform you about host configuration (platform, processor, memory capicity, OS):

      The following system detected:
      Platform   i386
      CPU type   athlon
      CPU count  2
      Mem. total 1539888 Kb
      OS family  RHEL4
      

      It will also remind you about the new kernel version to boot with, for example:

      + Do not forget to configure boot loader to boot with new kernel: '1.5-8'

      Note: If there are no sutable FreeVPS kernel/tools found for your host or install failed, please use the following documentation to install them manually according to FreeVPS documentation.

    3. Install the rest of the packages specified in the table list after the hsphere-install package:

      # rpm -iv PACKAGE_FILE

  3. Add VPS host server as new H-Sphere physical/logical server (skip this step for non H-Sphere boxes) :

    1. Generate SSH keys on your CP server and place them to the VPS host server to provide SSH connection between VPS host and CP server
    2. Follow the instructions in Admin Guide on adding and configuring physical and logical VPS servers in H-Sphere interface.

 

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-8)
      root (hd0,0)
      kernel /vmlinuz-2.4.21-freevps-1.5-8 ro root=/dev/sda5
      initrd /initrd-2.4.21-freevps-1.5-8.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-8    label=linux_patched
        initrd=/boot/initrd-2.4.21-freevps-1.5-8.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-8.

 

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

(Only for H-Sphere 2.5 and up)

Follow insructions on adding VPS network gateways.





See Also:

FreeVPS
H-Sphere Versions
H-Sphere Documentation
H-Sphere VPS (Sysadmin Guide)
H-Sphere VPS (Admin Guide)
H-Sphere VPS (User Guide)
   
Request VPS Installation



Copyright 1998-2017. Positive Software Corporation.
All rights reserved.