nixpkgs/pkgs/applications/virtualization
aszlig 6cfb3b6364
nixos/tests: Use a patched QEMU for testing
The reason to patch QEMU is that with latest Nix, tests like "printing"
or "misc" fail because they expect the store paths to be owned by uid 0
and gid 0.

Starting with NixOS/nix@5e51ffb1c2, Nix
builds inside of a new user namespace. Unfortunately this also means
that bind-mounted store paths that are part of the derivation's inputs
are no longer owned by uid 0 and gid 0 but by uid 65534 and gid 65534.

This in turn causes things like sudo or cups to fail with errors about
insecure file permissions.

So in order to avoid that, let's make sure the VM always gets files
owned by uid 0 and gid 0 and does a no-op when doing a chmod on a store
path.

In addition, this adds a virtualisation.qemu.program option so that we
can make sure that we only use the patched version if we're *really*
running NixOS VM tests (that is, whenever we have imported
test-instrumentation.nix).

Tested against the "misc" and "printing" tests.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2016-11-17 17:16:16 +01:00
..
8086tiny Small style fixups 2014-09-10 21:34:50 -03:00
bochs treewide: explicitly specify gtk and related package versions 2016-09-12 18:26:06 +03:00
cbfstool cbfstool: git-2015-07-09 -> 4.5 2016-10-22 21:07:33 +03:00
containerd containerd: init at 0.2.3 2016-09-12 01:32:03 +02:00
docker docker: 1.12.2 -> 1.12.3 2016-10-27 12:46:04 -04:00
docker-distribution docker-distribution: init at 2.5.1 2016-10-12 14:05:09 +02:00
driver Virtualization: add XEN/KVM related drivers for Windows 2015-07-04 00:14:05 +02:00
open-vm-tools open-vm-tools: use makeBinPath 2016-08-23 04:32:21 +03:00
openstack openstack: use python2 2016-10-22 16:47:22 +02:00
OVMF Use general hardening flag toggle lists 2016-03-05 18:55:26 +01:00
qboot qboot: turn off stackprotector and pic hardening 2016-04-03 11:41:30 +00:00
qemu nixos/tests: Use a patched QEMU for testing 2016-11-17 17:16:16 +01:00
rancher-compose rancher-compose: set version during build 2016-10-22 14:40:30 +02:00
remotebox remotebox: 2.1 -> 2.2 2016-11-09 02:24:46 +01:00
rkt rkt: 1.18.0 -> 1.19.0 2016-11-10 21:06:20 -05:00
runc runc: init at 2016-06-15 2016-09-12 01:32:02 +02:00
seabios Merge remote-tracking branch 'upstream/master' into hardened-stdenv 2016-08-03 13:34:44 +00:00
singularity singularity: init 2.2 2016-11-15 09:11:53 +11:00
spice-vdagent spice-vdagent: 0.16.0 -> 0.17.0 2016-09-26 08:20:04 -04:00
tini tini: fix build 2016-08-13 14:23:20 +08:00
virt-manager Python: more evaluation fixups. 2016-10-14 00:03:12 +02:00
virt-viewer virt-viewer: fix build and clean up 2015-12-28 21:44:12 +00:00
virtinst Python: more evaluation fixups. 2016-10-14 00:03:12 +02:00
virtualbox virtualbox: 5.1.6 -> 5.1.8 for many CVEs: 2016-10-26 22:18:00 -04:00
xen xen: use python2 2016-10-22 16:47:21 +02:00
xhyve Transformed meta.maintainers attributes to lists 2015-09-17 15:33:36 +02:00