
Beginner KVM Networking Lab with Alpine Linux (Step-by-Step)
๐งช Beginner KVM Networking Lab with Alpine Linux (Step-by-Step) In this tutorial, we will: Download Alpine Linux ISO Create alpine1 VM Install Alpine to disk Verify NAT networking Clone and create alpine2 Test VM-to-VM communication All using KVM + libvirt on Ubuntu. We use: Alpine Linux because it is extremely lightweight and perfect for networking labs. ๐งฑ Lab Architecture We will use the default libvirt NAT network: Host (Ubuntu) โโโ virbr0 (192.168.121.1/24) โโโ alpine1 โโโ alpine2 VMs can talk to each other VMs can access internet via NAT VMs are not reachable from outside ๐ฅ Step 1 โ Download Alpine ISO Download Alpine (virt edition recommended for KVM): wget https://dl-cdn.alpinelinux.org/alpine/v3.19/releases/x86_64/alpine-virt-3.19.1-x86_64.iso Move it to libvirt image directory: sudo mv alpine-virt-3.19.1-x86_64.iso /var/lib/libvirt/images/ Verify: ls -lh /var/lib/libvirt/images/ ๐ฅ Step 2 โ Create alpine1 VM Create a 4GB disk and attach ISO: sudo virt-install \ --name alpine1 \
Continue reading on Dev.to
Opens in a new tab




