The vmTools in nixpkgs shuts the VM down with poweroff -f, which does not cleanly umount the filesystems. This may lead to filesystem corruption on the newly created image.