Name
virt-clone
Synopsis
virt-clone [options
]
Clone a virtual machine. virt-clone copies hard drives and duplicates the virtual hardware configuration of an existing virtual machine. Elements that must be unique, such as the MAC address of a virtualized network interfaces, are updated so as to avoid conflicts with the old system. This system to be cloned must be shut off, as an active system cannot be safely cloned.
If no options are given, virt-clone will query for the needed information.
virt-clone writes debugging information to $HOME/.virtinst/virt-clone.log.
Options
- --connect=uri
The hypervisor connection uri.
- -d, --debug
Print debugging information to standard output.
- -f path, --file=path
The path to the file, disk partition, or logical volume to use to store the new guests virtual disk. If the original system has multiple disks, this option should be run once per disk.
- --force
Run without prompting. Assume a yes response to any yes/no prompt. For all other prompts, exit.
- -n name, --name=name
The new domain name for the copied system.
- -o domain, --original=domain
The name or UUID of the original domain to copy.
- --preserve-data
Preserves any data that exists on the target of an -f option.
- -m address, --mac=address
The new hardware MAC address for the network interface on the copied system.
- -u uuid, --uuid=uuid
The new uuid for the copied system. This is a 32-digit hexadecimal number. If not specified, a random UUID is used.
Get Linux in a Nutshell, 6th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.