[Nix-dev] problems installing nixos under virtualbox: '/run/user': No such file or directory

Scott Parish srparish at gmail.com
Thu Apr 14 19:20:14 CEST 2016


Repro steps:
+ downloaded nixos-minimal-16.03.581.e409886-x86_64-linux.iso
+ booted off it under virtualbox with 2048G memory, 25G vdi
+ fdisk /dev/sda: partition 1: type 83, 20G; partition 2: type 82, 5G
+ mkfs.ext4 -L nixos /dev/sda1
+ mkswap -L swap /dev/sda2
+ swapon /dev/sda2
+ mount /dev/disk/by-label/nixos /mnt
+ nixos-generate-config --root /mnt
+ edit /mnt/etc/nixos/configuration (Why is nix the first unix I've used to
not ship with a vi by default?!? Luckily I can "nix-shell -p vim", but most
new users will not know this)
++ uncomment: boot.loader.grub.device
++ uncomment: networking.hostName
++ uncomment: networking.wireless.enable
++ set: time.timeZone = "UTC"
+ nixos-install

It fetches a bunch of packages, but always eventually dies with something
like the following:

    building path(s)
`nix/store/akdxwlv4apx39m3invzxwlglk8z27gw2-users-groups.json`
    error: getting status of `/run/user`: No such file or directory

The paths to be fetched leading up to the error don't seem to be consistent
or related. Adding '--show-trace' to nixos-install doesn't seem to add any
additional information.

+ /run/user exists
+ /mnt/run exists
+ /mnt/run/user does not exist
+ /mnt/var/run/user exists
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20160414/d9f8430a/attachment.html 


More information about the nix-dev mailing list