2.5. Redfish API를 사용하여 HTTP 호스팅 ISO 이미지에서 부팅
Redfish Baseboard Management Controller(BMC) API를 사용하여 설치한 ISO를 사용하여 네트워크에 호스트를 프로비저닝할 수 있습니다.
이 예제 절차에서는 Dell 서버에서 수행되는 단계를 보여줍니다.
하드웨어와 호환되는 iDRAC의 최신 펌웨어 버전이 있는지 확인하세요. 하드웨어나 펌웨어에 문제가 있는 경우 공급업체에 문의해야 합니다.
사전 요구 사항
- Red Hat Enterprise Linux CoreOS (RHCOS) ISO 설치를 다운로드하세요.
- iDRAC9와 호환되는 Dell PowerEdge 서버를 사용하세요.
프로세스
- 네트워크에서 접근 가능한 HTTP 서버에 ISO 파일을 복사합니다.
예를 들어, 호스팅된 ISO 파일에서 호스트를 부팅합니다.
다음 명령을 실행하여 Redfish API를 호출하여 호스팅된 ISO를
VirtualMedia부팅 미디어로 설정합니다.curl -k -u <bmc_username>:<bmc_password> -d '{"Image":"<hosted_iso_file>", "Inserted": true}' -H "Content-Type: application/json" -X POST <host_bmc_address>/redfish/v1/Managers/iDRAC.Embedded.1/VirtualMedia/CD/Actions/VirtualMedia.InsertMedia$ curl -k -u <bmc_username>:<bmc_password> -d '{"Image":"<hosted_iso_file>", "Inserted": true}' -H "Content-Type: application/json" -X POST <host_bmc_address>/redfish/v1/Managers/iDRAC.Embedded.1/VirtualMedia/CD/Actions/VirtualMedia.InsertMediaCopy to Clipboard Copied! Toggle word wrap Toggle overflow 다음과 같습니다.
- <bmc_username>:<bmc_password>
- 대상 호스트 BMC의 사용자 이름과 비밀번호입니다.
- <hosted_iso_file>
-
호스팅 설치 ISO에 대한 URL입니다(예:
http://webserver.example.com/rhcos-live-minimal.iso). ISO는 대상 호스트 컴퓨터에서 액세스할 수 있어야 합니다. - <host_bmc_address>
- 대상 호스트 머신의 BMC IP 주소입니다.
다음 명령을 실행하여 호스트가
VirtualMedia장치에서 부팅되도록 설정합니다.curl -k -u <bmc_username>:<bmc_password> -X PATCH -H 'Content-Type: application/json' -d '{"Boot": {"BootSourceOverrideTarget": "Cd", "BootSourceOverrideMode": "UEFI", "BootSourceOverrideEnabled": "Once"}}' <host_bmc_address>/redfish/v1/Systems/System.Embedded.1$ curl -k -u <bmc_username>:<bmc_password> -X PATCH -H 'Content-Type: application/json' -d '{"Boot": {"BootSourceOverrideTarget": "Cd", "BootSourceOverrideMode": "UEFI", "BootSourceOverrideEnabled": "Once"}}' <host_bmc_address>/redfish/v1/Systems/System.Embedded.1Copy to Clipboard Copied! Toggle word wrap Toggle overflow 호스트를 재부팅합니다.
curl -k -u <bmc_username>:<bmc_password> -d '{"ResetType": "ForceRestart"}' -H 'Content-type: application/json' -X POST <host_bmc_address>/redfish/v1/Systems/System.Embedded.1/Actions/ComputerSystem.Reset$ curl -k -u <bmc_username>:<bmc_password> -d '{"ResetType": "ForceRestart"}' -H 'Content-type: application/json' -X POST <host_bmc_address>/redfish/v1/Systems/System.Embedded.1/Actions/ComputerSystem.ResetCopy to Clipboard Copied! Toggle word wrap Toggle overflow 선택 사항: 호스트의 전원이 꺼져 있는 경우
{"ResetType": "On"}스위치를 사용하여 부팅할 수 있습니다. 다음 명령을 실행합니다.curl -k -u <bmc_username>:<bmc_password> -d '{"ResetType": "On"}' -H 'Content-type: application/json' -X POST <host_bmc_address>/redfish/v1/Systems/System.Embedded.1/Actions/ComputerSystem.Reset$ curl -k -u <bmc_username>:<bmc_password> -d '{"ResetType": "On"}' -H 'Content-type: application/json' -X POST <host_bmc_address>/redfish/v1/Systems/System.Embedded.1/Actions/ComputerSystem.ResetCopy to Clipboard Copied! Toggle word wrap Toggle overflow