nixos-generators
nixos-generators copied to clipboard
Proxmox VMA can not be deployed
I built an image using this command:
nix --extra-experimental-features nix-command --extra-experimental-features flakes run github:nix-community/nixos-generators -- --format proxmox
after scp'ing the image over and running qmrestore, I get the following error:
root@pve1:/var/lib/vz/dump# qmrestore nixos-24-11.vma.zst 111111
error before or during data restore, some or all disks were not completely restored. VM 111111 state is NOT cleaned up.
ERROR: couldn't determine archive info from '/var/lib/vz/dump/nixos-24-11.vma.zst'
I haven't found a way to get a more verbose error, this is all I have.
Likely needs to be fixed in nixpkgs. nixos-generators is just a thin layer above it: https://github.com/nix-community/nixos-generators/blob/0552f784af9f211481c5dda6df9b918733492826/formats/proxmox.nix#L7
Same problem here and very annoying. Did someone manage to get that problem fixed?
@Gaming4LifeDE Did you manage to fix it meanwhile?
@Gaming4LifeDE Just found the solution in some older issue: the file name needs to start with vzdump-qemu-!
So filenaming convention is vzdump-qemu-whatever.vma.zst. Otherwise the import fails.
Damn I just lost half a day of my life on this frikin issue. 😃
@Gaming4LifeDE Just found the solution in some older issue: the file name needs to start with
vzdump-qemu-! So filenaming convention isvzdump-qemu-whatever.vma.zst. Otherwise the import fails.Damn I just lost half a day of my life on this frikin issue. 😃
This is still the solution, if you encounter this problem.