Login/Register

How to: Setup a new Slave for SolusVM on CentOS 6

created by BasicSysAdmin

Tags: CentOS, CentOS 6, SolusVM

Jun 19, 2016

Introduction

In this guide, I will be showing you how to setup a new OpenVZ Slave on CentOS 6.

Prerequisites


In order to follow this tutorial, you will need the following

  • SolusVM Master only Installation

  • Clean install of CentOS 6


  • Setting up the slave

    The first thing you will need to do is download and run the installer.

    yum install -y wget
    wget http://soluslabs.com/installers/solusvm/install
    chmod 755 install
    ./install

    This command will go and download the latest install script from SolusVMs website.
    The Installation

    At the start of the installation, you will see a notification saying if anything fails to check the logs.

    Press the Return key. Next, select the appropriate operating system. Mine is option 2.

    You can now pick which version you would like to install. As the latest version is currently 1, I shall install this.

    Now, you can select the mirror to use. If you are unsure, just hit 1

    Finally, you can now select the type of installation to do. I shall be installing the Slave with OpenVZ Virtualisation

    This should now start installing any dependencies.
    When that has finished, you should see the following screen

    Boot Kernel and SELINUX

    Once that has installed, we now need to check the grub file and make sure that it will boot into the correct kernel.

    yum install nano -y; nano /boot/grub/grub.conf

    Make sure that the OpenVZ is the top option

    After you have checked this, you can exit (Ctrl + x).
    Next, we need to disable SELINUX. You can do this by editing

    nano /etc/selinux/config

    And changing the line to
    SELINUX=disabled

    Linking the Slave to the Master

    To link the slave you have just created to a master, you must login to the masters admin control panel. When you have done this, you will need to go to the nodes dropdown and click add node.

    You now need to enter the form with the correct information. After you have done this, you can click add node.
    If you wanted to, you can then click on the link to edit the settings and set things such as max ram and disk space.
    When you have done this, you will be able to create a new virtual machine and select the slave as the installation destination.