I check the CPU layout before picking VM settings or a thread count.
lscpu | grep -E 'Model name|Socket|Core|Thread|Virtualization'
lscpu reads the data from /sys and /proc/cpuinfo and summarizes it. Multiply sockets by cores per socket and threads per core to get the logical CPU count. The Virtualization line shows VT-x or AMD-V when the CPU offers it and the firmware has it switched on. Inside a VM the line may be missing, and the core counts show what the hypervisor gives you.
Further reading: lscpu manual page