HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

virt-clone — Clone a libvirt virtual machine. More information: <https://manned.org/virt-clone>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
virtualvirt-clonecommandclilibvirtclonemachinemore
linux

Problem

How to use the virt-clone command: Clone a libvirt virtual machine. More information: <https://manned.org/virt-clone>.

Solution

virt-clone — Clone a libvirt virtual machine. More information: <https://manned.org/virt-clone>.

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}}

Code Snippets

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}}

Context

tldr-pages: linux/virt-clone

Revisions (0)

No revisions yet.