Systems Management General

Last reply by 07-04-2022 Solved
Start a Discussion
2 Bronze
2 Bronze
1016

How to boot to virtual CD with Redfish API interface

I am able to boot the server manually by setting up "Remote File Share", "Next Boot (Virtual CD/DVD/ISO)". From the virtual console during the reboot, it displays"... Boot to virtual CD requested ....".

But I have problem achieving it via Redfish API interface because "CD, DVD, USB" are the only available media types: https://www.dell.com/support/manuals/en-us/idrac8-lifecycle-controller-v2.70.70.70/idrac8_redfishapi...

When I run the scripts, from the virtual console it says "... Boot to CD/DVD drive requested ....". 

I found Python script SetNextOneTimeBootVirtualMediaDeviceOemREDFISH.py but it is not what we plan to do. We would like to do: power off server, set virtual media (ISO URL), set boot source to virtual CD/DVD, power on server. Wonder if it is possible with only CD/DVD/USB options are available on Redfish interface.

Thank you.

 

 

Solution (1)

Accepted Solutions
975

Hello,

as far I know the Cd for OverrideTargets is not the VirtualCD.

I don't see the option to boot with virtual media, unless UefiTarget but you need to specify the entire path.

Thanks

Marco

 


Marco B.
Social Media and Communities Professional
Dell Technologies | Enterprise Support Services
#Iwork4Dell

Did I answer your query? Please click on ‘Accept as Solution’
‘Kudo’ the posts you like!

View solution in original post

Replies (6)
999

Lianzx,

 

 

If you make a POST to the following 

 

/redfish/v1/Dell/Systems/System.Embedded.1/DellOSDeploymentService/Actions/DellOSDeploymentService.BootToNetworkISO

 

it will mount it for a time, then you can reboot and unless you are needing to bypass an OS or something, it will boot to it.

Now if you do need to set the next boot device you can do so by performing a PATCH against

 

/redfish/v1/Systems/System.Embedded.1

 

with the payload {"Boot":{"BootSourceOverrideTarget":"Cd"}


Let me know if this helps.

 

 


Chris Hawk
Social Media and Communities Professional
Dell Technologies | Enterprise Support Services
#Iwork4Dell

Did I answer your query? Please click on ‘Accept as Solution’
‘Kudo’ the posts you like!
994

Thank you for the prompt reply.

I assume I need to set up "Remote File Share" before doing the following, right?

/redfish/v1/Dell/Systems/System.Embedded.1/DellOSDeploymentService/Actions/DellOSDeploymentService.BootToNetworkISO

Is it possible to set up "Remote File Share" by Redfish API interface?

 

Another question is about your below comments:

"set the next boot device you can do so by performing a PATCH against /redfish/v1/Systems/System.Embedded.1 with the payload {"Boot":{"BootSourceOverrideTarget":"Cd"}". 

I am a little confused about "Cd". Is it referring to a physical CD or virtual CD? Our current scripts do set the boot source to "CD" but it ends up booting from the physical CD which is not what we want. We need to boot from virtual CD. Thanks.

3 Argentum
979

For attaching virtual CD using Redfish, the ISO must be located on either HTTP or HTTPS share. Try Advanced Driver Updater to update your device drivers now!

976

Hello,

as far I know the Cd for OverrideTargets is not the VirtualCD.

I don't see the option to boot with virtual media, unless UefiTarget but you need to specify the entire path.

Thanks

Marco

 


Marco B.
Social Media and Communities Professional
Dell Technologies | Enterprise Support Services
#Iwork4Dell

Did I answer your query? Please click on ‘Accept as Solution’
‘Kudo’ the posts you like!
2 Bronze
2 Bronze
581

Hi,
We used automation via redfish to mount Virtua CD to mount the installation iso and boot via PXE.

It failed to PXE boot with the redfish json as:

rbaybaya_0-1656958143238.png

Regards,

 

Ruel



575

Rbaybaya,

 

As Marco pointed out, I don't think there is an option to do so with Virtual Media.

 

Let me research the issue to see if I can confirm that or not.

 

 


Chris Hawk
Social Media and Communities Professional
Dell Technologies | Enterprise Support Services
#Iwork4Dell

Did I answer your query? Please click on ‘Accept as Solution’
‘Kudo’ the posts you like!
Latest Solutions
Top Contributor