From 8e168edebcc829a53401a723d4f106b5f01a17d7 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 6 Dec 2010 09:54:08 +0000 Subject: [PATCH] * Increase the number of loopback devices from the default (8), which is way too small because every VM virtual disk requires a loopback device. svn path=/nixos/trunk/; revision=24988 --- modules/virtualisation/xen-dom0.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/virtualisation/xen-dom0.nix b/modules/virtualisation/xen-dom0.nix index 18fbf7bc62b2..7b8c5f3dd90b 100644 --- a/modules/virtualisation/xen-dom0.nix +++ b/modules/virtualisation/xen-dom0.nix @@ -79,6 +79,14 @@ in # as it's loaded, so don't load it. boot.blacklistedKernelModules = [ "radeonfb" ]; + # Increase the number of loopback devices from the default (8), + # which is way too small because every VM virtual disk requires a + # loopback device. + boot.extraModprobeConfig = + '' + options loop max_loop=64 + ''; + virtualisation.xen.bootParams = [ "loglvl=all" "guest_loglvl=all" ] ++ optional (cfg.domain0MemorySize != 0) "dom0_mem=${toString cfg.domain0MemorySize}M";