proxmox-nixos icon indicating copy to clipboard operation
proxmox-nixos copied to clipboard

Autostart not working

Open Kraust opened this issue 9 months ago • 1 comments

Autostart VMs on Boot is not working for me. The following error is reported by the console:

zfs error: open3: exec of zpool list -o name -H zfs-1 failed: No such file or directory at /nix/store/1138wihmibq5bndqa10cman77jgwqq65-perl-5.38.2-env/lib/perl5/site_perl/5.38.2/PVE/Tools.pm line 494.

zfs error: open3: exec of zpool list -o name -H zfs-1 failed: No such file or directory at /nix/store/1138wihmibq5bndqa10cman77jgwqq65-perl-5.38.2-env/lib/perl5/site_perl/5.38.2/PVE/Tools.pm line 494.

TASK ERROR: could not activate storage 'zfs-1', zfs error: open3: exec of zpool import -d /dev/disk/by-id/ -o cachefile=none zfs-1 failed: No such file or directory at /nix/store/1138wihmibq5bndqa10cman77jgwqq65-perl-5.38.2-env/lib/perl5/site_perl/5.38.2/PVE/Tools.pm line 494. 

Looks like it's a missing dependency somewhere. When I run the following manually, I get the expected output:

zpool list -o name -H zfs-1

Could also be that the disk isn't available yet. Would need to fiddle around with it some more.

Kraust avatar Feb 10 '25 11:02 Kraust

FYI: This is because it appears Proxmox starts up before my ZFS mounts are visible.

Kraust avatar Apr 17 '25 19:04 Kraust