Skip to contentSkip to conversation

obmc-ikvm host OS console mode issue

DISCUSSION xiuzhi 2 participants 4 messages Feb 19, 2019 – Feb 20, 2019

lore
Share & tools
lore

xiuzhi

author
#0 lore raw

Hi Jae, I updated the obmc-ikvm commit 7dfac9ff2d1569aedf83175fb0427562c2188e63
It caused one issue:
The ikvm only works on linux OS GUI mode,
When I switch to os console mode, the ikvm can't get the host screen. Please check you commit.

Best,
xiuzhi

#1 lore raw

Hi xiuzhi,

I don't think the commit causes the issue. Check aspeed-video driver module in kernel that what happens on video mode change events.

Cheers,
Jae

Quoted 9 lines · xiuzhi

Hi Jae,
   I updated the obmc-ikvm commit 7dfac9ff2d1569aedf83175fb0427562c2188e63 It caused one issue:
The ikvm only works on linux OS GUI mode,
When I switch to os console mode, the ikvm can't get the host screen. Please check you commit.

Best,
xiuzhi

author
#2 lore raw

Hi Jae,
The issue can be reproduced by the following cases:
1) the ikvm engine driver is from
https://lists.ozlabs.org/pipermail/openbmc/2019-January/014523.html
2) ikvm handler patch is from:
https://github.com/Nuvoton-Israel/openbmc/blob/master/meta-evb/meta-evb-nuvoton/meta-evb-npcm750/recipes-phosphor/interfaces/phosphor-rest/0001-add-kvm-handler.patch
3) webui is from
https://gerrit.openbmc-project.xyz/#/c/openbmc/phosphor-webui/+/10268/

Case1, Start the host OS to GUI mode, click the "refresh" Button on https://xxx.xxx.xxx.xxx/#/kvm page.

Case2, switch hostOS to console mode, click the "refresh" Button on https://xxx.xxx.xxx.xxx/#/kvm page.

1,Using obmc-ikvm commit 7dfac9ff2d1569aedf83175fb0427562c2188e63 case1 is OK
case2 refresh page fail, can not get the host screen.

2,Using obmc-ikvm commit
b9c253dca682d01e076ec6240ade2db151aec81a
case1 is OK
case2 is OK

Best,
xiuzhi
------------------ Original ------------------

From:  "jae.hyun.yoo";<[email protected]>;
Date:  Feb 20, 2019
To:  "xiuzhi"<[email protected]>; "openbmc"<[email protected]>; 

Subject: Re: obmc-ikvm host OS console mode issue

Hi xiuzhi,

I don't think the commit causes the issue. Check aspeed-video driver module in kernel that what happens on video mode change events.

Cheers,
Jae

Quoted 9 lines · xiuzhi

Hi Jae,

    I updated the obmc-ikvm commit 7dfac9ff2d1569aedf83175fb0427562c2188e63

It caused one issue:
The ikvm only works on linux OS GUI mode,
When I switch to os console mode, the ikvm can't get the host screen. Please check you commit.

Best,
xiuzhi

#3 lore raw

Hi xiuzhi,

I tested it and checked that kvm through websocket works on both text mode and gui mode of the host. Please find captured image I'm attaching.

As you experienced, current kvm implementation is a bit unstable. In case it doesn't work, restart 'start-ipkvm' service and try again.

# systemctl stop start-ipkvm
# systemctl start start-ipkvm

If the issue is relating to the host wake-up event, please try this:
https://gerrit.openbmc-project.xyz/#/c/openbmc/obmc-ikvm/+/18583/

Since it still needs lots of improvement, your debugging and contribution on this kvm function would be very appreciated.

Thanks,
Jae

Quoted 49 lines · xiuzhi

Hi Jae,
   The issue can be reproduced by the following cases:
1) the ikvm engine driver is from
https://lists.ozlabs.org/pipermail/openbmc/2019-January/014523.html
2) ikvm handler patch is from:
https://github.com/Nuvoton-Israel/openbmc/blob/master/meta-evb/meta-evb-nuvoton/meta-evb-npcm750/recipes-phosphor/interfaces/phosphor-rest/0001-add-kvm-handler.patch
3) webui is from
https://gerrit.openbmc-project.xyz/#/c/openbmc/phosphor-webui/+/10268/

Case1, Start the host OS to GUI mode, click the "refresh" Button on https://xxx.xxx.xxx.xxx/#/kvm page.

Case2,  switch hostOS to console mode, click the "refresh" Button on https://xxx.xxx.xxx.xxx/#/kvm page.

1,Using obmc-ikvm commit 7dfac9ff2d1569aedf83175fb0427562c2188e63 case1 is OK
case2 refresh page fail, can not get the host screen.

2,Using obmc-ikvm commit
 b9c253dca682d01e076ec6240ade2db151aec81a
case1 is OK
case2 is OK

Best,
xiuzhi
------------------ Original ------------------
*From: * "jae.hyun.yoo";<[email protected]>; *Date: * Feb 20, 2019
*To: * "xiuzhi"<[email protected]>; "openbmc"<[email protected]>; *Subject: * Re: obmc-ikvm host OS console mode issue

Hi xiuzhi,

I don't think the commit causes the issue. Check aspeed-video driver module in kernel that what happens on video mode change events.

Cheers,
Jae

Quoted 2 lines · xiuzhi

Hi Jae,
     I updated the obmc-ikvm commit

7dfac9ff2d1569aedf83175fb0427562c2188e63

Quoted 7 lines

   It caused one issue:
The ikvm only works on linux OS GUI mode,
When I switch to os console mode, the ikvm can't get the host screen. Please check you commit.

Best,
xiuzhi