Giter Club home page Giter Club logo

obmc-ikvm's Introduction

OpenBMC IpKVM Server

The obmc-ikvm application is a VNC server that provides access to the host graphics output. The application interfaces with the video device on the BMC that captures the host graphics, and then serves that video data on the RFB (remote framebuffer, also known as VNC) protocol. The application also interfaces with the BMC USB gadget device to pass HID events from the BMC to the host, allowing the user to interact with the host system.

Usage

Once the host is running and an appropriate HID gadget device is instantiated on the BMC, the application can be started with the following command: obmc-ikvm -v <video device path> -i <HID gadget device path>

For example:

obmc-ikvm -v /dev/video0 -i /dev/hidg0

obmc-ikvm's People

Contributors

bradbishop avatar charkear avatar eddiejames avatar jaehyoo avatar jammyaspeed avatar kostr avatar leetroy avatar linkunfa avatar lxwinspur avatar manojkiraneda avatar mohammedjavitham avatar neal-liu avatar paulfertser avatar pstrinkle avatar tejas-patil20 avatar wangmin239 avatar williamspatrick avatar zevweiss avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

obmc-ikvm's Issues

IP KVM traces flooding journald if Host is not booted

Boot to standby and open the GUI KVM console.. and started seeing continously flooding the journald .. it keep pumping into journald till host is booted

Apr 26 07:32:08 witherspoon kernel[1159]: [ 1801.822025] configfs-gadget gadget: usb_ep_queue error on int endpoint -108
Apr 26 07:32:08 witherspoon kernel: aspeed-video 1e700000.video: Timed out; first mode detect
Apr 26 07:32:08 witherspoon kernel[1159]: [ 1802.366206] aspeed-video 1e700000.video: Timed out; first mode detect
Apr 26 07:32:09 witherspoon obmc-ikvm[1287]: Failed to query timings
Apr 26 07:32:10 witherspoon kernel: configfs-gadget gadget: usb_ep_queue error on int endpoint -108
Apr 26 07:32:10 witherspoon kernel[1159]: [ 1803.442656] configfs-gadget gadget: usb_ep_queue error on int endpoint -108
Apr 26 07:32:10 witherspoon kernel: configfs-gadget gadget: usb_ep_queue error on int endpoint -108
Apr 26 07:32:10 witherspoon kernel[1159]: [ 1803.473387] configfs-gadget gadget: usb_ep_queue error on int endpoint -108
Apr 26 07:32:10 witherspoon obmc-ikvm[1287]: Failed to write pointer report
Apr 26 07:32:10 witherspoon obmc-ikvm[1287]: Failed to write keyboard report
Apr 26 07:32:10 witherspoon kernel: aspeed-video 1e700000.video: Timed out; first mode detect
Apr 26 07:32:10 witherspoon kernel[1159]: [ 1804.026380] aspeed-video 1e700000.video: Timed out; first mode detect
Apr 26 07:32:11 witherspoon obmc-ikvm[1287]: Failed to query timings
Apr 26 07:32:11 witherspoon kernel: configfs-gadget gadget: usb_ep_queue error on int endpoint -108
Apr 26 07:32:11 witherspoon kernel[1159]: [ 1805.075262] configfs-gadget gadget: usb_ep_queue error on int endpoint -108
Apr 26 07:32:11 witherspoon obmc-ikvm[1287]: Failed to write pointer report
Apr 26 07:32:11 witherspoon obmc-ikvm[1287]: Failed to write keyboard report
Apr 26 07:32:11 witherspoon kernel: configfs-gadget gadget: usb_ep_queue error on int endpoint -108
Apr 26 07:32:11 witherspoon kernel[1159]: [ 1805.093531] configfs-gadget gadget: usb_ep_queue error on int endpoint -108
Apr 26 07:32:12 witherspoon kernel: aspeed-video 1e700000.video: Timed out; first mode detect
Apr 26 07:32:12 witherspoon kernel[1159]: [ 1805.636147] aspeed-video 1e700000.video: Timed out; first mode detect
Apr 26 07:32:13 witherspoon obmc-ikvm[1287]: Failed to query timings

KVM should provide --timeout option to timeout the VNC session after that idle period.

Background:
'bmcweb' have default [30-minutes session timeout ].(https://github.com/openbmc/bmcweb/blob/e01d0c36af115ed46d54b5dbbacfe3ad92226bd3/include/sessions.hpp#L424)

Issue:
KVM session opened is accessible from OpenBMC webUI even after bmcweb idle session timeout (30-minutes).
This could be legacy design, needed to do the uninterrupted host video access, say, SW installation going for more than 30 minutes.

Ask:
KVM should provide --timeout option to timeout the VNC session after that --timeout value.
i.e.) KVM should provide an option to start its session with a configured session timeout value and close the session automatically after that time.
This will be useful for users who want to enforce timeout on idle KVM sessions.

Using VNC Viewer to connect

I try to make a connection to BMC embeded VNC server from my laptop VNC viewer, but it's failed.
Does OpenBMC support this connection method?

Keyboard Super Keys (XK_Super_L & XK_Super_R) are not working

Description:

  • If I try to send the super keys then there is no response coming for it.
  • As I can see, super keys (XK_Super_L & XK_Super_R) are not configured with obmc-ikvm server.
  • Only for below modifiers the key codes has been added:

image

  • Can anyone help me out on this?

  • I need to add Super Keys with obmc-ikvm.

  • What are the scan codes for the Super keys?

  • @yoojae please reply on this !

KVM not working

Hi,

KVM is not loaded on higher resolutions.
1680 x 1050
1920 x 1080
Tested using windows server.

Regards
Nikhil

use tightvnc to connect, probability failed

Hi, has any one meet this problem:
40601720664615_ pic

Then, when i use wireshake to capture net packet, when failed, the first frame server send to client as follow
40721720685173_ pic

If success, the first frame as follow
40711720685145_ pic

Do anyone can help me? Thanks very much for any advice!

obmc-ikvm daemon crashes during client close session

I was running a stress test to open/close kvm session from web frontend (webui-vue), about obmc-ikvm crashed with .5% possibility buffer overflow when the connection closed.

obmc-ikvm[547]: 25/08/2021 03:29:19 Enabling full-color cursor updates for client 127.0.0.1
obmc-ikvm[547]: 25/08/2021 03:29:19 Using tight encoding for client 127.0.0.1
obmc-ikvm[547]: 25/08/2021 03:29:19 Sending rfbEncodingExtDesktopSize for size (1024x768)
obmc-ikvm[547]: 25/08/2021 03:29:21 rfbSendUpdateBuf: write: Connection reset by peer
obmc-ikvm[547]: *** buffer overflow detected ***: terminated
systemd[1]: start-ipkvm.service: Main process exited, code=killed, status=6/ABRT
systemd[1]: start-ipkvm.service: Failed with result 'signal'.
systemd[1]: start-ipkvm.service: Scheduled restart job, restart counter is at 2.

The following code snip need to check the return value, if it return FALSE

rfbSendUpdateBuf(cl);

rfbSendUpdateBuf(cl);

Reference:
https://github.com/LibVNC/libvncserver/blob/2aa20dad4c23c18948d3f63b33f9dfec1f837729/libvncserver/rfbserver.c#L3609-L3628

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.