Start a Conversation

Solved!

Go to Solution

1 Rookie

 • 

4 Posts

53

March 14th, 2024 17:49

Can't attach CD and RemovableDisk simultaneously through the Redfish API but work through the Web UI

I try to attach an Ubuntu ISO on the virtual CD and a cloud-init configuration IMG on the Virtual USB. It works when using the virtual console (through the iDRAC web UI) but it doesn't when I call the redfish API. The 1st I insert gets inserted, the 2nd one always gets refused (virtual media already attached). It doesn't matter which one I try to attach 1st.

Any idea what I do wrong?

Eric

Moderator

 • 

8.6K Posts

March 14th, 2024 19:35

EricEajks,

Could you confirm if you are using the following command?

/redfish/v1/Systems/System.Embedded.1/VirtualMedia/1/Actions/VirtualMedia.InsertMedia

If so then it may just be a command issue, as two mages are allowed now but you have to make a different call for the 2nd one. 

The command to connect the second one would be as follows

/redfish/v1/Systems/System.Embedded.1/VirtualMedia/2/Actions/VirtualMedia.InsertMedia

The reason this is the case is you can't use 1 twice.

Let me know if this helps.

1 Rookie

 • 

4 Posts

March 15th, 2024 06:35

Hi Chris,

Thanks for your help, it seems that I now understand why it worked a couple of weeks ago and no longer now.

Currently I use:

/Managers/iDRAC.Embedded.1/VirtualMedia/CD/Actions/VirtualMedia.InsertMedia
/Managers/iDRAC.Embedded.1/VirtualMedia/RemovableDisk/Actions/VirtualMedia.InsertMedia

A couple of weeks ago I probably used

/redfish/v1/Systems/System.Embedded.1/VirtualMedia/1/Actions/VirtualMedia.InsertMedia

/redfish/v1/Systems/System.Embedded.1/VirtualMedia/2/Actions/VirtualMedia.InsertMedia

because I remember that I have already succeeded once with attaching simultaneously CD and RemovableMedia and that I had to change CD for 1 and RemovableDisk for 2. I couldn't reproduce it but now I understand why. Yesterday I remember this strange CD-1 and RemovableDisk-2 issue but I didn't think about the possibility that there could be two different redfish URLs. Do you know what the difference is between both?

I'll give it a try.

No Events found!

Top