summary refs log tree commit diff
path: root/pkgs/build-support/vm
Commit message (Collapse)AuthorAge
* netcat: make netcat-openbsd the default netcat (#19411)sternenseemann2016-10-30
| | | | | | | The motivation for this change is the following: As gnu-netcat, e. g. does not support ipv6, it is not suitable as default netcat. This commit also fixes all obvious build issues caused by this change.
* Merge staging without python splitting for nowVladimír Čunát2016-10-14
|\ | | | | | | | | The split needs more time to finish rebuilding, but the rest seems OK and there are security fixes.
| * stdenv/stripHash: print to stdout, not to variableProfpatsch2016-10-11
| | | | | | | | | | | | | | | | | | | | `stripHash` documentation states that it prints out the stripped name to the stdout, but the function stored the value in `strippedName` instead. Basically all usages did something like `$(stripHash $foo | echo $strippedName)` which is just braindamaged. Fixed the implementation and all invocations.
* | add docs to docker build functionsAllen Nelson2016-09-29
|/ | | | | | | | | | bring back ls_tar replace goPackages with go don't hardcode /nix/store in vmTools more docs
* debian: 8.5 -> 8.6Eelco Dolstra2016-09-22
|
* runVM: mount devptsNikolay Amiantov2016-09-04
|
* runVM: check exit code before postVM evalNikolay Amiantov2016-09-04
|
* treewide: Use makeBinPathTuomas Tynkkynen2016-08-23
|
* add Fedora 24Domen Kožar2016-08-12
|
* vmTools.runInLinuxImage: add virtio_rng deviceMaarten Hoogendoorn2016-07-31
| | | | | This allows the QEMU VM's to use the /dev/random device, by getting entropy from the host.
* buildInLinuxVM: Workaround bug #16742Tuomas Tynkkynen2016-07-14
| | | | This is blocking the channel update: #16949
* Revert "stdenv: introduce baseHash() to replace stripHash()"zimbatm2016-06-25
| | | | | | Introduced by mistake This reverts commit e71a5cb87841f0af4a2279517b77a9a07ba394c0.
* stdenv: introduce baseHash() to replace stripHash()zimbatm2016-06-25
| | | | | | | | | stripHash uses a global variable to communicate it's computation results, but it's not necessary. You can just pipe to stdout in a subshell. A function mostly behaves like just another command. baseHash() also introduces a suffix-stripping capability since it's something the users of the function tend to use.
* debian: 7.10 -> 7.11, 8.4 -> 8.5Eelco Dolstra2016-06-20
|
* Merge pull request #16180 from zimbatm/shell-escapingzimbatm2016-06-19
|\ | | | | Escape all shell arguments uniformly
| * Escape all shell arguments uniformlyzimbatm2016-06-12
| |
* | Fix hash for Debian 8.4 JessieRob Vermaas2016-06-13
|/ | | | (cherry picked from commit fd60751ce0c85427423b78d8a46c3f78d65bd0e2)
* add CentOS 7.1Domen Kožar2016-05-24
|
* add OpenSuse 13.2Domen Kožar2016-05-24
| | | | | (cherry picked from commit 2cf5dcd99a7d3aac8a39ab98c1738454dfa20bfb) Signed-off-by: Domen Kožar <domen@dev.si>
* debian7: change hash due to 7.10 releaseDomen Kožar2016-05-24
| | | | | (cherry picked from commit 00df301ac2fd1818fa1f96debcee23dbb979834d) Signed-off-by: Domen Kožar <domen@dev.si>
* makeImageFromDebDist: accept additional parameters for vm, as in rpm version.Carles Pagès2016-05-11
|
* vmTools.diskImages: add ubuntu 16.04Domen Kožar2016-04-29
|
* treewide: Replace module_init_tools -> kmodTuomas Tynkkynen2016-04-22
| | | | | The former is deprecated and doesn't handle compressed kernel modules, so all current usages of it are broken.
* Merge branch 'master' into closure-sizeVladimír Čunát2016-04-10
|\ | | | | | | | | | | Comparison to master evaluations on Hydra: - 1255515 for nixos - 1255502 for nixpkgs
| * vmTools: update debian jessie 8.3 -> 8.4Vladimír Čunát2016-04-05
| | | | | | | | Their in-place updates break download hashes...
| * vm: allow overriding QEMU_OPTS / memSize for images.Lluís Batlle i Rossell2016-04-01
| | | | | | | | | | It's nice to be able to create disk images with -smp 4 in qemu.
* | Merge 'staging' into closure-sizeVladimír Čunát2016-04-07
|\| | | | | | | | | | | This is mainly to get the update of bootstrap tools. Otherwise there were mysterious segfaults: https://github.com/NixOS/nixpkgs/pull/7701#issuecomment-203389817
| * Making vm's qemu cache=unsafe. Faster.Lluís Batlle i Rossell2016-03-31
| | | | | | | | I don't think it's unsafe, if it's meant for nix expressions.
| * Making vm's interactive shell handle the terminal well.Lluís Batlle i Rossell2016-03-31
| |
* | Merge branch 'master' into closure-sizeVladimír Čunát2016-04-01
|\| | | | | | | | | Beware that stdenv doesn't build. It seems something more will be needed than just resolution of merge conflicts.
| * Replace references to all-packages.nix, by references to the top-level of ↵Nicolas B. Pierron2016-03-13
| | | | | | | | nixpkgs repository.
* | Merge master into closure-sizeVladimír Čunát2016-03-08
|\| | | | | | | | | The kde-5 stuff still didn't merge well. I hand-fixed what I saw, but there may be more problems.
| * vm/rpm/rpm-closure.pl: make it deterministicLluís Batlle i Rossell2016-03-01
| | | | | | | | | | | | | | | | | | Some recent perl version introduced "keys" to return the keys in random order. As some of the packages are solved by "provides" and based on the order, this randomness affects what packages get into the closure. This problem may be in other nix perl scripts.
| * azure: package qemu @ 2.2.0Cole Mickens2016-02-18
| | | | | | | | | | This commit packages qemu-220. This package is qemu-2.2.0 and is only used with Azure.
* | Merge branch 'master' into closure-sizeVladimír Čunát2016-02-14
|\|
| * debian: 8.2 -> 8.3Eelco Dolstra2016-01-30
| |
* | treewide: Mass replace 'lzma}/bin' to refer the 'bin' outputTuomas Tynkkynen2016-02-01
| |
* | 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.
| * 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>
* | Merge remote-tracking branch 'origin/master' into closure-sizeLuca Bruno2015-11-25
|\|
| * Add Fedora 23Eelco Dolstra2015-11-25
| |
| * Add Ubuntu 15.10Eelco Dolstra2015-11-25
| |
* | 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.
| * vmTools.commonDebPackages: Add "mawk".aszlig2015-10-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | While debugging an issue with running NixOps tests, I found out that the output from debClosureGenerator is not deterministic. The reason behind this is the way how Provides and Replaces fields are handled. I haven't yet found out what's the exact issue, but so far packages "Provides" are more or less picked at random. So, running the NixOps Hetzner tests we get either mawk, original-awk or gawk altering on every invocation. While for the test it isn't poisionous whether wi have mawk or gawk, having original-awk certainly is, because live-build only works with mawk or gawk. The best solution would obviously be to make debClosureGenerator deterministic, but in the case of "Provides: awk", we can safely pick mawk by default, because the latter has a "Priority: required" in its package description. This also has the advantage that we can safely cherry-pick this to release-15.09 because it's very unlikely that we'll break the debClosureGenerator by adding a dependency to commonDebPackages. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
| * debian: Update to 7.9, 8.2Eelco Dolstra2015-10-08
| |
| * Give more memory for the disk image builderEelco Dolstra2015-10-06
| | | | | | | | http://hydra.nixos.org/build/26480662
* | Merge commit staging+systemd into closure-sizeVladimír Čunát2015-10-03
|\| | | | | | | Many non-conflict problems weren't (fully) resolved in this commit yet.
| * Debian: Update to 8.1Eelco Dolstra2015-06-12
| |
| * In VM builds, connect stdin to /dev/nullEelco Dolstra2015-06-04
| | | | | | | | This prevents programs from hanging while trying to read from stdin.
| * Typo fix! s/wheezy/jessie/Benjamin Staffin2015-05-29
| |