notes on VM management + libvirt/kvm/qemu ------------------------------------------ resources: https://rabexc.org/posts/how-to-get-started-with-libvirt-on networking: https://wiki.libvirt.org/VirtualNetworking.html#the-default-configuration need: - dnsmasq - dmidecode - guestfs-tools ------------------------------------------ net tools - netstat (net-tools) $ netstat -nulp $ netstat -ntlp $ ip address show $ sudo iptables -nvL ------------------------------------------ virsh connect: virsh -c qemu:///system net (#virsh) net-list --all net-dumpxml net-undefine net-define file.xml net-start net-autostart net-destroy storage pool-list --all vol-list VM CREATION virt-install \ -n alpine-virt-volatile \ --ram 4096 \ --vcpus=4 \ --cpu=host \ -c ./images/alpine-virt-3.22.1-x86_64.iso \ --os-variant=alpinelinux3.23 \ --disk=pool=vdisk,size=10,format=qcow2 \ -w network=default \ --graphics=vnc \ --connect qemu:///system CDROM
FUCK NETWORKING.