← Back to blog
bpdubuntu
Connecting Your Virtual Machines: Understanding KVM Networking
13 February 2026bpd · ubuntu
Give Your VMs Access to the Outside World
A virtual machine isn’t very useful if it can’t connect to a network. In the ‘Ubuntu System Administration Guide’, you’ll learn about the different ways KVM can connect your VMs to your local network and the internet.
Key Networking Modes
- NAT Network: This is the default and simplest option. The host computer acts like a router for the VM, giving it internet access but keeping it on a separate, private subnet. This is great for isolating the VM while still allowing it to download updates and browse the web.
- Bridge Mode: In this mode, the VM connects directly to your local network, appearing as a separate device alongside your host computer. It will get its own IP address from your router. This is the best option when you need other computers on your network to be able to access services running inside the VM.
Choosing the right networking mode is crucial for ensuring your virtualized services are accessible in the way you intend.
This post is based from content of the book Ubuntu System adminstration guide. And the book can be found here https://www.amazon.com/stores/Mattias-Hemmingsson/author/B0FF5CQX13