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

Proxmox VMA can not be deployed

Open skutter-de opened this issue 1 year ago • 4 comments

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.

skutter-de avatar Aug 24 '24 11:08 skutter-de

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

Mic92 avatar Aug 25 '24 09:08 Mic92

Same problem here and very annoying. Did someone manage to get that problem fixed?

@Gaming4LifeDE Did you manage to fix it meanwhile?

max-pfeiffer avatar Sep 22 '24 08:09 max-pfeiffer

@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. 😃

max-pfeiffer avatar Sep 22 '24 08:09 max-pfeiffer

@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. 😃

This is still the solution, if you encounter this problem.

mbinns avatar Nov 16 '25 01:11 mbinns