Linux, OpenVz

Unable to fork: Cannot allocate memory

You can see this error while;e trying to access the vps from node.

[root@vps15 ~]# vzctl enter 293
Unable to fork: Cannot allocate memory

It means one of the resources controlled by OpenVZ has hit the limit. Also you can see strange failures from some programs inside your container like services may fail.

check the contents of the /proc/user_beancounters file in your container.The last column of output is the fail counter. Each time a resource hits the limit, the fail counter is incremented. So, if you see non-zero values in the failcnt column that means something is wrong.

Check the vps paramaters using the below command on node

cat /proc/user_beancounters

uid resource held maxheld barrier limit

numproc 240 240 240 240

dgramrcvbuf 261632 261632 262144 262144

numfile 6459 6663 9312 9312

From this result you need to check the “barrier” and “limit” values. Check the above example and see that they are same,which means limit has reached. To see only the failed parameters of all vps,execute the below command

vzubc -c -q
[root@vps15 ~]# vzubc -c -q
—————————————————————-
CT 293 | HELD Bar% Lim%| MAXH Bar% Lim%| BAR | LIM | FAIL
————-+—————+—————+—–+—–+——
shmpages| 596K 0.5% 0.5%|99.1M 84% 84%| 117M| 117M| 76
numproc| 240 100% 100%| 240 100% 100%| 240 | 240 | 2.42K
oomguarpages|1003M 983% – |1.07G 1076% – | 102M| – | –
numtcpsock| 232 64% 64%| 234 65% 65%| 360 | 360 | –
tcprcvbuf| 963K 57% 36%|1.65M 100% 64%|1.64M|2.58M| 39
dgramrcvbuf| 255K 99% 99%| 255K 99% 99%| 256K| 256K| 60.2K
numfile|6.31K 69% 69%|6.51K 71% 71%|9.09K|9.09K| –
Now,we need to increase the paramaters to set everything back to normal like below. Change the parameter name in the below command according to the scenario.
—————

vzctl set 293 –dgramrcvbuf 8000000:8000000 –save

vzctl set 293 –numfile 25000:25000 –save

You can validate the configuration using the below command.
———————————————————–

vzcfgvalidate /etc/vz/conf/293.conf
Now reboot the vps
—————-

vzctl enter 293

Standard
Linux, OpenVz

Enable Iptables Modules for a VPS

Below was the error while trying to install CSF in one of the OpenVz containers:

———————————-error——————————–
[root@abc ~]# perl /etc/csf/csftest.pl
Testing ip_tables/iptable_filter…OK
Testing ipt_LOG…FAILED [ 4294967295] – Required for csf to function
Testing ipt_multiport/xt_multiport…FAILED [FATAL Error: iptables: Unknown error 4294967295] – Required for csf to function
Testing ipt_REJECT…OK
Testing ipt_state/xt_state…FAILED [FATAL Error: iptables: Unknown error 4294967295] – Required for csf to function
Testing ipt_limit/xt_limit…FAILED [FATAL Error: iptables: Unknown error 4294967295] – Required for csf to function
Testing ipt_recent…FAILED [Error: iptables: Unknown error 4294967295] – Required for PORTFLOOD and PORTKNOCKING features
Testing xt_connlimit…FAILED [Error: iptables: Unknown error 4294967295] – Required for CONNLIMIT feature
Testing ipt_owner/xt_owner…FAILED [Error: iptables: Unknown error 4294967295] – Required for SMTP_BLOCK and UID/GID blocking features
Testing iptable_nat/ipt_REDIRECT…FAILED [Error: iptables v1.3.5: can’t initialize iptables table `nat’: Table does not exist (do you need to insmod?)] – Required for MESSENGER feature
Testing iptable_nat/ipt_DNAT…FAILED [Error: iptables v1.3.5: can’t initialize iptables table `nat’: Table does not exist (do you need to insmod?)] – Required for csf.redirect feature
—————————————————————

Enable Iptables Modules for a VPS:-

1 . Before enabling the modules to a VPS , make sure that its enabled in the root node of the VPS. You can check it using the command :
lsmod | grep -i module_name

2. If its not enabled, then it can enable by using the modprobe command :-

modprobe iptables_module
modprobe ipt_helper
modprobe ipt_REDIRECT
modprobe ipt_TCPMSS
modprobe ipt_LOG
modprobe ipt_TOS
modprobe iptable_nat
modprobe ipt_length
modprobe ipt_tcpmss
modprobe iptable_mangle
modprobe ipt_tos
modprobe iptable_filter
modprobe ipt_helper
modprobe ipt_tos
modprobe ipt_ttl
modprobe ipt_SAME
modprobe ipt_REJECT
modprobe ipt_helper
modprobe ipt_owner
modprobe ip_tables
modprobe ipt_MASQUERADE
modprobe ipt_multiport/xt_multiport
modprobe ipt_state/xt_state
modprobe ipt_limit/xt_limit
modprobe ipt_recent
modprobe xt_connlimit
modprobe ipt_owner/xt_owner
modprobe iptable_nat/ipt_DNAT
modprobe iptable_nat/ipt_REDIRECT

3. Stop the container which one you want to enable the module :
# vzctl stop 101

4 . Executing the following command:-

a) By Command:
Execute following command to enable all the modules for the VPS

# vzctl set 101 –iptables ipt_REJECT –iptables ipt_tos –iptables ipt_TOS –iptables ipt_LOG –iptables ip_conntrack –iptables ipt_limit –iptables ipt_multiport –iptables iptable_filter –iptables iptable_mangle –iptables ipt_TCPMSS –iptables ipt_tcpmss –iptables ipt_ttl –iptables ipt_length –iptables ipt_state –iptables iptable_nat –iptables ip_nat_ftp –save
or

b) Adding Rules manually:
Open the VPS configuration file which exists at /etc/vz/conf/veid.conf and paste following in the last line of the file.

IPTABLES=”iptable_filter iptable_mangle ipt_limit ipt_multiport ipt_tos ipt_TOS ipt_REJECT ipt_TCPMSS ipt_tcpmss ipt_ttl ipt_LOG ipt_length ip_conntrack ip_conntrack_ftp ip_conntrack_irc ipt_conntrack ipt_state ipt_helper iptable_nat ip_nat_ftp ip_nat_irc”

5. Restart the container.
# vzctl restart 101

Standard
cPanel, OpenVz

mod_fcgid: error reading data from FastCGI server

If the website intermittently give 500 error and if you are seeing the below error on the logs.

===

[Fri Aug 29 09:08:06.123262 2014] [fcgid:warn] [pid 31144:tid 140133779031808] (104)Connection reset by peer: [client 208.xx.xx.xx:51433] mod_fcgid: error reading data from FastCGI server, referer: http://www.xxxl.com/classifieds.php [Fri Aug 29 09:08:06.123312 2014] [core:error] [pid 31144:tid 140133779031808] [client 208.xx.xx.xx :51433] End of script output before headers: sample.php, referer: http://www.xxx1com/classifieds.php

===

UserDir requests will not function correctly when using Mod_FCGI. This is documented at:

https://documentation.cpanel.net/pages/viewpage.action;jsessionid=EE900DCD2DBC1D949177B14C74346610?pageId=360752#FCGI Considerations

Disabling SuExec will allow the URL to load, but it reduces the overall security of FCGI.

Also try to increase memory parameter for the vps. You can check the current from node using :

cat /proc/beancounters

Standard
Linux, OpenVz

Openvz wiki- Everything for openvz node administration

#####
vzctl
#####

vzctl is the primary tool for Container management. To use it, you have to log in to the Hardware Node as the administrator.

#################################################################
The syntax of vzctl is: vzctl [–quite | –verbose] command CT_ID
#################################################################

############
VZCTL-Create
############

This command is used to create a new Container on your Hardware Nod  ——————> vzctl create CT_ID –pkgset name

To add the specified IP address to the list of IP addresses the Container   ——————>  vzctl create CT_ID [–ipadd ip_address]

The hostname to be assigned to the Container  ——————> vzctl create CT_ID [–hostname hostname]

To copy the values from the sample Container configuration file located in the X:\Program Files\SWSoft\Virtuozzo\Configs folder on the Hardware Node and having the name
in the form of ve-.conf-sample  ——————> vzctl create CT_ID [–config filename]

To specifies the location of the Container private area  ——————>    vzctl create CT_ID [–private path]

To specify the type of the Container virtual disk drive. It can be one of the   ——————>    vzctl create CT_ID [–disktype]

_______________________________________________________________________________________________________________________________________________________________________________

######################
VZCTL-delete & destroy
######################

The commands are used to delete a Container  ——————> vzctl delete

The commands are used to destroy a Container ——————> vzctl destroy

________________________________________________________________________________________________________________________________________________________________________________

######################
VZCTL-mount & umount
######################

The command to mount Container private area to the Container root folder   —————–>  vzctl mount

The command to umount Container private area to the Container area and registry —————–>   vzctl umount

________________________________________________________________________________________________________________________________________________________________________________

########################################################
vzctl start, vzctl stop, vzctl restart, and vzctl status
########################################################

Command to start a Container —————–> vzctl start

Command to shut the Container down —————–> vzctl stop

Command for stopping and starting of the corresponding Container —————–> vzctl restart

Command to command shows the current Container state  —————–> vzctl status

_________________________________________________________________________________________________________________________________________________________________________________

#########
vzctl set
#########

This command is used for setting Container parameters. It has the following syntax:

vzctl set [ –save ]

To automatically start this Container on next system startup    ————> vzctl set –onboot yes|no

To creates a new user with the specified password inside the Container,
or changes the password of an already existing user    ————> vzctl set –userpasswd user:password

To enables/disables the direct managing of the Container thru a common
Internet browser by means of Parallels Power Panel    ————> vzctl set –offline_management yes|no

To grant access to any drive on the Hardware Node from
inside a Container    ————> vzctl set –devadd device

To shuts down access to a drive on the Hardware Node granted by means of the
–devadd setting    ————> vzctl set –devdel device

To shut down access to a drive on the Hardware Node granted by means of the
–devadd settin    ————> vzctl set –devdel device

To assign arbitrary name  to the Container    ————> vzctl set –name

To set the description for the Container    ————> vzctl set –description

To specify the Terminal Services mode for the Container    ————> vzctl set –tsmode admin|app

To set NETBIOS name or the IP address of the Terminal Server License
(TSL) server to be used by the Container    ————> vzctl set –tslicservers name

To enables/disables SCSI-aware drivers to load inside the Container————> vzctl set –scsi yes|no

To enables/disables the support of the Microsoft Cluster Server
(MSCS) software inside the specified Containe    ————> vzctl set –failover_cluster yes|no

Sets number of processes allowed to simultaneously run inside
the Container    ————> vzctl set – p, –numproc number

To set the allowed CPU power     ————> vzctl set –cpuunits units

For positive integer number that determines the minimal
guaranteed share of the CPU time,    ————> vzctl set –cpuguarantee percent

This is a positive number indicating the CPU time, in percent,
the corresponding Container is not allowed to exceed    ————> vzctl set –cpulimit percent

The total size of disk space that can be consumed by
the Container, in 1 Kb blocks    ————> vzctl set –diskspace number

The name of the drive inside the Container for which the disk
space limit is to be set    ————> vzctl set –drive drive_name

The size of private or potentially private memory that can be
allocated to all applications inside the Container    ————> vzctl set –vprvmem number

The type of the Container virtual disk drive    ————> vzctl set –disktype plain|compact

The amount of paged-pool memory, in megabytes for container        ————> vzctl set –pagedpoollimit number

To allocate amount of non-paged-pool memory, in megabytes
for container     ————> vzctl set –nonpagedpoollimit number

To set the number of CPUs to be available to the Container    ————> vzctl set –cpus number

To specifies the bandwidth limit for the Container          ————> vzctl set –rate class:Kbits

To set the hostname of the Container            ————> vzctl set –hostname name

To adds an IP address to a list of IP addresses the Container      ————> vzctl set –ipadd addr

To add an IP address along with subnet mask    ————> vzctl set –ipadd addr/netmaskbits

————> vzctl set –ipadd addr:netmask

To revoke an IP address from the Container            ————> vzctl set –ipdel addr|all

The DNS server IP address for the Container    ————> vzctl set –nameserver addr

To search DNS domain for the Container            ————> vzctl set –searchdomain domain

To enable/disable the Quality of Service packet
scheduler for the Container             ————> vzctl set –psched on|off

To access the Container either being isolated within
its subnet or can also be accessed from other subnets    ————> vzctl set –isolate on|off

To specify the preferred network adapter for a Container    ————> vzctl set –preferred_adapter Adapter_ID

To create a new virtual network adapter for the Container with
the name specified    ————> vzctl set –netif_add name

To remove virtual network adapter with the specified name or GUID  ————> vzctl set –netif_del name/GUID

To set the operating mode    ————> vzctl set –nettype bridged|routed

To specify the name of the Container virtual network adapter       ————> vzctl set –netif name

To assign MAC address to the default Container virtual network adapter ——–> vzctl set –mac XX-XX-XX-XX-XX-XX

To specify the IP address of the device to be used for routing the traffic
from the default Container virtual network adapter to external networks ——-> vzctl set –gateway addr

The IP address of the WINS server to be used by the default Container
virtual network adapter ——-> vzctl set –winsserver addr

To enable/disable the Virtual Private Network (VPN) support by
the default Container virtual network adapter ——-> vzctl set –vpn on|off

To enable/disable the Network Address Translation (NAT) functionality
for the default Container virtual network adapter ——-> vzctl set –nat on|off

To adds the virtual (Network Load Balancing cluster) IP address to the
default Container virtual network adapter ——-> vzctl set –cluster_ip IP_addr

__________________________________________________________________________________________________________________________________________________________________________________

########################################
vzctl exec, vzctl exec2, and vzctl enter
########################################

These commands are used to run arbitrary commands inside a Container being authenticated as the administrator on the Hardware Node. The syntax of these commands is as follows:

######################################
vzctl {exec, exec2}

vzctl enter
#######################################

To return 0 and not to take into account the exit code
of the command itself          ——-> vzctl exec

To return the exit code of the command executed in the Container ——-> vzctl exec2

Command is similar to vzctl exec and enables you to execute multiple
commands as if you were logged in to the Container ——-> vzctl enter

___________________________________________________________________________________________________________________________________________________________________________________

##################################
vzctl mountext and vzctl umountext
##################################

To mount a drive on the Hardware Node to a drive or folder inside your Container ——> vzctl mountext CT_ID –srcdir path –dstdir path

To unmount a drive on the Hardware Node to a drive or folder inside your Container ——> vzctl unmountext CT_ID –srcdir path –dstdir path

___________________________________________________________________________________________________________________________________________________________________________________

###############################
vzctl partadd and vzctl partdel
###############################

To create a new drive inside your Container by mounting it to a loopback
file on the Hardware Node  ——> vzctl partadd CT_ID –drive CT_drive –size drive_size

To create a new drive inside your Container by mounting it to a loopback
file on the Hardware Node with the name of the file to be created on the Nod ——> vzctl partadd CT_ID –drive CT_drive –size drive_size[–file File_Name]

To delete the drive inside your Container by mounting it to a loopback
file on the Hardware Node  ——> vzctl partdel CT_ID –drive CT_drive [–delete]

___________________________________________________________________________________________________________________________________________________________________________________

###############
vzctl reinstall
###############

To remove the Administrator credentials from the users’ database
and create clean database as for any new installation  ——> vzctl reinstall –resetpwdb

Command not to store the backup contents of the old private area in the reinstall folder —–> vzctl reinstall –skipbackup

___________________________________________________________________________________________________________________________________________________________________________________

############
vzctl shrink
############

Command to shrink virtual disk drives of the compact type inside your Containers  —–> vzctl shrink CT_ID –drive CT_drive_name

___________________________________________________________________________________________________________________________________________________________________________________

######
vzlist
######

To list all the Containers existing on the Hardware Node   ——–> vzlist -a, –all

To list  only stopped Containers ——–> vzlist -S, –stopped

To list only particular information about the Containers ——–> vzlist -o parameter[.specifier]

To not display column headers ——–> vzlist -H, –no-header

To list all the parameters available ——–> vzlist -L, –list

To display the usage information and exit ——–> vzlist –help

To display only those Containers that correspond
to the specified hostname pattern ——–> vzlist -h, –hosthame hostname_pattern

To disable logging to the display and to the log file ——–> vzlist –quiet

To display information on all the Containers on the Node
together with their names  ——–> vzlist -n, –name

To set the log level to the maximum possible value to vzlist session—-> vzlist –verbose
_______________________________________________________________________________________________________________________

#######
vzquota
#######

The syntax of vzquota command is as follows:

vzquota [–quiet | –verbose] [-b] setlimit CT_ID -B num \[–drive name] Allows you to change the quota limits for the running quota.

vzquota [–quiet | –verbose] [-b] stat CT_ID Shows quota statistics for the running quota

vzquota [–quiet | –verbose] [-b] show CT_ID Shows quota usage from the quota file

vzquota –help

________________________________________________________________________________________________________________________

##########
vzlicload
##########
############################################################################################
This utility is used for managing Virtuozzo Server licenses installed on your Hardware Node.
It has the following syntax:  vzlicload [options]
############################################################################################
To Install the Virtuozzo license on the Hardware Node ———–> vzlicload -p, –product-key

To Make vzlicload standard input while installing the Virtuozzo license on the Hardware Node ———> vzlicload-i, –stdin

The full path to the license file containing the Virtuozzo license to be installed on the Hardware Node ———> vzlicload -f, –license-file

To connect the Parallels Key Authentication (KA) server and updates the license installed on the Hardware Node ———> vzlicload -u, –update

To transfer the Virtuozzo license from one Hardware Node (Source Node) to another (Destination Node) ———> vzlicload -t, –transfer

To remove the Virtuozzo license with the specified serial number from the Hardware Node ———-> vzlicload -r, –remove

To connect to the Internet using IP address or hostname of the proxy server ———–> vzlicload -A, –proxy-server

To log in to the proxy server using user name   ———–>  vzlicload -U, –username

To specify the password of user after the -U option ———–>  vzlicload -P, –password

To display the utility usage and exits ———–> vzlicload -h, –help
________________________________________________________________________________________________________

#########
vzlicview
#########

#######################################################################
This utility displays the license contents along with license status information.
It has the following syntax: vzlicview [options]
#######################################################################

To display the license information from the specified Virtuozzo license file ——-> vzlicview -f, –license-file

To display the license information contained in the specified Virtuozzo product key ——-> vzlicview -p, –product-key

To display license and  information in the standard input format  ——-> vzlicview -i, –stdin

To display the total number of Containers which can simultaneously run on the Hardware Node
in accordance with the license currently installed on this Node    ——-> vzlicview -v, –validate
__________________________________________________________________________________________

#########
vzmigrate
#########

##################################
This utility is used for moving Containers to another system (i.e. from the Source Node to the Destination Node) with minimal downtime).
It has the following syntax: vzmigrate [-r yes|no] [-n] -A ServerNodeAddr \ -P ServerPassword {CT_list} {CT List} = [:] […]
##########################

To delete after the corresponding Container is successfully migrated to the Destination Node(yes).
If “no” is specified, the private area will not be deleted ——-> vzmigrate -r, –remove-area yes|no

Command for not to start the Container on the Destination Node after its successful migration ——-> vzmigrate -n, –nostart

The IP address or the hostname of the Destination Node, i.e. of the Node where the Container is to be migrated ——-> vzmigrate -A, –srv_addr

The password of the vzadmin user.  ——-> vzmigrate -P, –srv_pswd

To display the utility usage and exits ——-> vzmigrate -h, –help

To disable logging to the screen and to the log file ——-> vzmigrate –quiet

To set the log level to the maximum possible value for this vzmigrate session ——-> vzmigrate –verbose

____________________________________________________________________________________________

#####
vzp2v
#####

###############################################################################
vzp2v is used to migrate a physical server to a Container on your Hardware Node.
It has the following syntax:vzp2v CT_ID -A Physical_Server_IP_Address -U username -P password [-s] [-v] [-x disk_drive […]] [-b Virtual_Network_ID]
vzp2v –help
###########################

The IP address or hostname of the physical server you are going to migrate to a Container on your Node ——-> vzp2v CT_ID -A, –src_addr Physical_Server_IP_Address

To log in to the physical server ——-> vzp2v CT_ID -U, –src_user username

The password of the user specified as the value of the -U option ——-> vzp2v CT_ID -P, –src_pswd password

To stop the physical server after its successful migration ——-> vzp2v CT_ID -s, –src_stop

To start the Container on the Hardware Node after the physical server has been successfully migrated——-> vzp2v CT_ID -v, –ve_start

Command to move to the Container ——-> vzp2v CT_ID -x, –exclude disk_drive

To denote the Virtual Network on the Hardware Node where the network adapters are to be connected ——-> vzp2v -b, –bridged Virtual_Network_ID

To display the utility usage——-> vzp2v –help, /?

___________________________________________________________________________

########
vzmlocal
########

####################################################################
Moving/copying a Container within one and the same Hardware Node consists in changing/adding the Container ID, private area, and root paths.  It has the following syntax:
vzmlocal   = :[:] […]
####################################################
The options are the following:
To clones the source Container instead of moving it ———> vzmlocal -C, –copy

To allow you to speed up the process of cloning the Container ———> vzmlocal -s, –fast-sid

To destroy the source Container after its cloning ———> vzmlocal -d, –destroy-source

To disable offline management for the source Container after its cloning ———> vzmlocal -n, –disable-network

To allow you to clone locked Containers ———> vzmlocal -l, –skiplock

To disable logging to screen and to the log file ———> vzmlocal –quiet

To set log level to maximum possible value for this vzmlocal session ———> vzmlocal –verbose

To display the utility usage and exits ———> vzmlocal –help
__________________________________________________________________________________________________________________

####################
Backing-Up Utilities
####################

#########
vzabackup
#########

#############################################
The vzbackup utility has the following syntax: vzabackup [BACKUP_OPTIONS] –node NODE1 [CT_OPTIONS] …
###################################################

To force performing a full backup ——–> vzabackup -F, -I, –TFull

To make an incremental backup or, if no full backups are available, a full backup ——–> vzabackup -I, –Tinc

To make a differential backup or, if no full backups are available, a full backup ——–> vzabackup –Tdiff

The description of the backup archive ——–> vzabackup -D backup_description

To create a new backup and then remove the oldest backup of the specified Node/Container ——–> vzabackup -o, –rm-old

To create a backup and then remove the backup with the specified ID ——–> vzabackup –rm-tag backup_ID

n: create the Container backup without any compression.
g: compress the resulting backup with the normal level of compression. ——–> vzabackup -C(Letter)
b: compress the resulting backup with the maximum level of compression.

To back up Nodes and/or their Containers simultaneously for the source nodes specified ——–> vzabackup -J

Force the process of backing up the Hardware Node(s)/Container(s)——–> vzabackup –force

To get the IP address and the credentials of the Backup Node ——–> vzabackup –storage BACKUP_NODE

To get the IP address and the credentials of the Source Node ——–> vzabackup NodeX

To disables logging to the screen during the vzabackup operation——–> vzabackup -q, –no-progress
__________________________________________________________________________________________________

##########
vzarestore
##########

#################################
The vzarestore utility is used to manage Container backups: restore a Container or certain Container files/folders from the Container backup archive, list the backups existing on the Backup Node, remove backups, etc.  The utility has the following syntax: vzarestore [CT | -e [-x ] ] [RESTORE_OPTIONS] [BACKUP_NODE]
###################################

vzarestore -r,–remove
vzarestore -l,–list [LIST_OPTIONS] [BACKUP_NODE]
vzarestore –browse BACKUP_ID [BROWSE_OPTIONS] [BACKUP_NODE]
vzarestore –print-ve-config BACKUP_ID [BACKUP_NODE]
vzarestore –help

The restore options are the following:

The Containers to be restored on the Destination Node ———> vzarestore -e CT1, …

The Containers that need not be restored (the Containers to exclude) ———> vzarestore -x CT1, …

The ID assigned to the Container backup ———> vzarestore -b BACKUP_ID

Command not to stop on errors during the vzarestore execution  ———> vzarestore –force

Command not to restore the Container configuration file ———> vzarestore –skip-ve-config

The full path to the files/folders inside the Container to be restored ———> vzarestore –files PATH_TO_FILES

Command not to stop on errors even if some of the files to be restored are in the ‘locked’ state ———> vzarestore –skip-locked

To handle the values after the -e and -x options as backup IDs ———> vzarestore -B

The IP address and the credentials of the Backup Node  ———> vzarestore –storage BACKUP_SERVER

The options which can be used along with the –list option of vzarestore:

Display detailed information on the backed up Containers ——-> vzarestore f, –full

Display the latest Container backup ——–> vzarestore –latest

Display the information on the backups for the specified Containers only ——-> vzarestore -e CT1, …

Handle values after the -e option as backup IDs ——–> vzarestore -B

Other options which can be used with vzarestore:

The path to the folder inside the Container backup archive whose contents is to be shown.
This option can be used with the vzarestore –browse BACKUP_ID command only—–> vzarestore -d

Displays the parameters set in the Container configuration file at the moment of creating the backup with the specified backup ID ———->  vzarestore –print-ve-config BACKUP_ID

Removes the Container backup with the specified backup ID ——–> vzarestore -r, –remove BACKUP_ID
________________________________________________________________________________

########
vzvssctl
########

##################################################
The vzvssctl utility is used to suspend and resume the Container activity (e.g. during the backup operation).
This utility has the following syntax: vzvssctl -s [CT_ID] […] vzvssctl -r [CT_ID] […]
##################################################

vzvssctl can be used with the following options:

To suspends the Container activity————> vzvssctl -s

Resumes the Container activity ————>  vzvssctl -r

Displays the utility usage and exits———–> vzvssctl –help, /?

_______________________________________________________________________

#############################
Template Management Utilities
#############################

#######
vzpkgls
#######

#############################
This utility lists the OS and application templates installed on the Hardware Node or already applied to a particular Container.
It has the following syntax: vzpkgls [options] [ …]
###########################

Lists all OS templates installed on the Hardware Node ————> vzpkgls -o, –os

Lists all application templates installed on the Hardware Node  ————> vzpkgls -a, –application

To change the output and prints a separate line for each available version of the template ————> vzpkgls -s, –separate

Disables logging to the display and to the log file ————> vzpkgls –quiet

Sets the log level to the maximum possible value for this vzpkgls session ————> vzpkgls –verbose

Displays the usage information and exits ————> vzpkgls -h, –help
_______________________________________________________________________________________

###########
vzpkgdeploy
###########

#################################
This utility is used for installing/removing OS and application templates on the Hardware Node.
It has the following syntax: vzpkgdeploy [options] –install | –uninstall PACKAGE…
##############################

Installs the template on the Hardware Node ————> vzpkgdeploy -i, –install PACKAGE…

Removes the template from the Hardware Node ————> vzpkgdeploy -u, –uninstall PACKAGE…

Adds Windows Server 2003 components necessary for running Virtuozzo to the Host OS ————> vzpkgdeploy -s

Displays the usage information and exit ————> vzpkgdeploy -h, –help

Disables logging to the display and to the log file ————> vzpkgdeploy –quiet

Sets the log level to the maximum possible value for this vzpkgdeploy session————> vzpkgdeploy –verbose
____________________________________________________________________

########
vzpkgadd
########

##################
This utility is used to add an application template to a Container.
It has the following syntax: vzpkgadd [options] PACKAGE[/VERSION]…
#####################

Display the usage info and exit ————> vzpkgadd -h, –help

Force template installation ————> vzpkgadd -f, –force

Disables logging to the display and to the log file ————> vzpkgadd –quiet

Sets the log level to the maximum possible value for this vzpkgadd session————> vzpkgadd –verbose
________________________________________________________________________________________

#######
vzpkgrm
#######

#####################################
This utility is used to uninstall an application template from a Container.
It has the following syntax: vzpkgrm [options] PACKAGE[/VERSION]…
#############################

Display the usage info and exit————> vzpkgrm -h, –help

Force the template uninstallation from the specified Container————> vzpkgrm -f, –force

Disables logging to the display and to the log file————> vzpkgrm –quiet

Sets the log level to the maximum possible value for this vzpkgrm session————> vzpkgrm –verbose
______________________________________________________________________

#################
Supplementary Tools
##################

############
vzsveinstall
############

This utility is used for the Service Container installation.
The syntax of this command is as follows: vzsveinstall -s SCT_IP_Address [-t OS_Template] [-p] [-w] [-f]

Displays the utility help ————> vzsveinstall -h, –help

The IP address to be assigned to the Service Container ————> vzsveinstall -s

OS template to use for the Service Container. By default, w2k3 is used ————> vzsveinstall -t

Reads the vzadmin password from the standard input ————> vzsveinstall -p

Allows to install the Parallels Infrastructure Manager application to the Service Container ————> vzsveinstall -w

Updates the Service Container ————> vzsveinstall -u
_______________________________________________________________________________________________

#########
vzkeygen
#########

#################################################
This utility is used to generate the Hardware Node ID to uniquely identify the Node.
It has the following syntax: vzkeygen [-n, –company-name NAME] [-o, –output-file FILENAME]
vzkeygen [-h, –help]
vzcache
vzcache [options] CT_ID-list
########################################

Print usage information ————> vzcache -h, –help

Display the utility version ————> vzcache –version

To print debugging messages about its progress ————> vzcache -v, –verbose

Quiet mode. Causes all warning and diagnostic messages to be suppressed ————> vzcache -q, –quiet

To use an existing cache for comparing its files with the regular files inside the specified Containers ————> vzcache -a, –append

The name of the cache subdirectory in the X:\vz\templates\__vzcache directory ————> vzcache -n, –cache-name NAME

Do not perform any caching. Just collect and display the statistics on identical files ————> vzcache -t, –test

Do not process files smaller than N bytes. By default, only empty files are not processed ————> vzcache -s, –size-limit N

Cache files found at least M times ————> vzcache -m, –min-links M

The name(s) of the OS or Application template(s) to restore the links to ————> vzcache -T, –template-name NAME

Restore the links to the host system files of the OS template. Should be used together with the -a option ————> vzcache -H, –host

Force vzcache operations for a single Container and single regular files ————> vzcache -f, –force
______________________________________________________________________________

#########
vzlscache
#########

The vzlscache utility displays a list of cache directories created by the vzcache utility (see above).
The syntax of the command is the following:vzlscache [options] [CT_ID …]
The following options may be given:

Print the utility usage information  ————> vzlscache -h, –help

Quiet mode. Causes all warning and diagnostic messages to be suppressed. Only fatal errors are displayed ————> vzlscache -q, –quiet
________________________________________________________________________________

#########
vzuncache
#########

########################
vzuncache has the following syntax: vzuncache [options] CT_ID [cache-directory-name …]
##########################

To print usage information  ————> vzuncache -h, –help

To display the utility version  ————> vzuncache –version

To view only the fatal errors ————> vzuncache -q, –quiet

To print debugging messages about its progress. Multiple -v options increase verbosity  ————> vzuncache -v, –verbose

To detach the specified Container from all the caches  ————> vzuncache -a, –all

To collect and display the relevant statistics from cache  ————> vzuncache -t, –test

To detach the specified Container from its cache even in case the cache does not exist  ————> vzuncache -f, –force
_______________________________________________________________________________________________

########
vznetcfg
########

############################
The vznetcfg utility is used to manage Virtual Networks and network classes on the Hardware Node.
It has the following syntax: vznetcfg command
################################
To create a new Virtual Network with the name of NET_ID and associates it ————> vznetcfg net new NET_ID XX-XX-XX-XX-XX-XX[:VLAN_ID]

Associates the specified Virtual Network with the physical or VLAN adapter on the Hardware Node  ————> vznetcfg net change NET_ID XX-XX-XX-XX-XX-XX[:VLAN_ID]

To delete the specified Virtual Network from the Hardware Node  ————> vznetcfg net del NET_ID

Displays the Virtual Networks currently existing on the Hardware Node  ————> vznetcfg net list

To create a new network class with the ID of CLASS_ID and adds the IP addresses
range specified as the value of IP_RANGE to the newly created class  ————> vznetcfg class add CLASS_ID IP_RANGE

Removes the IP addresses range of IP_RANGE from the specified network class  ————> vznetcfg class remove CLASS_ID [IP_RANGE]

To set the maximal network bandwidth, in kilobits per second ————> vznetcfg class rate CLASS_ID RATE

List the network classes currently existing on the Hardware Node ————> vznetcfg class list
_________________________________________________________________________

#########
vznetstat
#########

#####################################
This utility outputs traffic usage statistics for Containers.
It has the following syntax: vznetstat [-v ] [-c ] [-a] [-r]
###################################

To display statistics for a Container with the ID of ————> vznetstat -v

To display statistics for the class only ————> vznetstat -c

To display statistics for all classes ————> vznetstat -a

To display the network statistics, shown in bytes by default, in the following measurement units: ————> vznetstat -r K|M|G
K: display the network statistics in kilobytes;
M: display the network statistics in megabytes;
G: display the network statistics in gigabytes.

To display the utility usage information ————> vznetstat –help
____________________________________________________________________________________________________

########
vzdevctl
########

###############################################
This utility is used to forward the SCSI devices existing on the Hardware Node to Containers.
It has the following syntax: vzdevctl [–quiet|–verbose] add CT_ID –deviceid “name” [–alias name] [–exclusive] [–connect] [–onboot]
##################################

vzdevctl [–quiet|–verbose] status CT_ID [–deviceid “name”|–alias name|–all]
vzdevctl [–quiet|–verbose] linkadd CT_ID [–symlink “name”]–object “name”
vzdevctl [–quiet|–verbose] linkdel CT_ID –symlink “name”|–object “name”
vzdevctl [–quiet|–verbose] linkquery CT_ID
vzdevctl –version
vzdevctl –help

To forward the SCSI device to the specified Container ————> vzdevctl [–quiet|–verbose] add CT_ID –deviceid “name”[–alias name]

To removes the SCSI device from the specified Container ————> vzdevctl [–quiet|–verbose] remove CT_ID –deviceid “name”|–alias name

To connect the SCSI device to the Container ————> vzdevctl [–quiet|–verbose] connect CT_ID –deviceid “name”|–alias name

Disconnects the SCSI device from the Container ————> vzdevctl [–quiet|–verbose] dconnect CT_ID –deviceid “name”|–alias name

To set device info ————> vzdevctl [–quiet|–verbose] set CT_ID –deviceid “name”[–alias name] [–onboot yes|no]

To display all SCSI devices available on the Hardware Node ————> vzdevctl [–quiet|–verbose] devtree[–deviceid “name”|–all|–forwarded]

To list the SCSI device status for the specified Container ————> vzdevctl [–quiet|–verbose] status CT_ID[–deviceid “name”|–alias name|–all]

Adds a symbolic link to the Hardware Node object ————> vzdevctl [–quiet|–verbose] linkadd CT_ID [–symlink “name”]–object “name”

Deletes a symbolic link from the specified Container ————> vzdevctl [–quiet|–verbose] linkdel CT_ID–symlink “name”|–object “name”

Displays the symbolic links for the specified Container ————> vzdevctl [–quiet|–verbose] linkquery CT_ID
______________________________

Standard