virt-clone - clone virtual machine images
/usr/bin/virt-clone [option]
The virt-clone utility is a command line tool for cloning existing virtual machine images. virt-clone copies disk images of an existing virtual machine and defines a new guest with an identical virtual hardware configuration. Elements that require uniqueness are updated to avoid a clash between old and new guests.
With appropriate command-line arguments, virt-clone can run completely unattended, with the guest automatically starting itself as well. This allows for easy automation of guest installs.
If you do not specify options to virt-clone, the command runs interactively, prompting for input as required.
To run virt-clone, you must become superuser or assume the Primary Administrator role.
The following options are supported:
--connect=URI
-d, --debug
-f disk_image, --file=disk_image
-h, --help
-m mac_addr, --mac=mac_addr
-n name, --name=name
-o original_guest, -original=original_guest
-u UUID, -uuid=UUID
Example 1 Cloning a Guest with a Single Disk
The following command clones a guest named demo, which has a single disk to copy.
# virt-clone \ --original demo \ --name newdemo \ --file /var/lib/xen/images/newdemo.img
Example 2 Cloning a Guest with Multiple Disks
The following command clones a guest named demo, with has multiple disks to copy.
# virt-clone \ --original demo \ --name newdemo \ --file /var/lib/xen/images/newdemo.img \ --file /var/lib/xen/images/newdata.img
Example 3 Cloning to a Device with Comparable Disk Space
The following command clones a guest to a physical device that has at least as much disk space as had the original guest. . If the destination device is has more space, the new guest can do a file system resize when it boots.
# virt-clone \ --name demo \ --file /dev/HostVG/DemoVM \ --mac 00:16:3e:34:11:54
See attributes(5) for descriptions of the following attributes:
|
virsh(1M), virt-install(1M), xm(1M), xVM(5), attributes(5), xVM(5)
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |