KVM Host Network Configurations using Virt-Manager

Networking is one of the most important aspects of any virtualization setup. Changing VMs is not a problem. How the VM connects with each other, the host, and outside world depends on the network of the host. Networking in KVM can be handled at a low level using Linux networking tools. For many administrators, however, Virt-Manager provides a simple graphical interface for managing KVM networking.

🔥 TRENDING - Our #1 Selling eBook

Mastering KVM Virtualization - The Ultimate eBook

From home labs to production clouds - master KVM Host management, automating KVM administration using Terraform, Vagrant, and cloud automation. This eBook will enable you to build scalable virtual infrastructure that works whether you're learning at home or deploying enterprise solutions. Get your full copy today

Only $10 $20
Get Instant Access →

Let’s go through some basic network configurations that you can perform using Virtual Machine Manager:

Creating Virtual Networks

Launch Virt Manager and select a KVM host then go to Edit → Connection Details. Navigate to the Virtual Networks tab and click on the plus icon that says Add Network when hovered.

A new configuration wizard pops up and you can configure your virtual network:

You can specify whichever subnet you want, as long as it does not conflict with any existing virtual network.

You can also configure your virtual network using xml on virt-manager.

Click on Finish when done. Now your new Virtual Network is up and running.

Attach Virtual Network to VM

Now, let’s attach the custom Network to a VM. Open the VM details by selecting the VM, then click Open → View → Details → NIC.

Click on Network source and select the Virtual Network you just created then click Apply.

After powering on the VM, you can reload the IP address to have a look at the new IP address:

Configure Bridged Networking

By default, virt-manager does not show the bridged network option. You need to manually create a Linux bridge and configure it for use with KVM. For this step, please refer to these guides:

After you have successfully set up the bridge network, proceed to open Virt-Manager and go to Edit → Connection Details, then select the Virtual Networks tab. Ensure that the brigde network is present.

23.png

To assign the new network to a VM, go to Virtual Machine Details → NIC Network → Source.

Virt-Manager focuses on creating virtual networks using libvirt, but bridging requires changes to the host’s networking setup, which is outside libvirt‘s scope.

Join our Linux and open source community. Subscribe to our newsletter for tips, tricks, and collaboration opportunities!

Recent Post

Unlock the Right Solutions with Confidence

At CloudSpinx, we don’t just offer services - we deliver clarity, direction, and results. Whether you're navigating cloud adoption, scaling infrastructure, or solving DevOps challenges, our seasoned experts help you make smart, strategic decisions with total confidence. Let us turn complexity into opportunity and bring your vision to life.

Leave a Comment

Your email address will not be published. Required fields are marked *

Related Post

Greetings and salutations. In our article today, we will evaluate two virtualization technologies. Virtualization is a concept that has gained […]

One of the best things about running Windows 11 in a virtualized environment is that you can try applications and […]

KVM (Kernel-based Virtual Machine) of Linux is one of the most popular virtualization technologies of Linux. KVM is a Linux […]

Let's Connect

Unleash the full potential of your business with CloudSpinx. Our expert solutions specialists are standing by to answer your questions and tailor a plan that perfectly aligns with your unique needs.
You will get a response from our solutions specialist within 12 hours
We understand emergencies can be stressful. For immediate assistance, chat with us now

Contact CloudSpinx today!

Download CloudSpinx Profile

Discover the full spectrum of our expertise and services by downloading our detailed Company Profile. Simply enter your first name, last name, and email address.