elitak / nixos-infect

[GPLv3+] install nixos over the existing OS in a DigitalOcean droplet (and others with minor modifications)
GNU General Public License v3.0
1.32k stars 215 forks source link

Add vmw_pvscsi kernel module #115

Closed SuperSandro2000 closed 1 year ago

SuperSandro2000 commented 1 year ago

This is required when infecting VMs based on VMware Paravirtual SCSI on VMware vSphere ESXi hosts

deejayem commented 1 year ago

Could this be the cause of the following error that I'm seeing on Oracle Cloud, with Ubunutu 22.04 (arm)?

building '/nix/store/vfgjygv5rrlsnjv6470b3srmjzcqqxbw-kernel-modules.drv'...
created 4 symlinks in user environment
kernel version is 5.15.76
building '/nix/store/9q76055q37rhfsk78lp0liz70qzhinyw-lessconfig.drv'...
building '/nix/store/4y5c7fjayx70h4vf0sdm14h1pnb8i4h5-linux-5.15.76-modules.drv'...
created 4 symlinks in user environment
kernel version is 5.15.76
building '/nix/store/3k8n6dspzdzm8ljxrvpjhcay00ahgs76-local-cmds.drv'...
building '/nix/store/fw790h4r58ln931xbm4wzdk4rf2rssh7-linux-5.15.76-modules-shrunk.drv'...
kernel version is 5.15.76
root module: virtio_net
builtin dependency: virtio_net
root module: virtio_pci
builtin dependency: virtio_pci
root module: virtio_mmio
builtin dependency: virtio_mmio
root module: virtio_blk
builtin dependency: virtio_blk
root module: virtio_scsi
copying dependency: /nix/store/sx6l9amxccx1hh196gdgyvdicq2vvv7m-linux-5.15.76-modules/lib/modules/5.15.76/kernel/drivers/scsi/virtio_scsi.ko.xz
root module: 9p
builtin dependency: 9p
root module: 9pnet_virtio
builtin dependency: 9pnet_virtio
root module: ata_piix
copying dependency: /nix/store/sx6l9amxccx1hh196gdgyvdicq2vvv7m-linux-5.15.76-modules/lib/modules/5.15.76/kernel/drivers/ata/ata_piix.ko.xz
root module: uhci_hcd
builtin dependency: ehci_pci
copying dependency: /nix/store/sx6l9amxccx1hh196gdgyvdicq2vvv7m-linux-5.15.76-modules/lib/modules/5.15.76/kernel/drivers/usb/host/uhci-hcd.ko.xz
root module: vmw_pvscsi
modprobe: FATAL: Module vmw_pvscsi not found in directory /nix/store/sx6l9amxccx1hh196gdgyvdicq2vvv7m-linux-5.15.76-modules/lib/modules/5.15.76
error: builder for '/nix/store/fw790h4r58ln931xbm4wzdk4rf2rssh7-linux-5.15.76-modules-shrunk.drv' failed with exit code 1
error: 1 dependencies of derivation '/nix/store/5h1i9lx9wxq16zqnxpa0xvms92rf50ws-stage-1-init.sh.drv' failed to build
error: 1 dependencies of derivation '/nix/store/rp9shl1lw9ypc0m3hic5b7bba77004qf-initrd-linux-5.15.76.drv' failed to build
building '/nix/store/gm5pjc49dincywapfgab6xz744dzaf0f-locale.conf.drv'...
error: 1 dependencies of derivation '/nix/store/vhbfyq3wwnrpkn76asb889m6rcdv0vrg-nixos-system-djmuk2-22.11pre423979.3bacde6273b.drv' failed to build
leo60228 commented 1 year ago

Just ran into the same issue as @deejayem.

SuperSandro2000 commented 1 year ago

Looks like it but I don't understand why.

leo60228 commented 1 year ago

Is it possible that the vmw_pvscsi module doesn't exist on aarch64?

SuperSandro2000 commented 1 year ago

That could definitely be the case. I would suggest trying to make it conditional based on arch.

deejayem commented 1 year ago

~I raised https://github.com/elitak/nixos-infect/issues/117 as I still get the error without the change from this PR, so I think it's just a coincidence.~ Edit: I didn't realise I was re-using the config that had already been generated, so my original comment was wrong. This should be fixed by https://github.com/elitak/nixos-infect/pull/118