Skip to content

qemu-kvm

Installation

sudo pacman -S qemu virt-manager virt-viewer dnsmasq vde2 bridge-utils openbsd-netcat ebtables iptables libguestfs
sudo systemctl enable --now libvirtd
sudo usermod -aG libvirt $(whoami)
sudo systemctl restart libvirtd

Disable the internet before proceeding to boot live disk:

1751840252.png

Mon Jul 7 03:48:50 AM IST 2025

I'm not sure what went wrong, but the vm wouldn't boot under uefi.

After installation of the VM and a reboot of the host device I had to run:

sudo virsh net-autostart default 
sudo virsh net-start default

VM to Camera IP network

I couldn't install ONVIF Device Manager (odm-v2.2.250r.msi https://sourceforge.net/projects/onvifdm/files/) in wine so I decided to do install it in a Windows VM. But here the challenge would be getting the vm to access the ip camera network that the host is connected to. I'll detail the setup that achieved this goal.

I don't use networkmanager btw.

Bridge configuration

/etc/systemd/network/br0.netdev
[NetDev]
Name=br0
Kind=bridge
/etc/systemd/network/br0.network
[Match]
Name=br0

[Network]
DHCP=yes

Bind Ethernet Interface to Bridge

Where enp5s0 is the interface connected to the IP camera network.

/etc/systemd/network/enp5s0.network
[Match]
Name=enp5s0

[Network]
Bridge=br0

Enable systemd-networkd

sudo systemctl enable systemd-networkd
sudo systemctl restart systemd-networkd

Add network interface in virt-manager

Show virtual hardware details
    > Add Hardware

Add NIC with this config:

1751841226.png

In my case the device model had to be e1000e and not virtio.

Now you can reboot.

Veify br0 is working

ip addr show br0

# Verify your ethernet interface is part of the bridge
bridge link show

Comments