All of lore.kernel.org
 help / color / mirror / Atom feed
* Does obmc-ikvm work with bmcweb?
@ 2019-03-14  2:21 xiuzhi
  2019-03-14 17:53 ` Jae Hyun Yoo
  0 siblings, 1 reply; 28+ messages in thread
From: xiuzhi @ 2019-03-14  2:21 UTC (permalink / raw)
  To: jae.hyun.yoo, openbmc, ed, Eddie James

[-- Attachment #1: Type: text/plain, Size: 1278 bytes --]

Hi Jae, Ed,
    I updated the source to openbmc latest version which uses bmcweb instead of phosphor-rest.
   It seemed that ikvm cannot work on bmcweb.
The websit error:
app.bundle.js:43 Refused to connect to 'wss://192.168.200.132/kvm/0' because it violates the following Content Security Policy directive: "default-src 'self'". Note that 'connect-src' was not explicitly set, so 'default-src' is used as a fallback.
Then I modify the bmcweb file include/security_headers_middleware.hpp L40:
        // The KVM currently needs to load images from base64 encoded strings.
        // img-src 'self' data: is used to allow that.
        // https://stackoverflow.com/questions/18447970/content-security-policy-data-not-working-for-base64-images-in-chrome-28
        res.addHeader("Content-Security-Policy",
                      "default-src 'self'; img-src 'self' data:");

to:
policy-data-not-working-for-base64-images-in-chrome-28
        res.addHeader("Content-Security-Policy",
                      "script-src 'self'; img-src 'self' data:");



The website erro:
"app.bundle.js:43 WebSocket on-error event"
"WebSocket connection to 'wss://192.168.200.132/kvmws' failed: WebSocket opening handshake timed out"
  What is wrong with it?
   Best,
Xiuzhi

[-- Attachment #2: Type: text/html, Size: 1758 bytes --]

^ permalink raw reply	[flat|nested] 28+ messages in thread
* Re: ikvm refresh failed on host screen 1680x1050 resolution
@ 2019-04-30  1:30 xiuzhi
  2019-04-30 17:32 ` Jae Hyun Yoo
  0 siblings, 1 reply; 28+ messages in thread
From: xiuzhi @ 2019-04-30  1:30 UTC (permalink / raw)
  To: jae.hyun.yoo, openbmc, ed, Eddie James

[-- Attachment #1: Type: text/plain, Size: 1167 bytes --]

Hi Jae,
    Did you reproduce the resolution issue? CentOS7 or RedHat7 has this resolution.
  Bets,
Xiuzhi
Hi Jae,
   My host OS is RedHat7. 
Both "Refresh" button on ikvm web Page and "View--Reload This Page" or reload button on chrome browser menu works.
Xiuzhi


------------------ Original ------------------
From:  "jae.hyun.yoo";<jae.hyun.yoo@linux.intel.com>;
Date:  Apr 5, 2019
To:  "xiuzhi"<1450335857@qq.com>; "openbmc"<openbmc@lists.ozlabs.org>; "ed"<ed@tanous.net>; "Eddie James"<eajames@linux.vnet.ibm.com>; 

Subject:  Re: ikvm refresh failed on host screen 1680x1050 resolution



On 4/3/2019 10:21 PM, xiuzhi wrote:
> Hi Jae, Ed,
>      The ikvm screen cann't refresh on ikvm webui screen when setting 
> the host screen resolution to 1680*1050 . I must click the "Refresh" 
> button to get the new host screen.  Other resolutions works very well.
>    Please check it.

Hi Xiuzhi,

I can't see the resolution option in Ubuntu 18.03. What host OS did you
use for the test? Let me clarify one more. Do you mean the "Refresh"
button in KVM web page, or reload button of the web browser?

Thanks,
Jae

> Best,
> xiuzhi

[-- Attachment #2: Type: text/html, Size: 1659 bytes --]

^ permalink raw reply	[flat|nested] 28+ messages in thread

end of thread, other threads:[~2019-04-30 17:32 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-14  2:21 Does obmc-ikvm work with bmcweb? xiuzhi
2019-03-14 17:53 ` Jae Hyun Yoo
2019-03-15  7:18   ` xiuzhi
2019-03-15 17:11     ` Jae Hyun Yoo
2019-03-18  2:25       ` Lei YU
2019-03-18 17:21         ` Jae Hyun Yoo
2019-03-18 17:33           ` Jae Hyun Yoo
2019-03-19  3:05             ` xiuzhi
2019-03-19 18:04               ` Jae Hyun Yoo
2019-03-19  9:22             ` Lei YU
2019-03-19 18:09               ` Jae Hyun Yoo
2019-03-20  5:30                 ` Lei YU
2019-03-20 11:12                   ` Thaju
2019-03-20 17:43                     ` Jae Hyun Yoo
2019-03-21  7:02                       ` Lei YU
2019-03-21 16:19                         ` Jae Hyun Yoo
2019-03-21 16:27                           ` Thaju
2019-03-21 21:31                             ` Jae Hyun Yoo
2019-04-14  7:12                               ` xiuzhi
2019-04-15 19:26                                 ` Jae Hyun Yoo
2019-04-16  1:53                                   ` xiuzhi
2019-03-22  3:34                           ` Lei YU
2019-03-22 15:21                             ` Eddie James
2019-04-04  5:21     ` ikvm refresh failed on host screen 1680x1050 resolution xiuzhi
2019-04-04 17:16       ` Jae Hyun Yoo
2019-04-08  1:14         ` xiuzhi
2019-04-30  1:30 xiuzhi
2019-04-30 17:32 ` Jae Hyun Yoo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.