vzcptcheck(8)
π vzcptcheck β the CPT vibe checker (section 8, Containers) π
okay bestie, gather round, because this little utility is lowkey a baddie. it's vzcptcheck, and it lives in the Containers part of the manual. she's a low-level utility, meaning she doesn't do small talk β she shows you CPT properties and tests them, and that's the whole personality. π
πΈ NAME πΈ
vzcptcheck β show/test CPT properties. that's it, that's the job, and she does it flawlessly. β¨
π¦ SYNOPSIS π¦
vzcptcheck property [argument ...]
vzcptcheck help
two moods, one queen. π
π DESCRIPTION π
so here's the tea: this low-level utility is the one vzmigrate(8) calls up when it needs to check if a container can be successfully restored on a destination system before it does a live migration. she's the vibe check before the big move, fr fr. currently she's able to check CPT version and CPU flags compatibility β those are her two areas of expertise and she's obsessed with both. π«Ά
she's got two modes of operation:
- showing mode β you name a property and give her zero arguments, and she just shows you the thing. no notes. π
- testing mode β you name a property and then hand her one or many arguments, and she tests it. π₯
generally, the move is: run vzcptcheck on one node to get a property, then run it on the other node to check for that property. two nodes, one conversation, very main character energy. π«
β οΈ real talk though: this utility does not guarantee that migration will succeed even if all the tests pass. she merely gives you a way to prevent a migration that will definitely fail. so like, passing the vibe check is not a promise, it's a filter. π
β¨ OPTIONS β¨
π version things
vzcptcheck versionβ run this on the source node to get the CPT version number. π₯vzcptcheck version numβ then, to check if that version number is supported, run this on the destination node. π€
π caps things
vzcptcheck capsβ run this on the destination node to get the CPU capabilities number. π§vzcptcheck caps ctid capnumβ run this on the source node to check if a running CT can be live migrated to a node with such a CPU. πβοΈvzcptcheck caps capnumβ the form withoutctid. use this one to check if a suspended container can be migrated, i.e. whether it can be restored on the destination node. π΄
π EXIT STATUS π
- in showing mode: returns
0on success, or1if there's an error. π - in testing mode: returns
0if migration is possible (test passed π),1if there's an error (π), or2if migration is not possible (test failed π).
π EXAMPLES π
so say you wanna check if CT 123 can be migrated to $DEST. run the following commands on the source node. (heads up: error checking is omitted here for brevity, don't come for me π)
VEID=123
VERSION=$(vzcptcheck version)
echo Got CPT version: $VERSION
ssh root@$DEST vzcptcheck version $VERSION
echo Version check result: $?
CAPS=$(ssh root@$DEST vzcptcheck caps)
echo Got caps: $CAPS
vzcptcheck caps $VEID $CAPS
echo Caps check result: $?
if both tests pass, you should get 0 as a result for both checks. slay. π
π SEE ALSO π
vzmigrate(8). that's her bestie, that's who she's out here doing all this for. π«Ά
π LICENSE π
Copyright (C) 2013-2015, Parallels, Inc. Licensed under GNU GPL v2. iconic, legally protected, periodt. π
and that's the whole page, babe β this one shipped as part of OpenVZ, dated 21 Apr 2015. go forth and migrate responsibly. πΈπβ¨
π¦ 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