When following https://docs.ros.org/en/foxy/Tutorials/Miscellaneous/Building-Realtime-rt_preempt-kernel-for-ROS-2.html
I built this in a VM using the Ubuntu ubuntu-20.04.5-desktop-amd64.iso. I needed to provide the VM with 7GB of RAM to avoid OOM (out of memory) errors. I needed to provide it with 60GB of storage space (Ubuntu installation needs short of 7GB and the kernel compilation seems to need over 40GB, plus testing the .deb installation it fills the disk).
39G linux-5.15.73
8.2M linux-headers-5.15.73-rt52_5.15.73-rt52-8_amd64.deb
84M linux-image-5.15.73-rt52_5.15.73-rt52-8_amd64.deb
1.2G linux-image-5.15.73-rt52-dbg_5.15.73-rt52-8_amd64.deb
1.2M linux-libc-dev_5.15.73-rt52-8_amd64.deb