diff options
author | aszlig <aszlig@redmoonstudios.org> | 2015-09-22 09:24:10 +0200 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2015-09-24 09:16:20 +0200 |
commit | 3e6bb402b18c7b08e85a0468b442c40e4983ab58 (patch) | |
tree | bcce894a4fb26cdda49166ffedaddc0f3b8c3358 | |
parent | 2f3eb5e0eff9958999245fb8ae9f2702480cf6c6 (diff) |
nixos/tests/virtualbox: Give VMs more memory.
We previously had 1024 MB of memory to fit a VirtualBox VM with 512 MB plus the memory needed of the VirtualBox host VM. That obviously won't work for two VirtualBox VMs, which are used for testing networking between two VirtualBox guests. Now, we have 2048 MB on the qemu guest (the VirtualBox host) and 768 MB for each VirtualBox guest. That should be enough to fit in two VirtualBox guests (I hope). Signed-off-by: aszlig <aszlig@redmoonstudios.org>
-rw-r--r-- | nixos/tests/virtualbox.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/tests/virtualbox.nix b/nixos/tests/virtualbox.nix index 728d46d446ea2..a2d33fa328b07 100644 --- a/nixos/tests/virtualbox.nix +++ b/nixos/tests/virtualbox.nix @@ -141,6 +141,7 @@ import ./make-test.nix ({ pkgs, ... }: with pkgs.lib; let vmFlags = mkFlags ([ "--uart1 0x3F8 4" "--uartmode1 client /run/virtualbox-log-${name}.sock" + "--memory 768" ] ++ (attrs.vmFlags or [])); controllerFlags = mkFlags [ @@ -324,7 +325,7 @@ in { mkVMConf = name: val: val.machine // { key = "${name}-config"; }; vmConfigs = mapAttrsToList mkVMConf vboxVMs; in [ ./common/user-account.nix ./common/x11.nix ] ++ vmConfigs; - virtualisation.memorySize = 1024; + virtualisation.memorySize = 2048; virtualisation.virtualbox.host.enable = true; users.extraUsers.alice.extraGroups = let inherit (config.virtualisation.virtualbox.host) enableHardening; |