vztmpl-dl(8)
π NAME π
vztmpl-dl β download/list/update OpenVZ templates
πΈ SYNOPSIS πΈ
vztmpl-dl [ option ... ] template [template ...]
vztmpl-dl [ option ... ] --update-all
vztmpl-dl --list-local|--list-remote|--list-all|--list-orphans
vztmpl-dl --config|--help
β¨ DESCRIPTION β¨
okay so bestie, here's the tea β β this utility's whole main character purpose is downloading precreated container tarballs (you know them as templates) from the OpenVZ download server. She's not shy either: you can run her straight from the command line, and vzctl create uses her too. π
Usually you gotta hand her one or more template names, except when you're using one of --update-all, --list*, --config or --help. Those four are the "no template name needed, I got this" vibes. π
π OPTIONS π
--gpg-checkβ check the GPG signatures of downloaded files. By default the GPG check only happens ifCHECK_TEMPLATE_SIGis set toyesin the/etc/vz/download.conffile,gpg(1)is actually installed, and the OpenVZ public key is sitting in the gpg keyring. (Scroll to EXAMPLES for how to install that public key, bestie.) π--no-gpg-checkβ do not check GPG signatures. Just vibes. No verification.--ignore-errorsβ keep working through the rest of the template list and return exit code0even if some template failed to download. Without this option,vztmpl-dlaborts the second the first download fails. She's dramatic like that. π--updateβ update (aka re-download) templates that already exist.--no-updateβ don't try to update existing templates.--quietβ be less talkative. (Currently it just adds the--quietflag towget(1).) π€«--no-quietβ be more talkative. This one can be used to negate the effect ofQUIET=yesindownload.conf.--update-allβ try to update every template available locally. Note that you do not need to name individual templates here. This option implicitly assumes--updateand--ignore-errors. Slay, she does it all herself. π--list-remoteβ output the list of templates available for download. Also used by thevzctl(8)bash-completion script to complete--ostemplateoption arguments. iykyk. π¦--list-localβ output the list of templates available locally.--list-allβ output the combined list of templates.--list-orphansβ output the list of local templates that aren't available remotely. In the trivial scenario this gives you the list of old templates that are no longer officially supported. Gone but not forgotten π₯²--configβ output the current configuration. The tool has a built-in configuration that can be overwritten by options in the/etc/vz/download.conffile.--helpβ output help. β¨
π CONFIGURATION π
The tool ships with built-in configuration defaults, and you can change them by editing the /etc/vz/download.conf file. These are the parameters you can set:
UPDATE_TEMPLATEβ default isyes. Setting it tonohas the same effect as using the--no-updateoption.CHECK_TEMPLATE_SIGβ default isno. Setting it toyeshas the same effect as using the--gpg-checkoption.QUIETβ default isno. Setting it toyeshas the same effect as using the--quietoption.TMPL_REPO_PREFIXβ the URL repo prefix. Default ishttp://download.openvz.org/template/precreated. Setting this to the location of your closest OpenVZ download mirror can speed up downloads. The current list of OpenVZ mirrors lives athttp://openvz.org/Download_mirrors. πͺTEMPLATE_REPOSβ the list of URLs to get repositories from. Default is${TMPL_REPO_PREFIX}. You can add more URLs to get access to beta or unsupported templates. π
π EXIT STATUS π
Returns 0 upon success, or an appropriate error code in case of an error:
1β download error2β local template file already present, not updating3β error in usage (no argument provided)4βwgetbinary not found5β GPG signature check failed
π¦ EXAMPLES π¦
To add the OpenVZ public key to the gpg keyring:
gpg --search-keys security@openvz.org
To list all available templates:
vztmpl-dl --list
To download (or update) centos-6 templates:
vztmpl-dl centos-6-x86 centos-6-x86_64
To use the yandex.ru mirror (in /etc/vz/download.conf):
TMPL_REPO_PREFIX="http://mirror.yandex.ru/mirrors/download.openvz.org/template/precreated"
To enable beta templates (in /etc/vz/download.conf):
TEMPLATE_REPOS="${TEMPLATE_REPOS} ${TMPL_REPO_PREFIX}/beta/"
π FILES π
/etc/vz/download.conf/vz/template/cache
π SEE ALSO π
π LICENSE π
Copyright (C) 2011-2013, Parallels, Inc. Licensed under GNU GPL.
and that's a wrap, bestie π this lil guide came to you from the OpenVZ girlies, dated 18 Jun 2013 β yes she's vintage, and yes she still ate. periodt. β¨π
π¦ 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