OpenVZ basic commands info for SysAdmins

This will be updated when needed by me at some point.

The web GUI is normally available on HOST_IP:3000

To check a list of vm on the host run

  • vzlist

To check if you are hitting any memory allocation run (last column should be ‘0’)

  • vzctl exec 302 cat /proc/user_beancounters (where 302 is a CID of host)

To set memory allocation run

vzctl set 301 –vmguarpages 1024M –save

or set the following

1024MB Guaranteed, 2048MB Burstable
vzctl set 301 –vmguarpages 1024M –save
vzctl set 301 –oomguarpages 1024M –save
vzctl set 301 –privvmpages 1024M:2048M –save

information about the type of memory can be found on this page and explain what a vmguarpages is.

https://wiki.openvz.org/User_Guide/Managing_Resources

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s