TLDR; how do I build the kernel that NixOS uses? I’m assuming it’s built using a nixpkg…if so, what’s the attribute path?
I recently installed NixOS on a virtualbox with the minimal CD and was met with a pretty frustrating experience. The Graphics would completely stop working a few seconds into the boot process. I switched to the (nomodeset) option in GRUB which allowed me to boot from the CD and perform the install. The install itself was easy and straightforward. Then after the install I could not boot using the OS installed on the disk…the graphics would just stop, just like when I was booting without the (nomodeset) option from the CD.
After a few hours of triage, I finally tried switching the graphics controller from VMSVGA to VBoxSVGA, and viola, everything started working. I could even boot from the CD without selecting (nomodeset).
I’m pretty surprised that this issue exists today. It prevents you from being able to install NixOS on a default VirtualBox machine, and the fact that graphics stops working makes it very difficult for the typical user to triage.
I’ve had to mess with kernel graphics config in the past and am willing to see if I can fix this issue, but I don’t know how the install image is built and what kernel it uses. I assume that it’s using a kernel from nixpkgs? So if someone can just provide me with the name of the kernel, I can build it and just crack open the iso, install it and test potential fixes. Thanks for any guidance here.
I’m going to jump on this ancient thread to share my own (mostly negative) experiences (although these were with an upgrade to 20.03, rather than a fresh install).
The short of it is: 2 major things are broken (screen dimensions, copy-pasting) which makes this a huge pain. And I haven’t even done a cursory check of other things that might be broken yet. Links below.
It would seem to me that NixOS not working (properly) inside a VirtualBox VM is a huge blocker for further adoption. As per the manual, which states “Installing NixOS into a VirtualBox guest is convenient for users who want to try NixOS without installing it on bare metal.” I find this a pity because I sincerely hope that NixOS will become more successful than it already is. The fact that I’m encountering issues this large 3 months into the release (it’s june now, I’m talking about 20.03) also makes me wonder whether I’m somewhat unique in running NixOS inside VirtualBox (I’d prefer not to be).
Now on the subject of doing a fresh install, I actually kept a log when doing this 3 years ago, and at least at that point in time (17.03) things still worked with the standard ISO. (My notes specifically mention taking the standard ISO rather than the pre-made VirtualBox image)
@vanschelven Did you get the resizing working on macOS and VirtualBox 6.1.6? I know 6.1.6 has that upstream bug.
I downloaded VirtualBox 6.1.6 and guest additions stuff and got the nixos VirtualBox image all setup, and it uses VMSVGA for the graphics controller, but that tiny screen resolution is rough. It’s usable if I set the zoom to like 300%, but yeah…
That post was from 7 months ago. I am sure things have changed in various ways since then.
Also, what I was referring to was a general pattern of instability in VB since version 6. Even a casual review of the bugs/fixes since the release of version 6 will show you how many serious issues have existed and the extended period of time over which they did so.
I am not currently using virtualbox so I cannot speak to the current state of the product right now.