6,534
edits
Changes
categorized
</pre>
'''vzctl''' is the tool that manages VEs. Look in <tt>/vz/template/cache/</tt> (CentOS LiveCD)or in <tt>/var/lib/vz/template/cache/</tt> directory (KNOPPIX LiveCD) directories for other OS templates available on LiveCD:
<pre>
# ls -1 /var/lib/vz/template/cache/
VEID NPROC STATUS IP_ADDR HOSTNAME
101 5 running -
</pre>
#
</pre>
{{ Note|In the LiveCD environment, you may have to increase '''shmpages''' resource limit/barrier for the VE (read the next section) or you will run out of "disk space" when trying to install software }}
== Resource limiting ==
The very important feature of VE is that you can limit it by resources: CPU, memory, disk space.
It is also performed via vzctl. For example to set '''shmpages''' (shared memory pages) barrier:limit youshould give this command:<pre>vzctl set 101 --shmpages 16384:16384 --save</pre>This will give VE 101 64MB of '''shmpages''' (one page equals 4Kb on i386: 4Kb * 16384 = 64Mb) Current usage values and limits of memory-related resources can be viewed through
<code>/proc/bc/VEID/resources</code> file:
<pre>
# cat /proc/bc/101/resources# or /proc/user_beancounters on 2.6.9 kernels
kmemsize 628209 976969 2752512 2936012 0
lockedpages 0 0 32 32 0
If you experience some difficulties, contact us via http://forum.openvz.org/ . Templates and other tools are available from http://download.openvz.org/ .
[[Category: Live CD]]