6,534
edits
Changes
VSwap
,added →Convert non-vswap CT to Vswap
* or set those to 'unlimited',
* or remove those from configuration file.
== Convert non-vswap CT to Vswap ==
If you have an existing container with usual UBC parameters set, and you want to convert this one into VSwap enabled config, here's what you need to do.
# Decide on how much RAM and swap you want this CT to have. FIXME how to convert from UBC.
# Manually remove all UBC parameters from config. '''This is optional''', you can still have UBC limits applied if you want.
2. Add PHYSPAGES and SWAPPAGES parameters to config. Easiest way is to use <code>vzctl set $CTID --ram N --swap M --save</code>
Now your config is vswap enabled, and when you (re)start it, vswap mechanism will be used by the kernel for this CT.
== See also ==