Skip to content
Search openEuler

    Browse this documentation

    openEuler's libvirt/KVM network surface — verified on 9.10: the default NAT network and the bridged/advanced paths

    Evidence on this page comes from the machine track (E3) — VM 381 (openEuler 24.03 LTS SP4, 2026-11-05): libvirt install/start/default-network verified. Raw log: evidence/logs/openeuler-p4-virt-vm.log (the section after libvirt-install).

    The verified foundation: libvirt 9.10 and the default NAT network

    Section titled “The verified foundation: libvirt 9.10 and the default NAT network”
    $ dnf -y install libvirt
    libvirt-9.10.0-34.oe2403sp4 (daemon and client installed together)
    $ systemctl start libvirtd && systemctl is-active libvirtd
    active
    $ virsh net-list --all
    Name State Autostart Persistent
    default active yes yes
    $ virsh net-dumpxml default | grep -E "<bridge|<ip |forward"
    <forward mode='nat'/>
    <bridge name='virbr0' stp='on' delay='0'/>

    Three layers of fact assemble openEuler’s libvirt network default state: the NAT-mode default network (virbr0) works out of the box — active as soon as libvirtd starts, with autostart, persistent and running all in place. This matches RHEL-family behavior (EL ops experience carries over), and dnsmasq is built into libvirt-network (distinct from the system dnsmasq).

    One more landscape fact: the qemu-kvm engine packages are in the repos (6 qemu packages installable) but are not installed by default* — pure network experiments only need libvirt; install qemu-kvm when you want real VMs.

    The default network fits single-host experiments (VMs egress via NAT); production usually takes one of two paths forward:

    1. Bridged networking (VMs join the physical network directly): virsh net-define a definition with <forward mode='bridge'/> plus the host’s physical port in the bridge, or use <interface type='bridge'> directly in the domain XML — openEuler’s underlying toolchain (bridge-utils/iproute2/NM) is isomorphic to EL, so the site’s existing network configuration basics page applies too;
    2. OVS/SR-IOV: large-scale or low-latency virtualization. OVS needs the openvswitch package (check against the repos actually available to you); SR-IOV depends on the NIC and driver layer (lspci to probe VF capability) — both are “host kernel + driver first, libvirt only provides the surface” paths.

    This page stops at the path and boundary for bridging/OVS/SR-IOV (no real physical network was built in the lab), but here is the NAT→bridge decision point up front: do the VMs need to be actively reached by the external network — if yes, bridge; egress-only stays NAT.

    libvirt/KVM is the “full virtualization” stack (the qemu device model, migration, snapshots — the whole family); StratoVirt is the microvm minimal stack (see the StratoVirt page — KVM-only, virtio-mmio minimal devices). For operations: traditional VMs/desktops/complex devices use libvirt+qemu-kvm; sandbox/Serverless density scenarios use StratoVirt/Kuasar.

    • Bridged network definition and VM attachment not tested in this environment (the lab network is the PVE management bridge; changing it would affect host connectivity, so it was not done);
    • OVS/SR-IOV not tested in this environment (no matching hardware or network freedom);
    • The full qemu-kvm domain feature set (snapshots/migration/graphics) not tested in this environment (this page focuses on the network surface; virtualization basics already have a standing virt page).