command line help setting memory limits

Tom7141

New Member
Oct 2, 2011
1
0
1
i'm haveing a problem trying to find the right commands to set some of the open vz settings for memory at the command line i know there must be one i just havent been able to find/work it out.

ive been useing vzctl set *** to change other settings but havent worked out how to set the option thats sets the MEMORY and SWAP settings that you see in the web interface.... any help on this would be much appreciated.


:)

Tom
 
There is a small wrapper around 'vzctl' called 'pvectl':

Code:
# pvectl
pvectl <command> <vmid> [parameters]
pvectl [vzcreate|vzset] <vmid>     (openvz commands)
        --ostemplate NAME          specify OS template
        --mem  MBYTES              memory in MB (64 - 8192)
        --swap  MBYTES             swap memory in MB (0 - 8192)
        --disk GBYTE               disk space in GB (0.5 - 1024)
        --cpus  N                  cpus (1 - 4)
        --cpuunits  N              cpu units (8 - 500000)
        --onboot [yes|no]          start at boot