Virtual Media Failed

Wayne Tung/WYHQ/Wiwynn Wayne_Tung at wiwynn.com
Wed Jul 29 18:10:32 AEST 2020


Hi, all

I met some problems when using virtual media feature in bmcweb UI.
I uploaded an ubuntu image iso file and click start.
And then I got javascript error messages in bmcweb UI.
[cid:image001.png at 01D665C0.D87EC080]

I checked that my kernel enabled USB Gadget Mass Storage and Network Block Device by add this four lines in my kernel config.
CONFIG_USB_SUPPORT=y
CONFIG_USB_GADGET=y
CONFIG_USB_MASS_STORAGE=m
CONFIG_BLK_DEV_NBD=m

There is jsnbd in my system and my system has NBD devices in /dev folder.

I added some debug prints in jsnbd.
After I started virtual media jsnbd received some sock_client events and then received SIGTERM event because of previous error in javascript (invalid option magic) closed the web socket session.

Should jsnbd receive udev events after I start virtual media?

Does anyone have any ideas?


Besides,
I found that there was a virtual_media.hpp implemented in bmcweb and it called some D-Bus method in "xyz.openbmc_project.VirtualMedia".
Was "xyz.openbmc_project.VirtualMedia" implemented?
I couldn't find it in openbmc.

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20200729/e83f999d/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 5546 bytes
Desc: image001.png
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20200729/e83f999d/attachment-0001.png>


More information about the openbmc mailing list