Difference between revisions of "Virt-clone"

From wikieduonline
Jump to navigation Jump to search
Line 4: Line 4:
  
 
:1) <code>virt-clone --original ORIGIN_MACHINE --name NEW_MACHINE --auto-clone</code>
 
:1) <code>virt-clone --original ORIGIN_MACHINE --name NEW_MACHINE --auto-clone</code>
:2) <code>[[hostnamectl]] set-hostname NEW_SERVER_NAME</code>
+
:2) Connect to new server and: <code>[[hostnamectl]] set-hostname NEW_SERVER_NAME</code>
 
:3) Modify: <code>/etc/[[netplan]]/</code>
 
:3) Modify: <code>/etc/[[netplan]]/</code>
  

Revision as of 14:26, 4 February 2020

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


1) virt-clone --original ORIGIN_MACHINE --name NEW_MACHINE --auto-clone
2) Connect to new server and: 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: