Booting NixOS installation iso fails on hosters qemu kvm virtual machine

Hi, I’m trying to boot the NixOS installation iso on a kvm qemu virtual machine of my hoster of choice. The NixOS 20.03, unstable and self-built master version with the latest linux kernel didn’t work. The screenshots are from the self-built one.

As you can see it doesn’t even show the cdrom. Also I could boot the latest version of ArchLinux without a problem and it also showed a /dev/loop0 device. I already asked my hoster but didn’t get a response until now.

Does anybody have any idea? I can also run some commands if you need more information.

Any help is really appreciated. Btw. I don’t want to lustrate or so.

1 Like

I’d check the output of dmesg and lsblk on ArchLinux live CD.

1 Like

From ArchLinux:

dmesg:

lsblk:
image

lsmod: (maybe it helps)

Module                  Size  Used by
cfg80211              851968  0
rfkill                 28672  2 cfg80211
8021q                  40960  0
garp                   16384  1 8021q
mrp                    20480  1 8021q
stp                    16384  1 garp
llc                    16384  2 stp,garp
intel_rapl_msr         20480  0
intel_rapl_common      28672  1 intel_rapl_msr
kvm_intel             311296  0
kvm                   790528  1 kvm_intel
qxl                    77824  0
iTCO_wdt               16384  0
irqbypass              16384  1 kvm
ttm                   122880  1 qxl
iTCO_vendor_support    16384  1 iTCO_wdt
crct10dif_pclmul       16384  1
ghash_clmulni_intel    16384  0
drm_kms_helper        212992  3 qxl
joydev                 28672  0
mousedev               24576  0
drm                   520192  4 drm_kms_helper,qxl,ttm
psmouse               180224  0
i2c_i801               36864  0
input_leds             16384  0
pcspkr                 16384  0
lpc_ich                28672  0
syscopyarea            16384  1 drm_kms_helper
sysfillrect            16384  1 drm_kms_helper
evdev                  24576  2
sysimgblt              16384  1 drm_kms_helper
fb_sys_fops            16384  1 drm_kms_helper
mac_hid                16384  0
qemu_fw_cfg            20480  0
pkcs8_key_parser       16384  0
ip_tables              36864  0
x_tables               49152  1 ip_tables
overlay               135168  1
squashfs               69632  1
loop                   40960  2
isofs                  49152  1
sr_mod                 28672  1
cdrom                  77824  1 sr_mod
hid_generic            16384  0
usbhid                 65536  0
crc32_pclmul           16384  0
hid                   143360  2 usbhid,hid_generic
crc32c_intel           24576  0
virtio_net             57344  0
virtio_rng             16384  0
net_failover           20480  1 virtio_net
virtio_blk             20480  0
rng_core               16384  1 virtio_rng
failover               16384  1 net_failover
serio_raw              20480  0
virtio_balloon         24576  0
virtio_console         40960  0
atkbd                  36864  0
libps2                 20480  2 atkbd,psmouse
aesni_intel           372736  0
glue_helper            16384  1 aesni_intel
ahci                   40960  0
crypto_simd            16384  1 aesni_intel
libahci                40960  1 ahci
cryptd                 24576  2 crypto_simd,ghash_clmulni_intel
libata                274432  2 libahci,ahci
sym53c8xx              94208  1
scsi_transport_spi     40960  1 sym53c8xx
xhci_pci               20480  0
scsi_mod              249856  4 scsi_transport_spi,sym53c8xx,libata,sr_mod
intel_agp              24576  0
xhci_hcd              282624  1 xhci_pci
virtio_pci             28672  0
intel_gtt              24576  1 intel_agp
agpgart                53248  4 intel_agp,intel_gtt,ttm,drm
i8042                  32768  0
serio                  28672  6 serio_raw,atkbd,psmouse,i8042

I can’t get the network to work on the nixos iso.
lsmod on nixos:

image
image

df -T

/proc/partitions

It may also be possible that ArchLinux and NixOS boot differently as ArchLinux was a provided option and NixOS was a self-uploaded ISO. I previously manually uploaded an ArchLinux iso which worked but the command output in the last post is from the provided one. I can only upload one ISO at once so changing is annoying.

dmesg from NixOS will follow shortly (yeah it’s a video, I’m sorry)

I’m pretty sure that the booting process is different and it’s not actually NixOS’ fault. If you come to the same conclusion I would close this and ask the hoster again.

Maybe it’s also something about the ISO files:

isoinfo -d -J -p -R -i nixos-minimal-20.03.2843.14006b724f3-x86_64-linux.iso 
Setting input-charset to 'UTF-8' from locale.
CD-ROM is in ISO 9660 format
El Torito VD version 1 found, boot catalog is in sector 55

Joliet with UCS level 3 found, Joliet volume descriptor:
System id: 
Volume id: nixos-minimal-20
Volume set id: 
Publisher id: nixos
Data preparer id: XORRISO-1.5.2 2019.10.26.180001, LIBISOBURN-1.5.2, LIBISOFS-1.5.
Application id: nixos
Copyright File id: 
Abstract File id: 
Bibliographic File id: 
Volume set size is: 1
Volume set sequence number is: 1
Logical block size is: 2048
Volume size is: 282112

SUSP signatures version 1 found
Rock Ridge signatures version 1 found
Rock Ridge id 'RRIP_1991A'
Eltorito validation header:
    Hid 1
    Arch 0 (x86)
    ID ''
    Cksum AA 55 OK
    Key 55 AA
    Eltorito defaultboot header:
        Bootid 88 (bootable)
        Boot media 0 (No Emulation Boot)
        Load segment 0
        Sys type 0
        Nsect 4
        Bootoff 5193 20883
isoinfo -d -p -R -i archlinux-2020.08.01-x86_64.iso
Setting input-charset to 'UTF-8' from locale.
CD-ROM is in ISO 9660 format
System id: 
Volume id: ARCH_202008
Volume set id: 
Publisher id: ARCH LINUX <HTTP://WWW.ARCHLINUX.ORG>
Data preparer id: PREPARED BY MKARCHISO
Application id: ARCH LINUX LIVE/RESCUE CD
Copyright File id: 
Abstract File id: 
Bibliographic File id: 
Volume set size is: 1
Volume set sequence number is: 1
Logical block size is: 2048
Volume size is: 343552
El Torito VD version 1 found, boot catalog is in sector 44
NO Joliet present

SUSP signatures version 1 found
Rock Ridge signatures version 1 found
Rock Ridge id 'RRIP_1991A'
Eltorito validation header:
    Hid 1
    Arch 0 (x86)
    ID ''
    Cksum AA 55 OK
    Key 55 AA
    Eltorito defaultboot header:
        Bootid 88 (bootable)
        Boot media 0 (No Emulation Boot)
        Load segment 0
        Sys type 0
        Nsect 4
        Bootoff 802D 32813

Kernel doesn’t detect /dev/sr0 for some reason. You could try building custom iso with boot.initrd.kernelModules = [ "cdrom" "sr_mod" "isofs" ];

You could also boot ArchLinux iso and try installing from kexec image.

1 Like

@misuzu Unfortunately it didn’t work but I decided to switch hosters (also because of other reasons). Thanks for the help and effort!