Juniper vMX – Error: Insuffecient cores to pin

When starting a Juniper vMX router you may get an error from the vMX.sh script that states “Insuffecient cores to pin” (note the incorrect spelling). The error looks like this:

==================================================
Get Management Address of bond0.51................[OK]
Generate libvirt files............................[Failed]
Insuffecient cores to pin
Log file........................................../dev/null
==================================================
 Aborted!. 1 error(s) and 0 warning(s)
==================================================

You may have over-assigned the number of CPU’s to the vFPC/vCP. Make sure that there is less CPU’s allocated to the two VM’s than the total number of logical CPU’s the host has. I have found that you also must set the number slightly lower as the host requires its own CPU’s so not all cores can be pinned just for the vMX. For a host with 24 logical CPU’s (eg. dual 6 core/12 thread CPU) I recommend these settings:

CONTROL_PLANE:
    vcpus       : 2
....
FORWARDING_PLANE:
    vcpus       : 18
....

If you are also using the vMS-MPC and/or a secondary vRE (control plane) you will need to ensure that the total number of vCPU’s allocated does not exceed the number of logical CPU’s available.

Leave a Reply

Your email address will not be published.