Quick install
From SolusVM
The SolusVM installer works with a prompt, this is not the ideal way to install servers when you need a quick or automated deployment. For example you can use the PXE network install with a kickstart(ks) file to pre-install the server. You can add some scripts to the ks, for example to install SolusVM. This article assumes that you already have a PXE environment for CentOS.
Contents |
Default SolusVM install
wget http://soluslabs.com/installers/solusvm/install chmod 755 install ./install
With this code, you can do a default SolusVM install, remember this is a prompt and requires user input. It is easy to give the system the "user input" role by using echo. An example to install the SolusVM slave software only (no virtualization type):
echo "2 3" | ./install
Once you run the install file, you'll get this:
::SolusVM Installer - 1.12 (02/06/2010) o-------------------------------------------------------------o | MAIN MENU | |-------------------------------------------------------------| | [1] Install SolusVM Master (GUI - only 1 per cluster) | | [2] Install SolusVM Slave | | [3] Install SolusVM Backup Server | | [4] Install SolusVM DNS Server | |-------------------------------------------------------------| | [0] Exit | o-------------------------------------------------------------o Choose an option:
The code echoes the 2 to this screen, and you'll get this:
::SolusVM Installer - 1.12 (02/06/2010) o-------------------------------------------------------------o | SLAVE NODE INSTALL | |-------------------------------------------------------------| | This will install this node as a SolusVM slave. | | The SolusVM slave will be controlled by the SolusVM master. | |-------------------------------------------------------------| | [1] Start Slave Install (OpenVZ) | | [2] Start Slave Install (Xen) | | [3] Start Slave Install (No Virtualization) | |-------------------------------------------------------------| | [0] Back to Main Menu | o-------------------------------------------------------------o Choose an option:
The second value in the echo command is 3, so the echo selects the option 3: Start Slave Install (No Virtualization).
Great, how do I get the id and key?
Easy:
cat /usr/local/solusvm/data/solusvm.conf
Until the : you have the id key, the other part is the id password.
It might be better to log the output from the installer, but it is not a requirement. You could also automate the grub part and reboot and add some code to the rc init that executes the PHP command.
More scripts
I won't add the master install part here as that is a one-time thing, but with this wiki you can easily create this by yourself. I'll show below a few default scripts.
slave OpenVZ
echo "2 1" | ./install
slave XEN
echo "2 2" | ./install
Backup server
echo "3 1" | ./install
DNS server
echo "4 1" | ./install
