We are also not seeing the XGE ports when issuing a "show chassis hardware" command at the CLI:
Routing Engine 0 REV 23 750-054758 CARZ6623 RE-S-2X00x6
Routing Engine 1 REV 17 750-054758 CALG2331 RE-S-2X00x6
CB 0 REV 09 750-062572 CAKS2725 Enhanced MX SCB 2
CB 1 REV 12 750-062572 CALD2220 Enhanced MX SCB 2
FPC 1 REV 11 750-063181 CAKW4096 MPC3E NG PQ & Flex Q
CPU REV 13 711-045719 CAKS6915 RMPC PMB
The XGE ports are used only for a feature called node slicing, and what happened is that the MX240 does not support that feature. It works just for platforms like MX480 and MX960.
Please refer to the following links:
https://www.juniper.net/documentation/us/en/software/junos/node-slicing/topics/topic-map/junos-node-slicing-prepare-for-setup-topic-map.html#id-connecting-the-servers-and-the-router
https://apps.juniper.net/feature-explorer/parent-feature-info.html?pFKey=1013&pFName=Junos+node+slicing
Setting Up Junos Node Slicing | Junos OS | Juniper Networks
Also note, node slicing with External Server Model must be configured, with:
set chassis network-slicesor set chassis network-slices guest-network-functions
commit
Then the XGE ports will come up.