Class: Pvectl::Commands::MigrateContainer

Inherits:
Object
  • Object
show all
Includes:
MigrateCommand
Defined in:
lib/pvectl/commands/migrate_container.rb

Overview

Handler for the ‘pvectl migrate container` command.

Migrates one or more LXC containers to another cluster node. Always requires –target and confirmation (–yes to skip).

Examples:

Migrate a single container

pvectl migrate container 200 --target pve2 --yes

Restart migration

pvectl migrate container 200 --target pve2 --restart --yes

Constant Summary collapse

RESOURCE_TYPE =
:container
SUPPORTED_RESOURCES =
%w[container ct].freeze

Constants included from MigrateCommand

Pvectl::Commands::MigrateCommand::NODE_NAME_FORMAT

Method Summary

Methods included from MigrateCommand

#execute, included, #initialize