* Mark the VM builds as requiring KVM support.

svn path=/nixpkgs/trunk/; revision=23526
This commit is contained in:
Eelco Dolstra 2010-08-29 21:27:06 +00:00
parent 6473176133
commit 3cdc3c4abe

View file

@ -334,6 +334,7 @@ rec {
that allows you to boot into the VM and debug it interactively. */
runInLinuxVM = drv: lib.overrideDerivation drv (attrs: {
requiredSystemFeatures = [ "kvm" ];
builder = "${bash}/bin/sh";
args = ["-e" (vmRunCommand qemuCommandLinux)];
origArgs = attrs.args;
@ -369,6 +370,7 @@ rec {
*/
runInGenericVM = drv: lib.overrideDerivation drv (attrs: {
system = "i686-linux";
requiredSystemFeatures = [ "kvm" ];
builder = "${bash}/bin/sh";
args = ["-e" (vmRunCommand qemuCommandGeneric)];
QEMU_OPTS = "-m ${toString (if attrs ? memSize then attrs.memSize else 256)}";