openbmc.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Lei Yu <yulei.sh@bytedance.com>
To: openbmc <openbmc@lists.ozlabs.org>
Subject: About KVM screenshot
Date: Mon, 13 Sep 2021 21:47:03 +0800	[thread overview]
Message-ID: <CAGm54UG1guTohXRB5CPYJR=4PQmdXaqZ0Tgq5Z0WXPS7QBxg5Q@mail.gmail.com> (raw)

This email is to introduce some progress and ask for comments about
the KVM screenshot function.

The whole KVM screenshot is implemented by the below pieces:
1. The vncsnapshot[1] is slightly modified for cross-compile, and a
bitbake recipe is created for it;
2. A service is created to host the DBus interface to provide the
"Trigger" and "Clear" methods for KVM screenshot;
3. OEM redfish actions are implemented to trigger and clear the KVM
screenshot, including the download of the picture;

Be noted that the function is currently experimental and not stable:
* vncsnapshot has some bug on skipping the black screen, so we have to
add a delay to capture the screen;
* When the BMC is in high load, it takes longer to open and capture
the KVM, so the above delay may not be enough.

If the work is got interested, we could try to upstream the changes, including:
* Submit a patch to meta-openembedded to add vncsnapshot recipe (with
patches for cross-compile)
* Add an interface to phosphor-dbus-interface to host the service interface;
* Add a new daemon (in a new repo or share some existing repo?)
* Submit patches to bmcweb about the OEM Redfish actions (for now it's
Bytedance OEM action)

Feedbacks and suggestions are welcome.

[1]: https://sourceforge.net/projects/vncsnapshot/files/vncsnapshot/1.2a/

-- 
BRs,
Lei YU

             reply	other threads:[~2021-09-13 13:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-13 13:47 Lei Yu [this message]
2021-09-13 13:57 ` About KVM screenshot Paul Fertser
2021-09-14  1:38   ` [External] " Lei Yu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAGm54UG1guTohXRB5CPYJR=4PQmdXaqZ0Tgq5Z0WXPS7QBxg5Q@mail.gmail.com' \
    --to=yulei.sh@bytedance.com \
    --cc=openbmc@lists.ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).