Vagrant

Vagrant Support For KVM/libvirt

Install https://github.com/vagrant-libvirt/vagrant-libvirt

Virtual Machines

KVM

Convert VirtualBox Appliance to KVM Appliance

# Unpack OVA
tar -xf vm-appliance.ova
# Convert disk from VDI to QCOW2
qemu-img convert -f vdi -O qcow2 vm-disk-name.vdi vm-disk-name.qcow2

List Running VMs

virsh list

List VM Snapshots

virsh snapshot-list --domain vm-name

Create VM Snapshot

virsh snapshot-create-as --domain vm-name --name "snapshot-name"

Restore VM Snapshot

virsh snapshot-revert --domain vm-name --snapshotname "snapshot-name"

Delete VM Snapshot

virsh snapshot-delete --domain vm-name --snapshotname "snapshot-name"