From fa88901f1e199b5e47f73125d902573b38a56dc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A1vio?= <25729991+saviosg@users.noreply.github.com> Date: Thu, 13 Feb 2025 10:00:19 -0300 Subject: [PATCH] make-disk-image: fix virtiofs --- lib/make-disk-image.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/make-disk-image.nix b/lib/make-disk-image.nix index 6c3da53..0738d39 100644 --- a/lib/make-disk-image.nix +++ b/lib/make-disk-image.nix @@ -222,7 +222,7 @@ in QEMU_OPTS=${lib.escapeShellArg QEMU_OPTS} # replace quoted $out with the actual path QEUM_OPTS=''${QEMU_OPTS//\$out/$out} - QEMU_OPTS+=" -m $build_memory" + QEMU_OPTS+=" -m $build_memory -object memory-backend-memfd,id=mem,size=''${build_memory}M,share=on -machine memory-backend=mem" export QEMU_OPTS ${pkgs.bash}/bin/sh -e ${vmTools.vmRunCommand vmTools.qemuCommandLinux}