Virsh
Revision as of 04:54, 5 January 2019 by imported>Jeremy-busk
Create a KVM vm guest from cli
https://linuxconfig.org/how-to-create-and-manage-kvm-virtual-machines-from-cli
Cheat Sheet
Domain Management
- List domains: #virsh list --all
- Undefine domains: #virst undefine
Volume Management
- List all volumes in pool 'default': #virsh vol-list default
- Delete a volume: #virsh vol-delete --pool default virt-10.img
Pools
- List pools: #virsh pool-list
Network management
- net-autostart network optional --disable
- net-list optional --inactive or --all
- net-start network
- dnsmasq reports problems: http://wiki.libvirt.org/page/Virtual_network_%27default%27_has_not_been_started
Network bridges
Other Projects
- https://github.com/goffinet/virt-scripts
- https://libcloud.readthedocs.io/en/v2.0.0rc1-tentative/compute/drivers/libvirt.html
Using Kick Start
https://help.ubuntu.com/lts/installation-guide/i386/ch04s06.html
https://www.cyberciti.biz/faq/kvm-install-centos-redhat-using-kickstart-ks-cfg/