Quickemu (version detection) is broken?

Quickemu was updated recently (unstable) and now it’s throwing this:

ERROR! QEMU 6.0.0 or newer is required, detected 10.0.0.

Is this a bug in the version detection? Does anyone know a workaround? I really need to access my VM so am currently screwed!

Thanks,

Yes.

You may be able to override quickemu adding this patch in.

EDIT: corrected package

It looks like nixpkgs fixed it already in quickemu: correctly handle version 10.0.0 of QEMU by dotlambda · Pull Request #419119 · NixOS/nixpkgs · GitHub

So you can use that in the override until it reaches nixos-unstable. (This will result in a qemu rebuild on your system for now.)

(pkgs.quickemu.overrideAttrs {
  patches = [
    (pkgs.fetchpatch {
      name = "correctly-handle-version-10.0.0-of-qemu.patch";
      url = "https://github.com/quickemu-project/quickemu/commit/f25205f4513c4fa72be6940081c62e613d1fddc6.patch";
      hash = "sha256-OAXGyhMVDwbUypEPj/eRnH0wZYaL9WLGjbyoobe20UY=";
    })
  ];
})

Then remove that once it reaches nixos-unstable (see Nixpkgs-tracker).

EDIT: corrected package

Not working for me. But thanks a lot anyway.

Quickemu ≠ QEMU, the patch should be applied to quickemu.

1 Like

Thanks, corrected the snippet.

@fiddler give the update a try, replacing pkgs.quickemu with the mentioned override.

Thanks all. I managed to fix it by adding an override and going back to the previous version. At least I learned something!