diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2010-12-06 09:54:08 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2010-12-06 09:54:08 +0000 |
commit | 8e168edebcc829a53401a723d4f106b5f01a17d7 (patch) | |
tree | 858d39872ae9b88b9e1253d701af989ab227a62d /modules/virtualisation/xen-dom0.nix | |
parent | d5fb41795f93127e6d20dac7ee532400e2d5a64d (diff) | |
download | nixpkgs-8e168edebcc829a53401a723d4f106b5f01a17d7.tar nixpkgs-8e168edebcc829a53401a723d4f106b5f01a17d7.tar.gz nixpkgs-8e168edebcc829a53401a723d4f106b5f01a17d7.tar.bz2 nixpkgs-8e168edebcc829a53401a723d4f106b5f01a17d7.tar.lz nixpkgs-8e168edebcc829a53401a723d4f106b5f01a17d7.tar.xz nixpkgs-8e168edebcc829a53401a723d4f106b5f01a17d7.tar.zst nixpkgs-8e168edebcc829a53401a723d4f106b5f01a17d7.zip |
* 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
Diffstat (limited to 'modules/virtualisation/xen-dom0.nix')
-rw-r--r-- | modules/virtualisation/xen-dom0.nix | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/virtualisation/xen-dom0.nix b/modules/virtualisation/xen-dom0.nix index 18fbf7bc62b..7b8c5f3dd90 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"; |