3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/nixos/modules/virtualisation
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
..
amazon-image.nix openssh: support prohibit-password for permitRootLogin 2016-10-01 13:23:56 -04:00
amazon-init.nix amazon-init.nix: Use makeBinPath 2016-04-25 16:44:37 +02:00
amazon-options.nix
azure-agent-entropy.patch virtualization/azure: take entropy handling code out of WALA and execute it before SSHD generates the host keys 2016-03-13 13:57:30 +02:00
azure-agent.nix treewide: deprecate ip-up.target (#18319) 2016-09-10 18:03:59 +02:00
azure-bootstrap-blobs.nix add Azure bootstrap blob list 2016-09-15 16:27:47 +03:00
azure-common.nix openssh: support prohibit-password for permitRootLogin 2016-10-01 13:23:56 -04:00
azure-config-user.nix azure-image: provide configuration.nix which allows nixos-rebuild to build a working generation and add helpful comments 2016-03-03 04:03:07 +02:00
azure-config.nix
azure-image.nix treewide: Use correct output in ${config.nix.package}/bin 2016-04-25 16:44:37 +02:00
azure-qemu-220-no-etc-install.patch azure: package qemu @ 2.2.0 2016-02-18 21:08:28 -08:00
brightbox-config.nix
brightbox-image.nix openssh: support prohibit-password for permitRootLogin 2016-10-01 13:23:56 -04:00
container-config.nix audit: Disable in containers 2016-01-26 16:25:40 +01:00
containers.nix container: fix extraVeth submodule usage 2016-10-09 16:02:14 +02:00
docker-image.nix
docker.nix docker module: updates 2016-09-13 12:51:13 +02:00
ec2-amis.nix ec2-amis.nix: Create a "latest" attribute for NixOps 2016-10-03 18:16:34 +02:00
ec2-data.nix ec2-data: ensure providing a SSH host key is actually optional 2016-02-25 20:11:49 -06:00
google-compute-config.nix Work around infinite recursion issue in nixops. 2015-04-29 09:55:20 +00:00
google-compute-image.nix openssh: support prohibit-password for permitRootLogin 2016-10-01 13:23:56 -04:00
grow-partition.nix cloud-utils: 0.27 -> 0.29 2016-11-17 15:15:42 +01:00
libvirtd.nix nixos.libvirtd: fix broken VMs due to emulator path changes 2016-11-03 14:55:44 +01:00
lxc-container.nix
lxc.nix
lxd.nix lxd: pkg.lxd does not point to the binaries 2016-06-19 20:30:36 +01:00
nova-image.nix openssh: support prohibit-password for permitRootLogin 2016-10-01 13:23:56 -04:00
nova.nix multipath_tools: Rename to multipath-tools 2016-01-21 16:18:38 +01:00
openvswitch.nix Add missing 'type', 'defaultText' and 'literalExample' in module definitions 2016-01-17 19:41:23 +01:00
parallels-guest.nix
qemu-vm.nix nixos/tests: Use a patched QEMU for testing 2016-11-17 17:16:16 +01:00
rkt.nix rkt: 0.14.0 -> 0.15.0 2016-01-15 18:09:58 +00:00
virtualbox-guest.nix virtualbox: fix virtualbox guest additions (#16964) 2016-07-19 13:55:44 +02:00
virtualbox-host.nix virtualbox: Split kernel modules into own package 2016-09-13 06:12:38 +02:00
virtualbox-image.nix nixos/virtualbox-image: Fix path to virtualbox 2016-09-13 07:26:59 +02:00
vmware-guest.nix open-vm-tools: fixes host VMware errors 2016-05-05 21:27:54 +01:00
xe-guest-utilities.nix xe-guest-utilities: init at 6.2.0 2016-03-30 09:27:40 -07:00
xen-dom0.nix
xen-domU.nix