lvectl

Navigation:  Limits > Command Line Tools >

lvectl

Previous pageReturn to chapter overviewNext page

lvectl is the primary tool for LVE management. To use it, you have to have administrator access. lvectl is a part of lve-utils package.

 

The syntax of lvectl is:

 

Usage: lvectl command [veid] [options]

 

Commands:

 


 

apply

apply config settings to specified LVE


apply all

apply config settings to all the LVEs


apply-many

to apply LVE limits to multiple distinct LVEs (uids of users are read from stdin)


set

set parameters for a LVE and/or create a LVE


set-user

set parameters for a LVE and/or create a LVE using username instead of ID


list

list loaded LVEs


list-user

list loaded LVEs, display username instead of user id


limits

show limits for loaded LVEs


delete

delete LVE and set configuration for that LVE to defaults


delete-user

delete LVE and set configuration for that user to defaults


destroy

destroy LVE (configuration file remains unchanged)


destroy all

destroy all LVE (configuration file remains unchanged)


destroy-many

to destroy LVE limits to multiple distinct LVEs (uids of users are read from stdin)


package-set

set LVE parameters for a package


package-list

list LVE parameters for packages


package-delete

delete LVE parameters for a package


paneluserslimits

show current user's limits for control panel


limit

limit PID into specified LVE. Parameters PID LVE_ID


release

release PID from LVE. Parameters PID


set-binary

add binary to be run inside LVE on execution


del-binary

remove binary from being run inside LVE on execution


list-binaries

list all binaries to be run inside LVE on execution


load-binaries

load binaries (used on startup) from config file


reload-binaries

re-load list of binaries from config file


help (-h)

show this message


version (-v)

version number.


lve-version

LVE version number

Options:

 



--cpu=N

limit CPU usage; (deprecated. Use --speed)


--speed=N%

limit CPU usage in percentage; 100% is one core


--speed=Nmhz\ghz

limit CPU usage in mhz\ghz


--ncpu=N

limit VCPU usage (deprecated)


--io=N

define io limits (KB/s)


--nproc=N

limit number of processes


--pmem=N

limit physical memory usage for aplications inside LVE


--iops=N

limit io per second


--mem=N

mem alias for vmem (deprecated)


--vmem=N

limit virtual memory for applications inside LVE


--maxEntryProcs=N

limit number of entry processes


--save

save configuration settings (use with set) (deprecated)


--save-all-parameters

save all parameters even if they match with defaults settings


--json

returns result of command json formatted


--unlimited

set all limits to unlimited


--save-username

save username in the config file. This parameter is used in conjunction with set-user

   

 

Examples

 

Reset all LVEs settings based on configuration in /etc/container/ve.cfg:

 

$ lvectl apply all

 

Set new default CPU & Physical memory limit:

 

$ lvectl set default --speed=100% --pmem=256m

 

Reset all LVE's killing processes inside them:

 

$ lvectl destroy all

 

Show list of LVEs and their limits:

 

$ lvectl list