commands.sh

virt-clone

linux

Clone a libvirt virtual machine.

More info →

Options (4)

-o, --originalboolean

Clone a virtual machine and automatically generate a new name, storage path, and MAC address

Example: virt-clone {{[-o|--original]}} {{vm_name}} --auto-clone
-n, --nameboolean

Clone a virtual machine and specify the new name, storage path, and MAC address

Example: virt-clone {{[-o|--original]}} {{vm_name}} {{[-n|--name]}} {{new_vm_name}} {{[-f|--file]}} {{path/to/new_storage}} {{[-m|--mac]}} {{ff:ff:ff:ff:ff:ff|RANDOM}}
-f, --fileboolean

Clone a virtual machine and specify the new name, storage path, and MAC address

Example: virt-clone {{[-o|--original]}} {{vm_name}} {{[-n|--name]}} {{new_vm_name}} {{[-f|--file]}} {{path/to/new_storage}} {{[-m|--mac]}} {{ff:ff:ff:ff:ff:ff|RANDOM}}
-m, --macboolean

Clone a virtual machine and specify the new name, storage path, and MAC address

Example: virt-clone {{[-o|--original]}} {{vm_name}} {{[-n|--name]}} {{new_vm_name}} {{[-f|--file]}} {{path/to/new_storage}} {{[-m|--mac]}} {{ff:ff:ff:ff:ff:ff|RANDOM}}

Examples (2)

Clone a virtual machine and automatically generate a new name, storage path, and MAC address

virt-clone [-o|--original] vm_name --auto-clone

Clone a virtual machine and specify the new name, storage path, and MAC address

virt-clone [-o|--original] vm_name [-n|--name] new_vm_name [-f|--file] path/to/new_storage [-m|--mac] ff:ff:ff:ff:ff:ff|RANDOM
made by @shridhargupta | data from tldr-pages