Numa control question

hi,

I have a couple of VMs and containers that are high CPU load. I am wondering, is there a way to pin them to a specific numa node (not specific cores).
For example, I have a VM with 4 CPUs allocated, the problem is that by pinning them to CPU 0 cores 1-4, then those cores are stressed while the others are often idle. Ideally, I would like to set up something like: have this VM use 4 CPU cores from the available 12 in node 0, but cycle around the cores. Currently I see that they are bounced around, but not restricted to a single numa node, but all over. Is there a way to set this up?

Thank you.