about summary refs log tree commit diff
path: root/nixos/modules/virtualisation
Commit message (Collapse)AuthorAge
* Merge recent 'staging' into closure-sizeVladimír Čunát2016-02-03
|\ | | | | | | Let's get rid of those merge conflicts.
| * audit: Disable in containersEelco Dolstra2016-01-26
| | | | | | | | | | | | This barfs: Jan 18 12:46:32 machine 522i0x9l80z7gw56iahxjjsdjp0xi10q-audit-start[506]: The audit system is disabled
| * Merge pull request #12323 from kragniz/rkt-v0.15.0Domen Kožar2016-01-21
| |\ | | | | | | rkt: 0.14.0 -> 0.15.0
| | * rkt: 0.14.0 -> 0.15.0Louis Taylor2016-01-15
| | |
| * | multipath_tools: Rename to multipath-toolsaszlig2016-01-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | See http://nixos.org/nixpkgs/manual/#sec-package-naming I've added an alias for multipath_tools to make sure that we don't break existing configurations referencing the old name. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
| * | If container name is already unique, don't append "-0"Peter Jones2016-01-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When using `--ensure-unique-name`, don't needlessly append `"-0"` if the container name is already unique. This is especially helpful with NixOps since when it deploys to a container it uses `--ensure-unique-name`. This means that the container name will never match the deployment host due to the `"-0"`. Having the container name and the host name match isn't exactly a requirement, but it's nice to have and a small change.
* | | Merge branch 'staging' into closure-sizeVladimír Čunát2016-01-19
|\| |
| * | Add missing 'type', 'defaultText' and 'literalExample' in module definitionsThomas Strobel2016-01-17
| | | | | | | | | | | | | | | | | | - add missing types in module definitions - add missing 'defaultText' in module definitions - wrap example with 'literalExample' where necessary in module definitions
| * | libvirtd service: Move mutable configs to /varTristan Helmich2016-01-15
| |/ | | | | | | | | | | | | | | Modifies libvirt package to search for configs in /var/lib and changes libvirtd service to copy the default configs to the new location. This enables the user to change e.g. the networking configuration with virsh or virt-manager and keep those settings.
| * Revert "nixos/qemu-vm: Disable cache for $NIX_DISK_IMAGE"Domen Kožar2016-01-11
| | | | | | | | | | | | | | | | | | | | This reverts commit 6353f580f90c0fdd2b418fa853a78ec508bda2a5. Unfortunately cache=none doesn't work with all filesystem options. Hydra tests error out with: file system may not support O_DIRECT See http://hydra.nixos.org/build/30323625/
| * azure-image: azure resource manager doesn't base64-encode custom data, ↵Evgeny Egorochkin2016-01-10
| | | | | | | | unlike azure service manager
| * Merge pull request #10996 from oxij/nixos-labelArseniy Seroka2016-01-09
| |\ | | | | | | nixos: introduce system.nixosLabel support
| | * nixos: introduce system.nixosLabel option and use it where appropriateJan Malakhovski2016-01-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Setting nixosVersion to something custom is useful for meaningful GRUB menus and /nix/store paths, but actuallly changing it rebulids the whole system path (because of `nixos-version` script and manual pages). Also, changing it is not a particularly good idea because you can then be differentitated from other NixOS users by a lot of programs that read /etc/os-release. This patch introduces an alternative option that does all you want from nixosVersion, but rebuilds only the very top system level and /etc while using your label in the names of system /nix/store paths, GRUB and other boot loaders' menus, getty greetings and so on.
| * | jobs -> systemd.servicesRobin Gloster2016-01-07
| | |
| * | btrfsProgs -> canonical btrfs-progsTobias Geerinckx-Rice2016-01-03
| | |
* | | Merge branch 'master' into closure-sizeVladimír Čunát2015-12-31
|\| | | | | | | | | | | | | | TODO: there was more significant refactoring of qtbase and plasma 5.5 on master, and I'm deferring pointing to correct outputs to later.
| * | amazon-image: enable configure-from-userdata and the corresponding VM testDan Peebles2015-12-30
| | |
| * | Force rebuild of some corrupted filesEelco Dolstra2015-12-29
| | |
| * | docker module: fix kernel module loadingBenno Fünfstück2015-12-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | The docker module used different code for socket-activated docker daemon than for the non-socket activated daemon. In particular, if the socket-activated daemon is used, then modprobe wasn't set up to be usable and in PATH for the docker daemon, which resulted in a failure to start the daemon with overlayfs as storageDriver if the `overlay` kernel module wasn't already loaded. This commit fixes that bug (which only appears if socket activation is used), and also reduces the duplication between code paths so that it's easier to keep both in sync in future.
| * | azure agent service: provide SSL certificates pathEvgeny Egorochkin2015-12-19
| | |
| * | nixos/qemu-vm: Disable cache for $NIX_DISK_IMAGEaszlig2015-12-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As @domenkozar noted in #10828, cache=writeback seems to do more harm than good: https://github.com/NixOS/nixpkgs/issues/10828#issuecomment-164426821 He has tested it using the openstack NixOS tests and found that cache=none significantly improves startup performance. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
| * | nixos/vm-tests: Remove msize mount optionaszlig2015-12-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This seems to be the root cause of the random page allocation failures and @wizeman did a very good job on not only finding the root problem but also giving a detailed explanation of it in #10828. Here is an excerpt: The problem here is that the kernel is trying to allocate a contiguous section of 2^7=128 pages, which is 512 KB. This is way too much: kernel pages tend to get fragmented over time and kernel developers often go to great lengths to try allocating at most only 1 contiguous page at a time whenever they can. From the error message, it looks like the culprit is unionfs, but this is misleading: unionfs is the name of the userspace process that was running when the system ran out of memory, but it wasn't unionfs who was allocating the memory: it was the kernel; specifically it was the v9fs_dir_readdir_dotl() function, which is the code for handling the readdir() function in the 9p filesystem (the filesystem that is used to share a directory structure between a qemu host and its VM). If you look at the code, here's what it's doing at the moment it tries to allocate memory: buflen = fid->clnt->msize - P9_IOHDRSZ; rdir = v9fs_alloc_rdir_buf(file, buflen); If you look into v9fs_alloc_rdir_buf(), you will see that it will try to allocate a contiguous buffer of memory (using kzalloc(), which is a wrapper around kmalloc()) of size buflen + 8 bytes or so. So in reality, this code actually allocates a buffer of size proportional to fid->clnt->msize. What is this msize? If you follow the definition of the structures, you will see that it's the negotiated buffer transfer size between 9p client and 9p server. On the client side, it can be controlled with the msize mount option. What this all means is that, the reason for running out of memory is that the code (which we can't easily change) tries to allocate a contiguous buffer of size more or less equal to "negotiated 9p protocol buffer size", which seems to be way too big (in our NixOS tests, at least). After that initial finding, @lethalman tested the gnome3 gdm test without setting the msize parameter at all and it seems to have resolved the problem. The reason why I'm committing this without testing against all of the NixOS VM test is basically that I think we can only go better but not worse than the current state. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
| * | virtualisation.qemu.options: specify typeDomen Kožar2015-12-13
| | |
* | | Merge branch 'master' into closure-sizeLuca Bruno2015-12-11
|\| |
| * | Merge pull request #11565 from jgillich/rktArseniy Seroka2015-12-11
| |\ \ | | | | | | | | rkt: add service
| | * | rkt: add serviceJakob Gillich2015-12-11
| | | |
| * | | Azure image: update ssh key type, start before the Azure agentEvgeny Egorochkin2015-12-09
| | | |
| * | | Azure image: package and add azure agentEvgeny Egorochkin2015-12-09
| |/ /
| * | nova-image: don't use ec2-data since it delays the bootup timeDomen Kožar2015-12-03
| | |
* | | Merge branch 'master' into closure-sizeLuca Bruno2015-11-29
|\| |
| * | Merge pull request #7993 from wavewave/extra-bindslethalman2015-11-29
| |\ \ | | | | | | | | nixos-container: support user-defined extra binds
| | * \ Merge branch 'master' into extra-bindsIan-Woo Kim2015-09-28
| | |\ \
| | * | | minor changesIan-Woo Kim2015-09-28
| | | | |
| | * | | nixos-containers: bindMounts: change default to readOnly. use EXTRA_NSPAWN_FLAGSIan-Woo Kim2015-05-26
| | | | |
| | * | | nixos-container: rename extraBinds to bindMounts and use attribute set format.Ian-Woo Kim2015-05-26
| | | | |
| | * | | unify extraBindsRW/RO into extraBinds. Now arbitrary mount point is supported.Ian-Woo Kim2015-05-25
| | | | |
| | * | | extraBindsRO/extraBindsRWIan-Woo Kim2015-05-24
| | | | |
* | | | | Merge remote-tracking branch 'origin/master' into closure-sizeLuca Bruno2015-11-25
|\| | | |
| * | | | nixos/docker: enable socketActivation by defaultLuca Bruno2015-11-20
| | |_|/ | |/| |
* | | | Merge staging into closure-sizeVladimír Čunát2015-11-20
|\| | | | | | | | | | | | | | | | | | | | | | | The most complex problems were from dealing with switches reverted in the meantime (gcc5, gmp6, ncurses6). It's likely that darwin is (still) broken nontrivially.
| * | | virtualbox service: hide vboxnet0 from NetworkManager, fixes #10862Tomasz Kontusz2015-11-10
| | | |
| * | | nova-image: use make-disk-image.nixDomen Kožar2015-10-26
| | | |
| * | | nixos/docker: default storageDriver to "devicemapper"Bjørn Forsman2015-10-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit 9bfe92ecee ("docker: Minor improvements, fix failing test") added the services.docker.storageDriver option, made it mandatory but didn't give it a default value. This results in an ugly traceback when users enable docker, if they don't pay enough attention to also set the storageDriver option. (An attempt was made to add an assertion, but it didn't work, possibly because of how "mkMerge" works.) The arguments against a default value were that the optimal value depends on the filesystem on the host. This is, AFAICT, only in part true. (It seems some backends are filesystem agnostic.) Also, docker itself uses a default storage driver, "devicemapper", when no --storage-driver=x options are given. Hence, we use the same value as default. Add a FIXME comment that 'devicemapper' breaks NixOS VM tests (for yet unknown reasons), so we still run those with the 'overlay' driver. Closes #10100 and #10217.
| * | | nixos/modules: simplify pkgs.zfs handlingBjørn Forsman2015-10-04
| | | | | | | | | | | | | | | | Thanks, @lethalman.
| * | | nixos/docker: Include ZFS commands in PATH for ZFS storagedriverCasey Ransom2015-10-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When using the ZFS storagedriver in docker, it shells out for the ZFS commands. The path configuration for the systemd task does not include ZFS, so if the driver is set to ZFS, add ZFS utilities to the PATH. This will resolve https://github.com/NixOS/nixpkgs/issues/10127 [Bjørn: prefix commit message with "nixos/docker:", remove extra space before ';']
* | | | nixos/virtualbox-guest: Reference correct output of xorgserverTuomas Tynkkynen2015-10-28
|/ / /
* | | Blacklist the xen_fbfront kernel moduleEelco Dolstra2015-09-28
| | | | | | | | | | | | | | | This gets rid of a 30 second delay during boot. See e.g https://github.com/coreos/bugs/issues/208.
* | | Wait for udev after resizing partitionsEelco Dolstra2015-09-28
| | | | | | | | | | | | Otherwise the EC2 boot may panic.
* | | Use make-disk-image.nix for VirtualBox imagesEelco Dolstra2015-09-28
| | |
* | | Fix GRUB syntax in EC2 HVM imagesEelco Dolstra2015-09-28
| | | | | | | | | | | | | | | There is no "root" command in GRUB 2, and it's not needed anyway. This command delayed HVM boots for a few seconds.