KVM/QEMU setup for LainOS Layer 02 ~ OpenRC init scripts and default configuration for running virtual machines.
https://lainos.net
- Shell 100%
| lainos-kvm | ||
| LICENSE | ||
| README.md | ||
lainos-kvm
KVM/QEMU setup for LainOS Layer 02 ~ OpenRC init scripts and default configuration for running virtual machines.
Installation
doas pacman -S lainos-kvm qemu-full virt-manager libvirt dnsmasq
The package automatically:
- Creates the
kvmandlibvirtgroups and thelibvirt-qemuuser - Installs OpenRC init scripts for libvirtd and all modular daemons
- Loads and persists the
tun,kvm, andkvm_intelkernel modules - Sets up the default NAT network (192.168.122.0/24)
- Sets up the default storage pool at
/var/lib/libvirt/images - Registers all services in the default runlevel
Usage
Log out and back in after install for group membership to take effect, then:
sg libvirt -c "virt-manager"
Services
| Service | Role |
|---|---|
libvirtd |
Main libvirt daemon |
virtqemud |
QEMU driver daemon |
virtnetworkd |
Network management daemon |
virtstoraged |
Storage pool daemon |
virtlogd |
VM console log daemon |
Notes
- AMD CPUs: replace
kvm_intelwithkvm_amdin/etc/modules-load.d/kvm.conf - VMs are stored at
/var/lib/libvirt/images/by default - Default network: NAT, 192.168.122.0/24, DHCP range 192.168.122.2-254