VPS INSTALLATION

DATED : 23/11/2018

Step 1: First, choose what type of operating you are going to choose for you vps . In /vz/template/cache/ of vz node it contains the list of operating you have to select one for you VPS.

Step 2 : Create a new container in your vz hardnode  using

vzctl create 114 --ostemplate centos-7-x86_64 --config vswap-4g

Here 114 is the ccid of your vps it is called as container in vz node. And the remove .tar.gz from your operating system to create the new VPS.

Step 3 : Save the server in the name

vzctl set 114 --save --name VPS1

Here we set the Name for vps as VPS1.

Step 4 :  Set the onboot to yes when you install the new VPS

vzctl set 114 --save --onboot yes

Step 5 : Set the hostname for your vps during the installation of the process using this command in you vz node.

vzctl set 114 --save --hostname ns1.example.com

Here we gave ns1.example.com

Step 6 : Set the ip address for the vps using the below command.

vzctl set 114 --save --ipadd xxx.xxx.xxx.xxx

Here you can you replace xxx.xxx.xxx.xxx with your ip address.

Step 7 :Set the name server

vzctl set 114 --save --nameserver 8.8.8.8 --nameserver 8.8.4.4

Here we are giving the global name server as 8.8.8.8 and 8.8.4.4

Step 8 : Set the CPU, RAM and  Swap for  the VPS using

vzctl set 114 --save --cpus 1
vzctl set 114 --save --ram 2G
vzctl set 114 --save --swap 2G

Here we set 1 cpu for this VPS.

Step 9 : Set the disk space for your vps using

vzctl set 114 --save --diskspace 10G

Here we allocate 10GB for our VPS you can change this belong to your requirement.

Step 10 : After these start the vps using

vzctl start 114

Step 11 : And also enter into your vps, from vz node using

vzctl enter 114

Step 12 : Then set the password for the user root within the server using

passwd

After completing these steps you can login to the server using ssh with the default ssh port number 22.

 

Leave a Reply