Hide CPU model name

Is there any way to hide full CPU name inside LXD containers ? Something like google is doing on their cloud platform. So when you do cat /proc/cpuinfo for example only “Intel Core Processor Family” or something like that is displayed and not full model name.

For containers, no.

For VMs, in theory, yes, though that kind of masquerading will also reduce the optimizations you’ll get in the VM.

The reason cloud providers do this isn’t to hide the underlying platforms from their users but because they’re actively degrading what features your VM can use so that the VM can be migrated to servers running on older CPUs.