All switches that are interconnected as a virtual chassis are member switches of that virtual chassis. Each virtual chassis has one member that functions as the primary and controls the virtual chassis. When a virtual chassis boots, the JUNOS for EX-series software automatically runs a primary election algorithm to determine which member switch takes the role of primary.
The algorithm that the software uses to determine the primary is as follows: