Difference between revisions of "Manage VM in console"
(Created page with "'''KVM''' Creating copy of an existing VM:<br/> Find the VM you want to save. <pre> [root@localhost ~]# lvdisplay --- Logical volume --- LV Path /dev/vg1/k...") |
|||
Line 22: | Line 22: | ||
Block device 253:0 | Block device 253:0 | ||
</pre> | </pre> | ||
+ | Shutdown it | ||
+ | <pre> | ||
+ | virsh shutdown kvm101 | ||
+ | </pre> | ||
+ | Now create the backup | ||
+ | <pre> | ||
+ | dd if=/dev/vg1/kvm101_img | gzip | dd of=/home/kvm101_backup.gz bs=4096 | ||
+ | </pre> | ||
+ | This archive can be used either for general backup or for cloning, migrating VMs.<br/> |
Revision as of 16:25, 26 March 2013
KVM
Creating copy of an existing VM:
Find the VM you want to save.
[root@localhost ~]# lvdisplay --- Logical volume --- LV Path /dev/vg1/kvm101_img LV Name kvm101_img VG Name vg1 LV UUID ZCfjys-Ut9b-2iKZ-VFen-DG2i-79Hn-dfUnOf LV Write Access read/write LV Creation host, time , LV Status available # open 1 LV Size 30.00 GiB Current LE 960 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 1024 Block device 253:0
Shutdown it
virsh shutdown kvm101
Now create the backup
dd if=/dev/vg1/kvm101_img | gzip | dd of=/home/kvm101_backup.gz bs=4096
This archive can be used either for general backup or for cloning, migrating VMs.