== show all VMs ==
virsh list --all
== show all pools ==
virsh pool-list --all
== destroy pool ==
virsh pool-info guest_images
virsh pool-destroy "guest_images"
== create a pool ==
virsh pool-define-as guest_images --type dir --target /data/guest_images
virsh pool-start guest_images
virsh pool-autostart guest_images
==== create a volume ====
virsh vol-create-as guest_images volume 1 4GB
==== Console to a VM ===
virt-viewer #gui
==== Remove a VM ===
virsh destroy vmname
virsh undefine vmname
=== Network assign ip addr ===
- Generate MAC address
perl -e 'for ($i=00;$i<6;$i++){@m[$i]=int(rand(256));} printf "00:16:3E:%X:%X:%X\n",@m;'
- Build Vm
build debian10b /data/ssd/libvirt "macaddress"