Skip to Main Content
feedback.equinixmetal.com
Status Shipped
Created by Ben White
Created on Jan 5, 2022

enable the "poweroff" command in the iPXE image

This idea was imported from Canny. Originally created by: Peter Howe. The current owner is: Unassigned.

I power-off machines to park them while they are waiting for next steps. Powering them off during the initial custom iPXE script would be most convenient. should be as easy as adding "#define POWEROFF_CMD " to https://github.com/tinkerbell/ipxedust/blob/main/binary/script/ipxe-customizations/common.h see https://ipxe.org/buildcfg/poweroff_cmd for more info
  • Admin
    Ben White
    Reply
    |
    Feb 8, 2023

    This comment was imported from Canny. Originally created by: Marques Johansson with 0 likes.

    Following up a little late here, but this feature was deployed soon after the PR previously mentioned was merged. It is possible to run the following, using the Metal CLI for example, to have a node immediately shutdown upon initial provision: metal device create --operating-system custom_ipxe --userdata $'#!ipxe\necho "shutting off via ipxe userdata"\npoweroff\n' After doing so, the request should be followed with a shutdown API command so that the API status reflects the server status: metal device stop -i $DEVICE_ID

  • Admin
    Ben White
    Reply
    |
    Feb 2, 2022

    This comment was imported from Canny. Originally created by: Marques Johansson with 0 likes.

    I opened a PR at https://github.com/tinkerbell/ipxedust/pull/27

  • Admin
    Ben White
    Reply
    |
    Jan 20, 2022

    This comment was imported from Canny. Originally created by: Marques Johansson with 2 likes.

    It would help some use-cases (including this one) for the Equinix Metal API to discover when a machine has been powered down.

  • +4