Skip to content

Just another Linux geek

Linux, automation and open source

  • About
  • Articles
  • RSS

Just another Linux geek

Linux, automation and open source

  • About
  • Articles
  • RSS

Category: Virtualisation

Virtual machines and hypervisors, including KVM, QEMU, libvirt, VirtualBox and virtual guest networking.

A close-up of rack-mounted Cisco servers at the Wikimedia Foundation
3 April, 20223 November, 2026Ansible, Linux, Open source, Virtualisation

Using a dynamic libvirt inventory with Ansible

Discover virtual machines through libvirt and use them as a dynamic Ansible inventory. This walkthrough covers the guest-agent requirements, local and remote hypervisors, testing the inventory, and running playbooks through the guest agent without SSH connections to the guests.

Read more
Blue and grey Ethernet cables connected to two network switches
18 July, 20213 November, 2026Linux, Networking, Open source, Virtualisation

How to create VLAN trunks and access ports for VMs on Linux bridges using NetworkManager (and have them talk)

Connect virtual machines through both VLAN trunks and access ports on a Linux host using NetworkManager. This guide explains where to create the VLAN interface so guests using tagged and untagged connections can communicate, with diagrams and commands for the bridge configuration.

Read more
29 August, 202031 October, 2026Linux, Networking, Open source, Virtualisation

How to create bridges on bonds (with and without VLANs) using NetworkManager

Some production systems you face might make use of bonded network connections that you need to bridge in order to get VMs onto them. That bond may or may not have a native VLAN (in which case you bridge the bond), or it might have […]

Read more
27 July, 202031 October, 2026Linux, Networking, Open source, Virtualisation

How to create Linux bridges and Open vSwitch bridges with NetworkManager

My virtual infrastructure Ansible role supports connecting VMs to both Linux and Open vSwitch bridges, but they must already exist on the KVM host. Here is how to convert an existing Ethernet device into a bridge. Be careful if doing this on a remote machine […]

Read more
15 March, 202028 October, 2026Linux, Networking, Open source, Virtualisation

Using network namespaces with veth to NAT guests with overlapping IPs

Sets of virtual machines are connected to a virtual bridges (e.g. virbr0 and virbr1) and as they are isolated, can use the same subnet range and set of IPs. However, NATing becomes a problem because the host won’t know which VM to return the traffic […]

Read more
3 March, 202027 October, 2026Ansible, Linux, Networking, Open source, Virtualisation

Using Ansible to define and manage KVM guests and networks with YAML inventories

I wanted a way to quickly spin different VMs up and down on my KVM dev box, to help with testing things like OpenStack, Swift, Ceph and Kubernetes. Some of my requirements were as follows: Define everything in a markup language, like YAML Manage VMs […]

Read more
18 December, 201931 October, 2026Linux, Open source, Storage, Virtualisation

KVM guests with emulated SSD and NVMe drives

Sometimes when you’re using KVM guests to test something, perhaps like a Ceph or OpenStack Swift cluster, it can be useful to have SSD and NVMe drives. I’m not talking about passing physical drives through, but rather emulating them. NVMe drives QEMU supports emulating NVMe […]

Read more
17 November, 201927 October, 2026Linux, Open source, Storage, Virtualisation

Use swap on NVMe to run more dev KVM guests, for when you run out of RAM

I often spin up a bunch of VMs for different reasons when doing dev work and unfortunately, as awesome as my little mini-itx Ryzen 9 dev box is, it only has 32GB RAM. Kernel Samepage Merging (KSM) definitely helps, however when I have half a […]

Read more
31 August, 201627 October, 2026Fedora, Linux, Networking, Open source, Virtualisation

Configuring QEMU bridge helper after “access denied by acl file” error

QEMU has a neat bridge-helper utility which allows a non-root user to easily connect a virtual machine to a bridged interface. In Fedora at least, qemu-bridge-helper runs as setuid (any user can run as root) and privileges are immediately dropped to cap_net_admin. It also has […]

Read more
17 June, 201625 October, 2026Fedora, Linux, Open source, Virtualisation

Booting Fedora cloud images with KVM

Here’s how you can play with the Fedora cloud images on your local machine with KVM. Download a cloud image. Make a new local backing image (so that we don’t write to our downloaded image) called my-disk.qcow2. The cloud image uses cloud-init to configure itself […]

Read more

Posts pagination

1 2 >
© 2026 Just another Linux geek

Just another Linux geek

Linux, automation and open source

Close menu
  • About
  • Articles
  • RSS