Difference between revisions of "Virt-clone"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
Tags: Mobile web edit, Mobile edit
Line 27: Line 27:
  
 
== See also ==
 
== See also ==
* {{virinst}}
+
* {{virtinst}}
 
* {{KVM}}
 
* {{KVM}}
  
  
 
[[Category:KVM]]
 
[[Category:KVM]]

Revision as of 10:51, 26 January 2020

virt-clone command is inclueed in Ubuntu in virtinst package.


1) virt-clone --original ORIGIN_MACHINE --name NEW_MACHINE --auto-clone
2) hostnamectl set-hostname NEW_SERVER_NAME
3) Modify: /etc/netplan/


virt-clone --original ORIGIN_MACHINE --name NEW_MACHINE --auto-clone
ERROR    Disk /path/to/file.qcow2 is already in use by other guests ['OTHER_MACHINE']. (Use --check path_in_use=off or --check all=off to override)
Solution:
virsh undefine OTHER_MACHINE


Related commands

Activities


See also

Advertising: