I found this in the archive of the mailing list:
----------------
Currently kernel headers for default kernels are packaged only for
Fedora VMs (where you ca install it as kernel-devel package). If you
want to build some kernel module on Debian VM, you have those options:
1. Use kernel from Debian repository [1]
2. Extract kernel-devel[2] manually and use --kernelsourcedir option
3. Compile kernel manually
- From the above list, the first option surely works, but will result in
older kernel (currently Debian 8 uses 3.16 kernel). The other options
should also works, but I haven't tried.
[1]
https://www.qubes-os.org/doc/managing-vm-kernel/#tocAnchor-1-1-3
[2]
http://yum.qubes-os.org/r3.1/current/vm/fc23/rpm/kernel-devel-4.1.13-9.pvops.qubes.x86_64.rpm
- --
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
----------------
It was posted by Marek which probably knows best :)