Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Command = &cli.Command{ Name: "clone", Usage: "Clone a virtual machine.", Action: cloneVm, Flags: []cli.Flag{ &cli.Uint64Flag{ Name: "newid", Usage: "`VMID` for the clone", Required: false, Aliases: []string{"n"}, DefaultText: "next available", }, &cli.Uint64Flag{ Name: "bwlimit", Usage: "Override I/O bandwidth limit (in KiB/s).", DefaultText: "unlimited", Category: "Cloned VM Options:", }, &cli.StringFlag{ Name: "description", Usage: "Description for the new VM.", Category: "Cloned VM Options:", }, &cli.StringFlag{ Name: "format", Usage: "Target format for file storage. Only valid for full clone. Can be raw, qcow, or vmdk.", Category: "Cloned VM Options:", }, &cli.BoolFlag{ Name: "full", Usage: "Create a full copy of all disks. This is always done when you clone a normal VM. For VM templates, we try to create a linked clone by default.", Category: "Cloned VM Options:", }, &cli.StringFlag{ Name: "name", Usage: "Set a name for the new VM.", Category: "Cloned VM Options:", }, &cli.StringFlag{ Name: "pool", Usage: "Add the new VM to the specified pool.", Category: "Cloned VM Options:", }, &cli.StringFlag{ Name: "snapname", Usage: "The name of the snapshot.", Category: "Cloned VM Options:", }, &cli.StringFlag{ Name: "storage", Usage: "Target storage for full clone.", Category: "Cloned VM Options:", }, &cli.StringFlag{ Name: "target", Usage: "Target node. Only allowed if the original VM is on shared storage.", Category: "Cloned VM Options:", }, &cli.BoolFlag{ Name: "overwrite", Usage: "Overwrite the target VMID if it already exists. (Note: only relevant when manually specifying VMID.)", Category: "Cloned VM Options:", }, }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.