NixOS does not install on VBox

Hi. I try to install NixOS on VBox to check if it is OS for me. The problem is that I’ve got bunch of errors while nixos-install The errors:

error 9 while decompressing xz file
cannot build derivation '/nix/store/mv1q187lv1xb34ay2vgdj8ln6zflfljh-stage-1-init.sh.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/7g8gj5p8ka2fjmpziri280dh944xkfxq-initrd-linux-5.4.58.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/qszpd4lmrzr82gy57qq6ln6v00gmiksg-nixos-system-nixos-20.03.2791.05195accdc5.drv': 1 dependencies couldn't be built
[0 built (1 failed), 17 copied (1 failed) (216.6 MiB), 1.9/5.6 MiB DL]
error: build of '/nix/store/qszpd4lmrzr82gy57qq6ln6v00gmiksg-nixos-system-nixos-20.03.2791.05195accdc5.drv' failed
  • I did not change config, only generate
  • I have internet connections - ping works
  • In VM Network is set to Bridge Adapter
  • EFI is enable
  • I use the manual from NixOS site

Do you know what I do wrong?

As I asked in the chat already… Is there any output before the error 9 line?

Also on which command does this output happen? And if you already have generated your config, how does it look like?

Error message: https://dpaste.com/F2LA7HZXP
Config https://dpaste.com/7QUGDWXC5

As the error is different this time you posted, and building of other derivations have failed, I’m still suspecting your network or harddrive.

The last time I had different errors because I changed config.
I connected to hotspot from my phone and to wifi, it is two source of “the Internet” :stuck_out_tongue:

This issue has been resolved in Nix 2.3.7, however, you are using an older Nix version. That NixOS revision has 2.3.6.

Edit:

Nevermind, I was reading GitHub incorrectly. This issue is supposedly fixed in 2.3 and up.

OK the problem was with VBox. I downgraded to version 6.0 and now works.