vzlist(8)
π vzlist(8) β Containers π
okay bestie, welcome to vzlist, from the Containers section of the manual (section 8, iykyk) π«Ά
β¨ NAME β¨
vzlist β show various information about containers π
πΈ SYNOPSIS πΈ
vzlist [-a | -S] [-n] [-H] [-t] [-j] [-o name[,name...]|-1] [-s [-]name]
[-h pattern] [-N pattern] [-d pattern] [CTID [CTID ...]]
vzlist -L | --list
vzlist --help
π¦ DESCRIPTION π¦
So this lil utility is literally the one you use for listing containers and all their parameters. By default only running containers are listed. And if you pass one or more CTIDs? Then only the containers you asked for show up. No extras. Periodt. π
Now listen, some fields can have long values β think ip, hostname, description or features β and those value strings get trimmed to some predefined width, because otherwise the whole columned layout would break and we can't have that π. UNLESS that field is the last one. So if you want the full, non-trimmed value for one of those fields, put the field name last in the list of fields for the -o option. And if you're running vzlist from a script, add -t to disable trimming entirely. π
π OPTIONS π
-a,--allβ list all containers. every single one. π-S,--stoppedβ list only the containers that are not running (and yes, that includes the ones whose status shows as mounted or suspended). π-n,--nameβ display container names instead of hostnames. a whole different vibe. β¨-H,--no-headerβ suppress the header row. super usable for scripts. π€-t,--no-trimβ suppress trimming of long fields. also super usable for scripts. π-j,--jsonβ output in JSON format. by default, all possible fields are printed. π§-o,--output field[,field...]β display only the fields you specify (peep the Possible fields subsection below, bestie). π―-1β synonym for-H -octid, meaning you only show container IDs, one per line. so clean. so minimal. π-s,--sort [-]fieldβ sort by the value offield(the possible arguments are the same as for-o). the-before the field name means sort in reverse order. π
π Output filters π
Your list of CTs can be filtered even further with the following options. For patterns, you can use the same wildcards as in shell (that's *, ?, and []). π
Note: to avoid expansion of wildcards by the shell, you have to escape the pattern by either putting it into single quotes (like'a*a') or by adding a backslash before the wildcard character (likea\*a). do NOT skip this step, the shell will absolutely snatch your pattern otherwise π
-h,--hostname patternβ list only containers whose hostnames match the pattern. π-N,--name_filter patternβ list only containers whose names match the pattern. π-d,--description patternβ list only containers with descriptions matching the pattern. π
π Possible fields π
-L,--listβ list all available format specifiers that can be used for both output (-o,--output) and the sorting order (-s,--sort). the whole menu, served fresh. π
For the user beancounter fields, if the suffix is not specified, the current usage (a.k.a. "held") value is shown. You can also use the following suffixes:
.mβ maxheld.bβ barrier.lβ limit.fβ fail counter
For the disk quota fields, if the suffix is not specified, the current usage is shown. You can also use the following suffixes:
.sβ soft limit.hβ hard limit
Note that for JSON output, suffixes are not allowed. just so you know. π
π EXAMPLES π
vzlist -o ctid,kmemsize,kmemsize.l -s kmemsize
Show CTIDs, kmemsize usage, and kmemsize limit for all running containers, sorted by the kmemsize usage. literally the go-to move. π₯
β EXIT STATUS β
Returns 0 upon success. that's it, that's the whole status. ate and left no crumbs. π
π COPYRIGHT π
Copyright (C) 2000-2011, Parallels, Inc. Licensed under GNU GPL.
okay that's the whole page bestie, you're officially a vzlist girlie now π§π this was the OpenVZ vzlist(8) page, dated 13 Jun 2012, and yes we're still obsessed with it. mwah π
β¨
π¦ where this page comes from
- ubuntu jammy: vzctl 4.9.4-6
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms