vzmtemplate(8)

vzmtemplate(8) System Manager's Manual vzmtemplate(8)

NAME

vzmtemplate - utility for migration OpenVZ templates between nodes.

SYNOPSIS

vzmtemplate [-bh] [--ssh=<ssh_options>]
<[user@]destination_node_address> template ...

DESCRIPTION

This utility is used for ez template(s) migrating from one (source) node to another (destination) node. It requires that you have root@ access on destination node. Unlike vzmigrate, vzmtemplate doesn't remove template from source node.

OPTIONS

-b, --batch
Run in batch mode to facilitate utility output analyzing by calling script.

-h, --help
Get usage info.

--ssh=<ssh options>
Additional options that will be passed ssh during establishing connection with destination node. Please be carefully with passed options, DON'T pass destination hostname.

MIGRATION

Utility can migrate either application or OS templates. Migration OS template also migrate tarballs of this templates. Now utility migrates template at whole (all base versions & updates).

EXAMPLES

To migrate ez os-template centos-4-x86 to 192.168.1.130:
vzmtemplate 192.168.1.130 centos-4-x86
To migrate ez app-template mod_ssl for centos-4-x86 to 192.168.1.130:
vzmtemplate 192.168.1.130 mod_ssl@centos-4-x86

EXIT STATUS

0 EXIT_OK
Command completed successfully.
1 EXIT_USAGE
Bad command line options.
2 EXIT_SYSTEM
System error.
3 EXIT_LOCK
Can't lock template.
4 EXIT_CONNECT
Can't connect to destination (source) node.
6 EXIT_COPY
Template area copying failed.
9 EXIT_EXISTS
Template with more last version already exists on destination node.
10 EXIT_NOTEXIST
Template doesn't exist on source node.
14 EXIT_OBSOLETE
Functionality is no longer supported.

SEE ALSO

vzmigrate(8) vz(5)

COPYRIGHT

Copyright (c) 2001-2017, Parallels International GmbH. All rights reserved. Copyright (c) 2017-2019 Virtuozzo International GmbH. All rights reserved.

October 2009 OpenVZ