Skip to content
Search openEuler

    Browse this documentation

    StratoVirt microVM primer — a four-step troubleshooting run to a microVM booting on real hardware (KVM acceleration verified) and the QMP management plane

    This page’s evidence is the bare-metal track (E3) — VM 381 euler24-lab (openEuler 24.03 LTS SP4, x86_64, nested KVM available: /dev/kvm present, cpuinfo 4 vmx flags, 2026-11-05): installation, CLI surface, four boot iterations to a running microVM. Raw log: evidence/logs/openeuler-p4-virt-vm.log (the complete VmConfig parse log included).

    $ dnf -y install stratovirt
    stratovirt-2.4.0-11.oe2403sp4.x86_64
    $ stratovirt -V
    StratoVirt 2.4.0
    $ stratovirt -h | head -6
    A light kvm-based hypervisor. # positioning self-description: a lightweight KVM-based VMM
    -accel [accel] select accelerator, only 'kvm' is supported now.

    Note the version flag is -V, not --version (the latter errored on a bad argument in testing) — the first signal that the CLI shares origins with QEMU’s but is not fully compatible.

    The four-step troubleshooting record: from errors to vcpu running

    Section titled “The four-step troubleshooting record: from errors to vcpu running”

    Goal: boot a minimal microVM using the host’s own kernel (/boot/vmlinuz-6.6.0-… + initramfs) — verifying the engine chain without preparing a rootfs image, the fastest hands-on verification method. Four iterations (each round’s error text is in the log):

    1. -machine micro_vm → Unrecognized machine type: the machine name is not underscore style. The correct name is microvm (the standard machine type is standard, see the help);
    2. -chardev stdio + -daemonize → mutually exclusive rejection: the stdio console and backgrounding cannot be used together — run in the foreground or send the serial to a file;
    3. Bare start with -display none → “Please use ‘-qmp’ or ‘-mon’ to give a qmp path”: StratoVirt mandates a QMP socket (unlike QEMU, which can run bare) — this is its management-plane design: all control goes through QMP;
    4. Adding -qmp unix:/tmp/sv.qmp,server,nowait → success:
    MICROVM-RUNNING 6635 # process is running
    srw------- /tmp/sv.qmp # QMP socket in place
    [hypervisor/src/kvm/mod.rs: 609]:INFO: vcpu0 start running # vCPU truly running under KVM acceleration

    The minimal working command (the form verified on this page):

    Terminal window
    stratovirt -machine microvm \
    -kernel /boot/vmlinuz-6.6.0-159.4.3.154.oe2403sp4.x86_64 \
    -initrd /boot/initramfs-6.6.0-159.4.3.154.oe2403sp4.x86_64.img \
    -append "console=ttyS0 panic=-1" -smp 1 -m 512 \
    -qmp unix:/tmp/sv.qmp,server,nowait -display none

    Differences from QEMU (induced from testing)

    Section titled “Differences from QEMU (induced from testing)”
    • Management plane: QMP mandatory (optional in QEMU); -V rather than --version;
    • Device model: the microvm machine type keeps only the minimal virtio-mmio device set (the migration device registration in the log shows VirtioBlk/VirtioNet/VirtioMmio state descriptions) — fast boot, small attack surface, which is exactly why it serves as Kuasar’s microVM sandbox backend (see the Kuasar page);
    • Accelerator: KVM only (per the help text) — no TCG software-emulation fallback; containers/CI without /dev/kvm cannot run it.
    • A microVM with a real rootfs as a complete guest (block -drive, network -netdev, serial interaction) not tested in this environment — this page verified up to the vCPU-running layer;
    • The standard machine type (full virtio-pci device model) not tested in this environment;
    • No boot-time/memory-footprint benchmark comparison with QEMU (the officially claimed lightweight advantage carries no numbers from us);
    • Live migration (its migration framework is visible in the migration device registration log) not tested in this environment.