vzcptcheck(8)

πŸ“¦ version 4.9.4, in ubuntu jammy

πŸ’– 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 without ctid. 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 0 on success, or 1 if there's an error. πŸŽ‰
  • in testing mode: returns 0 if migration is possible (test passed πŸ’–), 1 if there's an error (😭), or 2 if 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