r/qemu_kvm • • 2h ago

virt-manager: automatic resolution resizing work only on 4096x2000

Thumbnail gallery
2 Upvotes

Hi everyone,

I'm currently working with virt-manager on Fedora 45 with KDE Plasma, and the guest display settings and automatic resolution resizing to fit the virt-manager window are driving me crazy.

Auto-resizing only works when the guest resolution is set to 4096x2000. As soon as I pick a resolution where I can actually read anything, the window auto-resize stops working (and I end up with black bars on the left and right).

My guests are Debian 13 with KDE Plasma and Fedora 45 with KDE Plasma, using both X11 and Wayland—the exact same issue occurs on all of them. Is there any trick to fix this, other than setting display scaling to 250%?

The VM is set to default settings:

<graphics type="spice" autoport="yes">
  <listen type="address"/>
  <image compression="off"/>
</graphics>

<channel type="spicevmc">
  <target type="virtio" name="com.redhat.spice.0"/>
  <address type="virtio-serial" controller="0" bus="0" port="2"/>
</channel>
<channel type="unix">
  <target type="virtio" name="org.qemu.guest_agent.0"/>
  <address type="virtio-serial" controller="0" bus="0" port="1"/>
</channel>

<video>
  <model type="virtio" heads="1" primary="yes" device="virtio-vga"/>
  <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x0"/>
</video>

r/qemu_kvm • • 10h ago

I got tired of letting AI coding agents run random commands on my workstation, so I built a self-hosted KVM/libvirt "airlock" they can control over MCP (3 min demo)

0 Upvotes

I love using AI coding agents (Claude Code, Cursor, etc.), but I really hated letting them run npm install, Docker Compose stacks, headless browsers, and random test scripts directly on my daily driver—right next to my SSH keys, browser profiles, and personal files.

Docker/devcontainers helped a bit, but I wanted actual kernel-level isolation and the ability to run full Docker fleets inside a disposable environment that I can snapshot and nuke in seconds—using my own Linux KVM hardware instead of paying for a cloud sandbox.

So I built AirlockVM (MIT licensed, 100% self-hosted).

The 3-minute video above shows the full flow end-to-end: probing a KVM host, provisioning an isolated VM, syncing an app, and hitting it from the host browser.

How it works

You keep editing code in your IDE on your workstation, while zero runtime workloads execute on your host OS:

textWorkstation (IDE, Git, Browser — NO runtime workloads)
        │  rsync / SSH
        ▼
Local or Remote Linux KVM Host (libvirt / QEMU)
        └── Dedicated Guest VM (<project>-vm)
              └── Docker fleets, builds, tests, untrusted code

Why I built it this way (the self-hosted / homelab bits)

  • **Zero-**sudo (rootless) hypervisor support: You don't have to hand your AI agent root on your homelab server. It supports a dedicated least-privilege account (libvirt/kvm groups only), ACL storage pools, and user-level systemd socket proxies (~/.config/systemd/user/).
  • No SaaS, no telemetry: Pure Python 3.11+, KVM/QEMU/libvirt, cloud-init, rsync, and systemd. State is stored locally as plain YAML (vm.yaml) in ~/.airlock/inventory/.
  • Doesn't starve your host: Auto-probes your hypervisor's CPU threads, RAM, and storage, allocates proportional headroom, and picks collision-free static DHCP IPs + MACs on virbr0.
  • Fast cloning & rollbacks: Pre-bakes a golden Ubuntu 24.04 qcow2 base image (and can stream/seed it to other KVM hosts with SHA-256 verification) + external disk snapshots so you can revert a broken guest in seconds.
  • Works with or without AI: Comes with a standalone airlock CLI (probe, deploy, sync, exec, snapshot, diagnose, drift) and an MCP server (28 tools) with a one-command connector for Claude Code, Cursor, VS Code, Windsurf, JetBrains, and Antigravity.

Current limitations (to save you a click)

  • Linux KVM/libvirt only right now (local or remote over SSH). No Proxmox API or macOS native hypervisor backend yet.
  • Still early—would genuinely love feedback, edge-case reports, or roasting of the architecture.

GitHub (MIT): https://github.com/simplybarter/AirlockVM

Happy to answer any questions about the rootless libvirt setup, the socket proxying, or why I went with KVM + cloud-init instead of containers/Incus/Vagrant!


r/qemu_kvm • • 2d ago

Found a way to bypass Auto Keyboard by MurGee anti-vm check on QEMU

2 Upvotes

Change System Manufacturer to "Reddit" and System Model to "Reddit" displayed in Windows msinfo32 using a BIOS ROM editor.


r/qemu_kvm • • 4d ago

Why does emulating Windows 11 on a Pentium 2 using QEMU make me think about the song Waka Waka (This Time for Africa which Africans are like Ryzen 3)

0 Upvotes

r/qemu_kvm • • 5d ago

I emulated a Realtek Smart TV SoC in QEMU and booted full Android TV 9

Thumbnail github.com
6 Upvotes

r/qemu_kvm • • 6d ago

I am trying to run QEMU (last version from 2015) inside QEMU 0.9.0. Is it going to be stuck at this screen forever or will it take a very long time to load.

Post image
11 Upvotes

Tried both 32-bit and 64-bit CPU for 0.9.0. The VM inside QEMU 0.9.0 has Windows XP installed and Windows 8.1 inside that VM. I want to know because if QEMU 2015 can work inside QEMU 0.9.0, that means it is possible to run Windows 11 on a 486 because QEMU 0.9.0 is compatible with 486. All 32-bit unless stated otherwise or does not have 32-bit version.


r/qemu_kvm • • 6d ago

Which analogy is more accurate to QEMU emulating x86 on ARM?

0 Upvotes
  1. Neurotypical being emulated on an Autist: I think this analogy is accurate because the world is designed for neurotypical just like most software is designed for Windows on x86.
  2. Caucasian being emulated on an Asian: I think this analogy is also accurate because Caucasians have more body odor just like x86 generates more heat and requires a big fan and heatsink to cool everything down. Asians are also smarter just like ARM is more powerful per watt. The strong-on-weak emulation makes sense because Asians are biologically "weaker" than Caucasians in height and BMI.

r/qemu_kvm • • 6d ago

Windows 8.1 (32-bit) on a 486 processor.

Post image
4 Upvotes

r/qemu_kvm • • 8d ago

Any 64-bit OS that works on the ISA-only PC? Windows XP 64-bit does not work because it requires I/O APIC

Post image
2 Upvotes

r/qemu_kvm • • 9d ago

Is it possible to change the aspect ratio of my virtual machine?

0 Upvotes

I have a gentoo virtual machine with an aspect ratio of 4:3 which bothers me because my screen has a 16:9 aspect ratio. Does anyone know if i can change it and how?


r/qemu_kvm • • 9d ago

Helppp

1 Upvotes

I tried https://github.com/kholia/osx-kvm, but my mouse cursor became transparent, and the virtual machine's cursor just stays frozen (I’m running High Sierra).


r/qemu_kvm • • 11d ago

Keyboard-driven terminal UI for libvirt/virsh, with vim keys and live graphs

Post image
31 Upvotes

virsh-tui shows every virtual machine on a libvirt connection with live CPU, memory, disk and network graphs, and lets you start, stop, snapshot, reconfigure and create them from the keyboard. Every action is a virsh (or virt-install) command, and virsh-tui shows you that command before and after it runs, so nothing happens behind your back and you can reuse it in a script.

It works with qemu:///system, qemu:///session and remote hosts over qemu+ssh://, with the same permissions virsh has.

https://github.com/SyscallBrain/virsh-tui


r/qemu_kvm • • 10d ago

1.0 Windows Experience Index scores in everything because this is emulation and not virtualisation and is expected

Post image
0 Upvotes

r/qemu_kvm • • 12d ago

qemu virt-manager machines no longer boot with hardware acceleration

3 Upvotes

Running on cachyos/KDE with AMD hardware something changed with an update last week. VM's no longer boot with virtio/opengl acceleration. The UEFI splash screen does not display, just a black screen.

Journalctl shows this:

nov. 14 13:10:13 cachyos-desktop virt-manager[4731]: update scanout failed: failed to create EGL image from DMA-BUF: egl_error=0x3003

If i boot into an week old cachyos snapshot if works.

If i disable hardware acceleration by changing video model to QXL the VM's boot normally.

Any ideas?


r/qemu_kvm • • 13d ago

Emulating a Realtek RTD2841 Smart TV SoC in QEMU: MMIO, GIC-400, and booting a vendor 4.4 kernel

4 Upvotes

I built a custom QEMU system model for the Realtek RTD2841 (RTK284x series) SoC, targeting the TCL RT41 chassis (tv030).

The SoC runs a quad Cortex-A53 in AArch32 mode. The emulator implements the MMIO peripherals needed to boot the stock vendor Linux 4.4 kernel and run userspace binaries:

  • Interrupts: ARM GIC-400 distributor and CPU interfaces (0x18081000 / 0x18082000).
  • Timers: 27 MHz system timer block (TC0) at 0x1801B600, with hardware down-counters mapped to monotonic reads for Linux sched_clock and INTID 34 IRQ delivery.
  • Storage: Synopsys DesignWare SDHCI eMMC controller at 0x18010800, wired to QEMU SD media drives.
  • Networking: RTL8168 gigabit Ethernet controller (0x18016000) with TX/RX DMA descriptor rings connected to a SLIRP backend for outbound DNS and HTTP traffic.
  • Graphics / Shaders: Freestanding EGL 1.4 / GLES 2.0 software driver with an integrated SwiftShader AST compiler frontend (TCompiler) for strict GLSL ES 1.00 validation without host Mali dependencies.

The repo includes a bare-metal diagnostic suite written in pure ARM32 assembly (tests/firmware_test.s, assembled via arm-none-eabi-as) that checks CPU modes, GIC INTID delivery, timer tick rates, eMMC presence, and Ethernet loopback before passing execution to the kernel.

Source, device tree sources, and test harnesses:
https://github.com/rubenthampy890-del/qemu-rtd2841

Feedback on the MMIO models and register maps is welcome.


r/qemu_kvm • • 16d ago

Can I change windows OS password using rescue ?

0 Upvotes

Can I change windows OS password using Linux rescue ? I am getting only option for blank password but I want to change it from rescue only.


r/qemu_kvm • • 16d ago

ChromeOS Flex 156 running successfully on QEMU/KVM under CachyOS — experimental results

2 Upvotes

I've been experimenting with ChromeOS Flex virtualization on my Linux laptop and managed to get a working installation using QEMU/KVM.

I wanted to share the setup and some interesting compatibility observations.

Host environment:

  • OS: CachyOS + Hyprland
  • Kernel: 7.3.3-1-cachyos
  • Hypervisor: QEMU 11.1.3
  • Hardware virtualization: Intel VT-x / KVM

Guest configuration:

  • OS: ChromeOS Flex 156.0.8078.93
  • Initial recovery image: Reven 16805.36.0
  • RAM: 6144 MiB
  • CPUs: 2 vCPUs
  • Storage: 32 GiB QCOW2
  • GPU: virtio-vga-gl with OpenGL
  • Network: e1000 using QEMU user-mode NAT
  • Input: virtual USB tablet

ChromeOS Flex installed successfully, booted from the virtual disk, connected to Google's services, and updated normally.

There were a few quirks, particularly with mouse handling. The virtual USB tablet works, but right-clicking and scrolling aren't always recognized correctly.

I also experimented with Google Forms Locked Mode using a self-owned demonstration quiz.

Interestingly, the quiz interface worked, responses were recorded, and reopening notifications were generated, despite using a personal ChromeOS Flex installation.

This doesn't establish full compatibility with the security requirements of a managed Chromebook, but it was an interesting observation.

I documented the results and limitations here:

GitHub: https://github.com/ByteShark-dev/chromeos-flex-locked-mode-notes

I'm particularly interested in hearing from anyone who has experimented with ChromeOS Flex virtualization.

Have you found a better mouse/input configuration or other approaches to improve compatibility with QEMU/KVM?


r/qemu_kvm • • 18d ago

Windows 11 guest performance KVM vs Virtualbox

9 Upvotes

I get much better performance on win11 guest vm on virtualbox compared to kvm. Am i doing something wrong on kvm or is virtualbox just better option for win11 guests?

on kvm i made it by following Sysguides tutorial on YouTube.

What is your expiriance?


r/qemu_kvm • • 18d ago

Is it ok to Suspend/Resume a Windows VM instead of Start/Stop?

1 Upvotes

I mean is it safe? Is there anything I should be careful of like using a BTRFS filesystem or something?

I'm making an app where it autostarts a Windows VM on launch and autostops it on close which takes a long ass time, I've tried everything to reduce the boot/shutdown times but it just takes too long so maybe Suspend/Resume would be better?

Thanks in advance


r/qemu_kvm • • 20d ago

SPICE (gl=on, local unix socket) caps at ~45 fps while gtk,gl=on hits ~57–60 on the same VM. Why?

6 Upvotes

I’m testing whether I can run my whole daily desktop inside a KVM VM on a laptop, and I hit something I can’t explain: the same VM gets noticeably fewer frames through SPICE than through the GTK display.

Host: Ubuntu 26.04, QEMU 10.2.1, virglrenderer 1.2.0, Intel Iris Xe (i915), GNOME 50 Wayland. Guest: Ubuntu 26.04, virtio-vga-gl, 1920x1080@60, 4 vCPU / 4 GB. Test: YouTube 1080p60 in Brave (software decode, dav1d), 30–60 s.

-display gtk,gl=on (xres/yres 1920x1080, full screen): ~57 fps reach the display (I traced virtio_gpu_cmd_res_flush), 0.4–5% dropped frames.

-spice unix=on,gl=on + remote-viewer --full-screen: ~45 fps, 26–30% dropped. I also tried stripping SPICE down (no vdagent, fixed resolution, compression/streaming off, rendernode set, max-refresh-rate=60, guest at 60 Hz instead of 75): same ~45 fps.

No thread is maxed out in either case (host QEMU threads ≤78%, remote-viewer ~52%, guest ~30% idle). With SPICE the guest compositor and Brave’s GPU thread actually do about half the work, so it looks like the guest is waiting on the display path rather than struggling.

Is this the gl_draw / gl_draw_done round trip between QEMU and the SPICE client? Is there a way to get local SPICE GL to 60 fps, or is GTK (or dbus) the way to go for a smooth local display? Happy to post full command lines or traces.


r/qemu_kvm • • 20d ago

QEMU emulating an 8THz processor

Post image
11 Upvotes

r/qemu_kvm • • 21d ago

Can QEMU really do this

0 Upvotes

Somebody who started a walk back home on November 1, 1998 to use his Pentium 2 computer should have completed it in 2010 (where it can run Windows 7, the latest in 2010), but because of delays, he finished it in November 2, 2026. He needs to browse the web after getting home but the CPU no longer supports Firefox due to missing SSE2 instructions. So QEMU can solve the problem by making the Pentium 2 run Windows 11 23H2 (still supported until November 10, 2026 (8 days after getting home) and letting him browse the modern web with a supported operating system.

He cannot afford a new PC so QEMU is the only option for him.

Edit: But he can afford to upgrade components so he got a GT 610 on the PCI form, 2GB RAM, 120GB SSD, Intel Pro 1000 MT Desktop and a Creative Sound Blaster. Windows 11 23H2 is running in Windows 7 (32-bit) using QEMU.


r/qemu_kvm • • 24d ago

VM IOMMU Passthrough Error

Thumbnail reddit.com
0 Upvotes