Parallel provides two graphical options to create and manage VPSs.  VZCC , the  Virtuozzo control center is one of those gui options, the second is the desktop based application VZMC  the Virtuozzo management console, which is a powerful tool and is capable of creating and managing vpss with all details.

However techs or admins that spend most of their time on shell, mostly prefer to do these things on shell, in this article I will list the commands that can be used to setup new vps on shell and can set its basic parameters.

The main commands used for this process are ‘vzctl create‘ to create the vps and then ‘vzctl set‘ to set the configs.

Below is complete set of commands to achieve this :

vzctl create VEID --ostemplate centos-5-x86 --config basic
vzctl set VEID --onboot yes --save
vzctl set VEID --offline_management yes --save
vzctl set VEID --hostname vps.domainname.net --save
vzctl set VEID --userpasswd root:Bh@tu76Ghyt --save
vzctl set VEID --ipadd 11.22.33.44 --ipadd 11.22.33.45 --save
vzctl set VEID --nameserver "8.8.8.8 8.8.4.4" --save

The first command contains the main paramter –ostemplate using which you select the tmplate on which you will create the vps, it can be centos, ubuntu, fedora core etc. The second parameters is –config which applies default values for different QOS parameters from a config files.

You can see complete list of templates available on the node using vzpkg list command , or vzpkgls for older tempaltes. The vzpkg list command will list the newer EZ templates only.

The –onboot option is set to yes so that the vps boots up automatically on node reboot.  The –offline_management is set to yes as well so that the vps user has access to the vzpp ( Virtuozzo Power Panel ) so they can reboot their vps themselves and access other vzpp options.

The –hostname option is simply used to set the hostname of the vps. The –userpasswd option as you can see is used to set the root password for the vps and the –ipadd parameter is used for assigning IPs, the more IPs can be added by adding more –ipadd sections in the command and lastly the –nameserver option is used to set the Nameservers for the vps.

You can see the command help on shell for complete details of vzctl set and vzctl create commands.

Tags: , , , , ,

Leave a Reply