nixpkgs/pkgs/applications/virtualization
aszlig 4c1ddb3a57
qemu: Apply interim fix for overlayfs + O_NOATIME
Our VM tests and everything related to our virtualisation infrastructure
is currently broken if used with kernel 4.19 or later.

The reason for this is that since 4.19, overlayfs uses the O_NOATIME
flag when opening files in lowerdir and this doesn't play nice with the
way we pass the Nix store to our QEMU guests.

On a NixOS system, paths in the Nix store are typically owned by root
but the QEMU process is usually run by an ordinary user. Using O_NOATIME
on a file where you're not the owner (or superuser) will return with
EPERM (Operation not permitted).

This is exactly what happens in our VM tests, because we're using
overlayfs in the guests to allow writes to the store.

Another implication of this is that the default kernel version for NixOS
19.03 has been reverted to Linux 4.14.

Work on getting this upstream is still ongoing and the patch I posted
previously was incomplete, needs rework and also some more review from
upstream maintainers - in summary: This will take a while.

So instead of rushing in a kernel patch to nixpkgs, which will affect
all users of overlayfs, not just NixOS VM tests, I opted to patch QEMU
for now to ignore the O_NOATIME flag in 9p.

I think this is also the least impacting change, because even if you
care about whether access times are written or not, you get the same
behaviour as with Linux 4.19 in conjunction with QEMU.

Signed-off-by: aszlig <aszlig@nix.build>
Fixes: https://github.com/NixOS/nixpkgs/issues/54509
2019-03-18 13:34:30 +01:00
..
8086tiny
aqemu aqemu: init at 0.9.2 2017-02-10 12:48:29 +01:00
bochs treewide: transition mesa to libGLU_combined 2018-02-24 17:06:49 +02:00
cbfstool cbfstool: 4.7 -> 4.9 2019-02-02 23:31:55 +01:00
cntr cntr: init at 1.2.0 2018-10-25 10:19:41 +01:00
containerd containerd: 1.2.4 -> 1.2.5 2019-03-14 17:05:29 +01:00
docker docker: export GOCACHE for all platforms 2019-03-11 09:59:10 -07:00
docker-compose misc: Remove myself from list of maintainers 2019-03-12 23:50:52 +01:00
driver win-spice: add meta.license 2018-11-25 13:57:57 +01:00
dynamips dynamips: 0.2.19 -> 0.2.20 2019-02-20 20:36:39 +01:00
ecs-agent Replace platforms.linux with platforms.darwin for expressions that compile on darwin too (too restrictive platforms) 2019-02-18 10:56:58 +01:00
firecracker firecracker: 0.14.0 -> 0.15.0 2019-02-22 13:23:46 -06:00
lkl lkl: install liblkl.so and liblkl-hijack.so 2019-02-01 23:31:50 -05:00
looking-glass-client looking-glass-client: a11 -> a12 (#52905) 2018-12-29 20:29:22 +01:00
nvidia-docker nvidia-docker: init at 2.0.3 2019-02-27 09:56:03 +01:00
open-vm-tools gnome3: stop using aliases 2019-02-14 02:31:15 +01:00
OVMF OVMF: update homepage 2018-09-18 13:18:41 +02:00
podman podman: 1.1.0 -> 1.1.2 (#56945) 2019-03-08 22:31:58 +01:00
qboot qboot: 20150603 -> 20170330, fix build (#47364) 2018-09-25 22:32:46 +02:00
qemu qemu: Apply interim fix for overlayfs + O_NOATIME 2019-03-18 13:34:30 +01:00
railcar railcar: add reference to upstream patch 2018-12-11 17:37:18 +02:00
remotebox remotebox: 2.5 -> 2.6 2019-01-16 06:13:39 -08:00
rkt go_1_12: init at go 1.12 2019-03-02 14:24:17 -08:00
runc runc: migrate to using buildGoPackage 2018-12-20 10:54:14 +01:00
seabios seabios: 1.9.3 -> 1.11.0 2018-03-04 17:33:29 +00:00
singularity Merge branch 'master' into singularity 2019-02-17 21:49:37 +00:00
spice-vdagent Treewide: use https for www.spice-space.org 2018-11-25 00:01:22 +01:00
tini tini: 0.17.0 -> 0.18.0 2018-04-25 21:45:09 -07:00
tinyemu tinyemu: init at 2018-09-23 2018-10-06 18:53:10 +00:00
virt-manager virtmanager: Fix gobject-introspection (#57385) 2019-03-12 22:29:45 +01:00
virt-top libvirt: 3.10.0 -> 4.1.0 2018-03-08 23:45:28 +00:00
virt-viewer virt-viewer: 7.0 -> 8.0 2019-03-12 02:09:33 -07:00
virt-what virt-what: 1.18 -> 1.19 2018-11-08 07:28:44 -08:00
virtinst pkgs/*: remove unreferenced function arguments 2018-07-21 02:48:04 +00:00
virtualbox virtualbox: 5.2.22 -> 5.2.26 (#56210) 2019-02-22 17:55:47 -08:00
vpcs treewide: Remove usage of remaining redundant platform compatability stuff 2018-08-30 17:20:32 -04:00
x11docker x11docker: v5.4.1 -> v5.4.4 (#56570) 2019-03-04 13:38:19 +01:00
xen Merge pull request #54094 from rnhmjoj/shell 2019-01-19 14:15:51 +01:00
xhyve replace "Mac OS X" and "OS X" with "macOS" 2017-08-07 21:41:30 +02:00