I’m currently trying to deploy a VM on a Proxmox server using NixOS.
As recommended in the wiki, I attempted to build a .vma
file using nixos-generators, but it always fails with a core dump.
While debugging, I came across this well-documented GitHub project with a minimal example. However, it fails for me in the same way:
git clone https://github.com/liberodark/nixos-deploy && cd nixos-deploy
nix run github:nix-community/nixos-generators -- --format proxmox \
--configuration vm-config.nix
last 25 log lines:
> starting stage 2 (/nix/store/jhsb8pg2wk04fcqmv7qqdw0m29r4cjd2-vm-run-stage2)
> tune2fs 1.47.1 (20-May-2024)
> Setting maximal mount count to -1
> Setting interval between checks to 0 seconds
> Setting time filesystem last checked to Thu Jan 30 20:00:09 2025
>
> setting up /etc...
> updating GRUB 2 menu...
> installing the GRUB 2 boot loader on /dev/vda...
> Installing for i386-pc platform.
> Installation finished. No error reported.
> tune2fs 1.47.1 (20-May-2024)
> Setting maximal mount count to -1
> Setting interval between checks to 0 seconds
> Setting time filesystem last checked to Thu Jan 30 20:00:10 2025
>
> tune2fs 1.47.1 (20-May-2024)
> Setting time filesystem last checked to Thu Jan 1 00:00:00 1970
>
> [ 4.067218] reboot: Power down
> [2025-01-30T20:00:13Z INFO virtiofsd] Client disconnected, shutting down
> [2025-01-30T20:00:13Z INFO virtiofsd] Client disconnected, shutting down
> vma: warning: vma_writer_close failed vma_queue_write: write error - Invalid argument
> vma: creating vma archive failed
> /nix/store/7m4wb1fndpi74pabqqgjiw3fqlbv03ki-vm-run: line 65: 1892 Trace/breakpoint trap (core dumped) /nix/store/cz6zvwivmkg5rkqq5zxaclwfl16pj7vp-qemu-host-cpu-only-9.0.0/bin/vma create "vzdump-qemu-nixos-25.05pre-git.vma" -c /nix/store/1wqfhmdn7hggsicznkj8163chs40y91y-qemu-server.conf/qemu-server.conf drive-virtio0=$diskImage
For full logs, run 'nix log /nix/store/i1466yc1zb0sf681gx6lg5ff9n59wbqh-proxmox-nixos-25.05pre-git.drv'.
Does anyone have an idea what might be causing this?