Set primary vm, remove extra ports and plugins from secondary