From 9ba646fa4358e8e8b1db14e316da583f68497b84 Mon Sep 17 00:00:00 2001 From: buianhhuy96 Date: Mon, 16 Sep 2024 11:11:09 +0300 Subject: [PATCH] FMO-53: Add qemu machine as q35 to fix wifi error on laptop - Fix wifi interface not found on laptop target - Set qemu machine to q35 Signed-off-by: Anh Huy Bui --- modules/virtualization/microvm/vm.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/virtualization/microvm/vm.nix b/modules/virtualization/microvm/vm.nix index df2ba4e..39204ef 100644 --- a/modules/virtualization/microvm/vm.nix +++ b/modules/virtualization/microvm/vm.nix @@ -33,6 +33,7 @@ nixpkgs.hostPlatform.system = configHost.nixpkgs.hostPlatform.system; microvm.hypervisor = "qemu"; + microvm.qemu.machine = "q35"; networking = { enableIPv6 = false; @@ -53,8 +54,6 @@ microvm.shares = [ # Use host's /nix/store to reduce size of the image - # WAR: to enable -M q35 option need to share any fs or pcie devices - # WAR: otherwise machine is not able to start, why? { tag = "ro-store"; source = "/nix/store";