Set default VM CPU socket number

If I deploy a new VM from template, with for example 8 vCPU, in vCenter it get assigned 2 sockets and 4 cores.
I would like to get it assigned with 1 socket and 8 cores, how can I accomplish this? In addition to that, this should be done without user intervention, user should only choose how many CPU and vCPU the VM will have.

Thanks

can anyone help?

See if the TOPOLOGY attributes help here: http://docs.opennebula.io/5.12/operation/references/template.html#numa-topology-section

Already tested but it does not work. I have added to an existing template the next configuration but when I instantiate a new VM from template and set the number of vCPU it ignores TOPOLOGY section:

CONTEXT = [
  NETWORK = "YES",
  SSH_PUBLIC_KEY = "$USER[SSH_PUBLIC_KEY]" ]
CPU = "4"
DESCRIPTION = "vCenter Template imported by OpenNebula from Cluster cluster-huawei"
DISK = [
  IMAGE_ID = "44",
  OPENNEBULA_MANAGED = "NO" ]
GRAPHICS = [
  LISTEN = "0.0.0.0",
  TYPE = "VNC" ]
HYPERVISOR = "vcenter"
INPUTS_ORDER = ""
LOGO = "images/logos/windows8.png"
MEMORY = "4096"
MEMORY_UNIT_COST = "MB"
NIC = [
  NETWORK_ID = "2",
  OPENNEBULA_MANAGED = "NO" ]
OS = [
  BOOT = "" ]
TOPOLOGY = [
  CORES = "2",
  PIN_POLICY = "NONE",
  SOCKETS = "1",
  THREADS = "2" ]
VCENTER_CCR_REF = "domain-c21"
VCENTER_INSTANCE_ID = "91566694-37a9-4830-8f87-f93f995519f7"
VCENTER_TEMPLATE_REF = "vm-269"
VCENTER_VM_FOLDER = ""
VCPU = "1"

What OpenNebula version are you on?

5.10.0 I’m currently using

That explains it. TOPOLOGY attribute support for vCenter was introduced in later versions.