Cloning an Instance in a Network Namespace

Clone an application instance into an existing network namespace by giving the namespace as a parameter to the mvmcli snapshot clone -c parameter.

About this task

You can run the new instance in a different network namespace by giving the network namespace as a parameter: -c=network_namespace, where network_namespace is an existing valid network namespace.

Procedure

Run the command as follows:
# mvmcli snapshot restore -l label -c=network_namespace
where:
label
is the label of the snapshot to restore.
network_namespace

is an existing valid namespace.

The network interface must be one of these three types:

  • Physical network interface
  • Macvlan private mode
  • Macvlan bridge mode
For example:
# mvmcli snapshot restore -l redis_player_1_ae204956 -c=ns7 
Restore finished. Process detached. Resuming tasks 
#