Creating the VPS
After you have created the customer account, set up the VPS as follows:
Creating the Physical VPS
- Navigate to the user from the list of accounts on the left. Then, click on the Admin editor tab.
- In the Add a VPS for this admin section, select the next available VPS hostname in the VPS Server hostname box. This should be a VPS on node00001.gigatux.com in the UK, not node00004.gigatux.com or node00005.gigatux.com.
- Select the product that the user has purchased. For new VPSs, this will be a product ending in ' L', e.g. Solo L as opposed to simply Solo or Solo E.
- Ensure that Setup physical VPS (LVM) is set to Yes.
- Click Add VPS and wait a short while for the VPS to be created.
Verifying that the Physical VPS has been created
- Log in to the relevant dom0 (e.g. node00004.gigatux.com) as your username and then su to root.
- cd to /var/lib/dtc-xen/mnt
- Examine the contents of XY.setuplvm.*, where XY is the VPS number you created. The contents should look something like this:
File descriptor 12 left openFile descriptor 51 left openFile descriptor 52 left openFile descriptor 53 left openFile descriptor 54 left openSeleted xenXY: 20224MB HDD and 128MB RAMCreating disks...Logical volume "xen08" createdLogical volume "xen08swap" created
- Ensure that the first value corresponds to the correct hard drive size requested (minus swap), and the second corresponds to the correct swap size (which should be the same as the memory allocation).
- N.B. Further information can be obtained by typing lvdisplay /dev/lvm1/xenXY[swap].
Update WHMCS
You now need to update the user's WHMCS account product with the details of the VPS. In particular, please update the:
- Server
- Username
- Password
- vserverid (e.g. 05 if you created VPS ID 05)
- Dedicated IP
- Additional IPs (if applicable, one to a line)
Finally, close the Provisioning ticket if one was opened upon account payment.
We're now done
The VPS is now set up, but there is no Operating System on there at present, so it's pretty useless. We no longer install the initial operating system but provide information for users via WHMCS. Only if you get any requests for help in installing the OS should you follow the below:
Install the Operating System
- Navigate to the user from the list of accounts on the left. Then, click on the Client interface tab, followed by the VPS in the new tab set, and then Installation.
- Select the operating system as required:
- Set the root password to be the same as the user's login password for the DTC control panel.
- Click Reinstall operating system.
Verifying that the Operating System has been Installed
- Log in to the relevant dom0 (e.g. node00004.gigatux.com) as your username and then su to root.
- cd to /var/lib/dtc-xen/mnt
- Examine the contents of XY.log, where XY is the VPS number you created. Because this installation process may take a while, you may want to output this log file as it is appended to. This can be done by typing tail -f <file>.
- Upon completion, the contents of this look something like this (for debian):
I: Configuring apt-utils...I: Configuring klogd...I: Configuring tasksel-data...I: Configuring sysklogd...I: Configuring tasksel...I: Base system installed successfully.Customizing vps...Making VPS devices with MAKEDEV genericCopying modules...Unmounting proc and filesystem root...Install script finished
- If there are any errors before this stage, you will need to try and manually correct them and reinstall the operating system again. You can ignore errors similar to the below though:
rm: cannot remove `/var/lib/dtc-xen/mnt/26/dev/pts': Is a directorymkdir: cannot create directory `/var/lib/dtc-xen/mnt/26/dev/pts': File exists