Back to articles
Beginner KVM Networking Lab with Alpine Linux (Step-by-Step)
How-ToSystems

Beginner KVM Networking Lab with Alpine Linux (Step-by-Step)

via Dev.toiapilgrim

๐Ÿงช 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

Read Full Article
7 views

Related Articles