Skip to contentSkip to conversation

obmc-ikvm host OS console mode issue

DISCUSSION xiuzhi 2 participants 6 messages Feb 21, 2019 – Feb 25, 2019

lore
Share & tools
lore

xiuzhi

author
#0 lore raw

Hi Joe,
It did work on EFI BIOS shell mode and OS GUI mode as your screenshots. It will fail on host OS console mode.
Please press "Ctrl+Alt+F2" to switch to OS console as the attachment screenshot , then click the "Refresh" button, the issue will be reproduced.
I updated the source https://gerrit.openbmc-project.xyz/#/c/openbmc/obmc-ikvm/+/18583/
The ikvm window is black screen when the host OS screen start dormancy or no LCD monitor device available .
My BMC hardware is Ast2500.
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 51 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

#1 lore raw

Hi xuizhi,

Virtual terminal also works. I used 'sudo chvt 2' instead of using 'Ctrl+Alt+F2' because I couldn't send the hot key through webui kvm. Also, instead of clicking the 'refresh' button, I changed web page to the 'Server overview' page and changed it back to 'Server control -> KVM' page. It works well.

IMHO, you might want check the 'refresh' button handling logic in webui implementation. Actually, the 'refresh' button is for system info update, not for kvm screen update, anyways.

Cheers,
Jae

Quoted 83 lines · xiuzhi

Hi Joe,
      It did work on EFI BIOS shell mode and OS GUI mode as your
screenshots.  It will fail on host OS console mode.
Please press "Ctrl+Alt+F2" to switch to OS console as the attachment screenshot , then click the "Refresh" button, the issue will be reproduced.
   I updated the source
https://gerrit.openbmc-project.xyz/#/c/openbmc/obmc-ikvm/+/18583/
  The ikvm window is black screen when the host OS screen start
dormancy or no LCD monitor device available .
  My BMC hardware is Ast2500.
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 6 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

Quoted 45 lines

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

On 2/19/2019 12:26 AM, xiuzhi wrote:
  > 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,
I am afraid that this "Refresh" issue is related to the libvncserver. Would you like to tell me your libnvcserver commit number?

Best,
xiuzhi

Hi xuizhi,

Virtual terminal also works. I used 'sudo chvt 2' instead of using 'Ctrl+Alt+F2' because I couldn't send the hot key through webui kvm. Also, instead of clicking the 'refresh' button, I changed web page to the 'Server overview' page and changed it back to 'Server control -> KVM' page. It works well.

IMHO, you might want check the 'refresh' button handling logic in webui implementation. Actually, the 'refresh' button is for system info update, not for kvm screen update, anyways.

Cheers,
Jae

Quoted 84 lines · xiuzhi

Hi Joe,
It did work on EFI BIOS shell mode and OS GUI mode as your
screenshots. It will fail on host OS console mode.
Please press "Ctrl+Alt+F2" to switch to OS console as the attachment screenshot , then click the "Refresh" button, the issue will be reproduced.
I updated the source
https://gerrit.openbmc-project.xyz/#/c/openbmc/obmc-ikvm/+/18583/
The ikvm window is black screen when the host OS screen start
dormancy or no LCD monitor device available .
My BMC hardware is Ast2500.
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 6 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

Quoted 45 lines

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

#3 lore raw

Hi xuizhi,

I pinned libvncserver at commit aa8a1aa76880ffb8f23b98d0dbe35988b2609877

Best,
Jae

Quoted 111 lines · xiuzhi

Hi Jae,
  I am afraid that this "Refresh" issue is related to the libvncserver. Would you like to tell me your libnvcserver commit number?
Best,
xiuzhi

Hi xuizhi,

Virtual terminal also works. I used 'sudo chvt 2' instead of using 'Ctrl+Alt+F2' because I couldn't send the hot key through webui kvm. Also, instead of clicking the 'refresh' button, I changed web page to the 'Server overview' page and changed it back to 'Server control -> KVM' page. It works well.

IMHO, you might want check the 'refresh' button handling logic in webui implementation. Actually, the 'refresh' button is for system info update, not for kvm screen update, anyways.

Cheers,
Jae

Quoted 5 lines · xiuzhi

Hi Joe,
        It did work on EFI BIOS shell mode and OS GUI mode as your screenshots.  It will fail on host OS console mode. Please press "Ctrl+Alt+F2" to switch to OS console as the attachment screenshot , then click the "Refresh" button, the issue will be

reproduced.

Quoted 25 lines

     I updated the source
https://gerrit.openbmc-project.xyz/#/c/openbmc/obmc-ikvm/+/18583/
    The ikvm window is black screen when the host OS screen start dormancy or no LCD monitor device available .
    My BMC hardware is Ast2500.
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 8 lines

On 2/19/2019 6:01 PM, xiuzhi wrote:
  > 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

Quoted 16 lines

  > 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

Quoted 8 lines

  > case2 is OK
  >
  > Best,
  > xiuzhi
  > ------------------ Original ------------------ > *From: * "jae.hyun.yoo";<[email protected]>; > *Date: * Feb 20, 2019
  > *To: * "xiuzhi"<[email protected]>;

"openbmc"<[email protected]>;

Quoted 9 lines

  > *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 8 lines

  >
  > On 2/19/2019 12:26 AM, xiuzhi wrote:
  >  > 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.

Quoted 5 lines

  >  > Please check you commit.
  >  >
  >  > Best,
  >  > xiuzhi

#4 lore raw

Tested it using the latest libvncserver too. Works well.

SRC_URI = "git://github.com/LibVNC/libvncserver" SRCREV = "3348a7e42e86dfb98dd7458ad29def476cf6096f"

Cheers,
Jae

Quoted 117 lines · Jae Hyun Yoo

Hi xuizhi,

I pinned libvncserver at commit aa8a1aa76880ffb8f23b98d0dbe35988b2609877

Best,
Jae

Quoted 108 lines · xiuzhi

Hi Jae,
   I am afraid that this "Refresh" issue is related to the libvncserver. Would you like to tell me your libnvcserver commit number? Best,
xiuzhi

Hi xuizhi,

Virtual terminal also works. I used 'sudo chvt 2' instead of using 'Ctrl+Alt+F2' because I couldn't send the hot key through webui kvm. Also, instead of clicking the 'refresh' button, I changed web page to the 'Server overview' page and changed it back to 'Server control -> KVM' page. It works well.

IMHO, you might want check the 'refresh' button handling logic in webui implementation. Actually, the 'refresh' button is for system info update, not for kvm screen update, anyways.

Cheers,
Jae

On 2/20/2019 10:27 PM, xiuzhi wrote:
 > Hi Joe,
 >        It did work on EFI BIOS shell mode and OS GUI mode as your
 > screenshots.  It will fail on host OS console mode.
 > Please press "Ctrl+Alt+F2" to switch to OS console as the attachment
 > screenshot , then click the "Refresh" button, the issue will be reproduced.
 >     I updated the source
 > https://gerrit.openbmc-project.xyz/#/c/openbmc/obmc-ikvm/+/18583/
 >    The ikvm window is black screen when the host OS screen start
 > dormancy or no LCD monitor device available .
 >    My BMC hardware is Ast2500.
 > 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
 >
 >
 > On 2/19/2019 6:01 PM, xiuzhi wrote:
 >  > 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
 >  >
 >  > On 2/19/2019 12:26 AM, xiuzhi wrote:
 >  >  > 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
#5 lore raw

Hi Jae,
The issue is still exist in my testing environment.
The obmc-ikvm logs of command "systemctl status start-ipkvm.service" are:
log1, works on OS GUI :
start-ipkvm.service - OpenBMC ipKVM daemon
Loaded: loaded (/lib/systemd/system/start-ipkvm.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2018-12-11 16:37:52 CST; 2 months 13 days ago
Process: 1160 ExecStartPre=/usr/bin/create_usbhid.sh (code=exited, status=0/SUCCESS)
Main PID: 1226 (obmc-ikvm)
CGroup: /system.slice/start-ipkvm.service

           └─1226 obmc-ikvm -v /dev/video0 -k /dev/hidg0 -p /dev/hidg1
Feb 24 11:15:34 haiguang1 obmc-ikvm[1226]: 24/02/2019 11:15:34 Using JPEG subsampling 0, Q79 for client 127.0.0.1
Feb 24 11:15:34 haiguang1 obmc-ikvm[1226]: 24/02/2019 11:15:34 Using compression level 2 for client 127.0.0.1
Feb 24 11:15:34 haiguang1 obmc-ikvm[1226]: 24/02/2019 11:15:34 Enabling NewFBSize protocol extension for client 127.0.0.1
Feb 24 11:15:34 haiguang1 obmc-ikvm[1226]: 24/02/2019 11:15:34 Enabling LastRect protocol extension for client 127.0.0.1
Feb 24 11:15:34 haiguang1 obmc-ikvm[1226]: 24/02/2019 11:15:34 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFFFEFE)
Feb 24 11:15:34 haiguang1 obmc-ikvm[1226]: 24/02/2019 11:15:34 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFFFECC)
Feb 24 11:15:34 haiguang1 obmc-ikvm[1226]: 24/02/2019 11:15:34 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFFFEC8)
Feb 24 11:15:34 haiguang1 obmc-ikvm[1226]: 24/02/2019 11:15:34 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFFFEC7)
Feb 24 11:15:34 haiguang1 obmc-ikvm[1226]: 24/02/2019 11:15:34 Enabling full-color cursor updates for client 127.0.0.1
Feb 24 11:15:34 haiguang1 obmc-ikvm[1226]: 24/02/2019 11:15:34 Using tight encoding for client 127.0.0.1

~

log2: fails on virtual console ttyS2:
start-ipkvm.service - OpenBMC ipKVM daemon
Loaded: loaded (/lib/systemd/system/start-ipkvm.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2018-12-11 16:37:52 CST; 2 months 13 days ago
Process: 1160 ExecStartPre=/usr/bin/create_usbhid.sh (code=exited, status=0/SUCCESS)
Main PID: 1226 (obmc-ikvm)
CGroup: /system.slice/start-ipkvm.service

           └─1226 obmc-ikvm -v /dev/video0 -k /dev/hidg0 -p /dev/hidg1
Feb 24 11:26:31 haiguang1 obmc-ikvm[1226]: Failed to query timings
Feb 24 11:26:32 haiguang1 obmc-ikvm[1226]: Failed to query timings
Feb 24 11:26:33 haiguang1 obmc-ikvm[1226]: Failed to query timings
Feb 24 11:26:34 haiguang1 obmc-ikvm[1226]: Failed to query timings
Feb 24 11:26:35 haiguang1 obmc-ikvm[1226]: Failed to query timings
Feb 24 11:26:36 haiguang1 obmc-ikvm[1226]: Failed to query timings
Feb 24 11:26:37 haiguang1 obmc-ikvm[1226]: Failed to query timings
Feb 24 11:26:38 haiguang1 obmc-ikvm[1226]: Failed to query timings
Feb 24 11:26:39 haiguang1 obmc-ikvm[1226]: Failed to query timings
Feb 24 11:26:40 haiguang1 obmc-ikvm[1226]: Failed to query timings

Would you like to tell me how to get more debug info ?

Best,
xiuzhi

Quoted 7 lines

Tested it using the latest libvncserver too. Works well.

SRC_URI = "git://github.com/LibVNC/libvncserver" SRCREV = "3348a7e42e86dfb98dd7458ad29def476cf6096f"

Cheers,
Jae

Quoted 125 lines · Jae Hyun Yoo

Hi xuizhi,

I pinned libvncserver at commit aa8a1aa76880ffb8f23b98d0dbe35988b2609877

Best,
Jae

Quoted 116 lines · xiuzhi

Hi Jae,
I am afraid that this "Refresh" issue is related to the libvncserver. Would you like to tell me your libnvcserver commit number?
Best,
xiuzhi

Hi xuizhi,

Virtual terminal also works. I used 'sudo chvt 2' instead of using 'Ctrl+Alt+F2' because I couldn't send the hot key through webui kvm. Also, instead of clicking the 'refresh' button, I changed web page to the 'Server overview' page and changed it back to 'Server control -> KVM' page. It works well.

IMHO, you might want check the 'refresh' button handling logic in webui implementation. Actually, the 'refresh' button is for system info update, not for kvm screen update, anyways.

Cheers,
Jae

Quoted 5 lines · xiuzhi

Hi Joe,
It did work on EFI BIOS shell mode and OS GUI mode as your
screenshots. It will fail on host OS console mode. Please press "Ctrl+Alt+F2" to switch to OS console as the attachment screenshot , then click the "Refresh" button, the issue will be

reproduced.

Quoted 8 lines

I updated the source
https://gerrit.openbmc-project.xyz/#/c/openbmc/obmc-ikvm/+/18583/
The ikvm window is black screen when the host OS screen start
dormancy or no LCD monitor device available .
My BMC hardware is Ast2500.
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.

Quoted 10 lines

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/

Quoted 15 lines

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

Thanks,
Jae

Quoted 6 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

Quoted 2 lines
Quoted 2 lines

3) webui is from

https://gerrit.openbmc-project.xyz/#/c/openbmc/phosphor-webui/+/10268/

Quoted 5 lines
Quoted 5 lines

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

Quoted 11 lines
Quoted 11 lines

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

Quoted 6 lines
Quoted 6 lines

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

"openbmc"<[email protected]>;

Quoted 5 lines
Quoted 5 lines

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

Hi xiuzhi,

I don't think the commit causes the issue. Check aspeed-video

driver

Quoted 5 lines
Quoted 5 lines

module in kernel that what happens on video mode change events.

Cheers,
Jae

Quoted 7 lines
Quoted 7 lines · xiuzhi
Quoted 2 lines

Hi Jae,
I updated the obmc-ikvm commit

7dfac9ff2d1569aedf83175fb0427562c2188e63

Quoted 3 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.

Quoted 5 lines
Quoted 4 lines
Quoted 4 lines

Please check you commit.

Best,
xiuzhi