nixos-generators
nixos-generators copied to clipboard
Not able to create an instance on Linode
Every one of the dozens of attempt I made at creating a NixOS instance on Linode failed with similar error messages...
My most recent one was simply generated by this command with no configuration file:
nix run github:nix-community/nixos-generators -- -f linode
And it laid out this result in the web console:
[ 2.220894] Key type encrypted registered
[ 2.441292] PM: Magic number: 7:364:646
[ 2.442597] scsi_host host0: hash matches
[ 2.443652] scsi host0: hash matches
[ 2.444791] printk: console [netcon0] enabled
[ 2.445913] netconsole: network logging started
[ 2.446827] gtp: GTP module loaded (pdp ctx size 104 bytes)
[ 2.448277] RAS: Correctable Errors collector initialized.
[ 2.449592] md: Waiting for all devices to be available before autodetect
[ 2.450650] md: If you don't use raid, use raid=noautodetect
[ 2.451819] md: Autodetecting RAID arrays.
[ 2.452722] md: autorun ...
[ 2.453526] md: ... autorun DONE.
[ 2.574191] EXT4-fs (sda): mounted filesystem with ordered data mode. Quota .
[ 2.575578] VFS: Mounted root (ext4 filesystem) readonly on device 8:0.
[ 2.791465] devtmpfs: mounted
[ 2.795028] Freeing unused decrypted memory: 2036K
[ 2.796239] Freeing unused kernel image (initmem) memory: 2820K
[ 2.796997] Write protecting the kernel read-only data: 40960k
[ 2.798237] Freeing unused kernel image (text/rodata gap) memory: 2024K
[ 2.799230] Freeing unused kernel image (rodata/data gap) memory: 1008K
[ 2.837025] x86/mm: Checked W+X mappings: passed, no W+X pages found.
[ 2.838329] rodata_test: all tests were successful
[ 2.839103] Run /sbin/init as init process
[ 3.054436] Run /etc/init as init process
[ 3.272003] Run /bin/init as init process
[ 3.493499] Run /bin/sh as init process
sh: cannot set terminal process group (-1): Inappropriate ioctl for device
sh: no job control in this shell
sh-5.1#
I also tried to modify the code, as seen in this fork, according to the official documentation with the same result.
Can anybody create a linode instance with the current code? Maybe I'm doing something wrong...
Thank you very much!
I've created my linode nixos image on my local host then uploaded the image to linode.
I'm able to deploy VMs or rebuild VMs using this image.
But, I had to go to Linode -> my-linode -> Configurations -> Edit -> Select a Kernel -> GRUB 2 -> Save Changes
then Boot / Reboot the linode VM with my updated profile, My NixOS Profile – GRUB 2
I have successfully deployed a new VM with it, with no extra configuration, thanks for the help!
Now, how do you rebuild a vm with this thing?