Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

Demo scripts Virtuozzo

18 bytes added, 19:10, 2 August 2015
m
Update demo "Full container lifecycle"
Here are the example commands needed:
# CTNAME=123vz # IP=10.1.1.123/24
# sed -i "/$IP /d" ~/.ssh/
# time vzctl prlctl create $CT NAME --ostemplate fedoracentos-core6-5x86_64 -i386-defaultvmtype=ct # vzctl prlctl set $CT NAME --ipadd $IP --hostname newCT --save$NAME # vzctl prlctl start $CTNAME # vzctl prlctl exec $CT NAME ps axf # vzctl prlctl set $CT NAME --userpasswd guest:secret --save
# ssh guest@$IP
[newCTvz]# ps axf [newCTvz]# logout # vzctl prlctl stop $CTNAME # vzctl prlctl destroy $CTNAME
== Massive container creation ==
<pre>
# time for ((CT=200; CT<250; CT++)); do \
> time vzctl prlctl create $CT --ostemplate fedoracentos-core6-9x86_64 -i386-vm-type=ct; \> vzctl prlctl start $CT; \
> done
</pre>