03 September 2020
Sandbox: vmImage preparation
25 August 2020
Good read to understand relation of Virtualization - Hypervisor - KVM -QEMU
- KVM is linux kernel modul. No gui. Only provide CPU and RAM, not hd, network etc.
- Qemu is an emulator of varied cpu. It also has features to use KVM which will boost performance compare to other emulated cpu type.
-Libvirt as wrapper to start QEMU with the right options.
For more, refer this good explanation:
Qemu/kvm/virsh Snapshot
create snapshot:
sudo virsh snapshot-create-as <domain> <snapshot-name>
This will create xml file in /var/lib/libvirt/qemu/snapshot/<domain>/<snapshot-name>.xml
Normally for snapshot, will have Copy-On-Write. Means anything changes will be save somewhere else instead of main disk image.
But for qcow2, little bit different. The changes still will be store on the main disk image.
To list snapshot:
# qemu-img snapshot -l /var/lib/libvirt/qemu/centos7-server.qcow2
Snapshot list:
ID TAG VM SIZE DATE VM CLOCK
1 live_snapshot1 2.3G 2020-08-25 12:44:09 00:32:40.190https://unix.stackexchange.com/questions/570414/understanding-how-libvirt-snapshots-are-stored
24 August 2020
KVM Qemu virsh
-list storage(pool)
virsh pool-list
-list volume
virsh vol-list __poolName__
-list vm
# virsh list --all
good one: https://serverfault.com/questions/434064/correct-way-to-move-kvm-vm/434070#434070
