Nixos-install on virtualbox fails

Disclaimer: I’m super new to nix and nixos. Just playing around with it to learn it a bit.

I’m following along with NixOS - NixOS 21.05 manual using the graphical installer and when I do nixos-install I get this error:

building the configuration in /mnt/etc/nixos/configuration.nix...
/run/current-system/sw/bin/nixos-install: line 107: 1349 Killed
nix build --out-link "$outlink" ==store "$mountPoint" "${extraBuildFlags[@]}" --extra-substituters "$sub" -f '<nixpkgs/nixos>' system -I "nixos-config=$NIXOS_CONFIG" ${verbosity[@]} ${buildLogs}

I’ve haven’t gotten the clipboard working so giving my full configuration.nix is a bit hard… but I haven’t changed a lot, just took the standard and changed the boot.loader.grub.device and boot.initrd.checkJournalingFS like the manual says for virtualbox.

I have no idea what’s wrong. Anyone has some pointers?

I’ve got passed this by giving the VM 2048 RAM and more cpu as well.

1 Like