[ExternalEmail] How change the ikvm port to 5901

Troy.Lee at vertiv.com Troy.Lee at vertiv.com
Tue Mar 17 14:21:43 AEDT 2020


You might need to patch bmcweb as well.
https://github.com/openbmc/bmcweb/blob/master/include/kvm_websocket.hpp#L24

Troy

From: openbmc <openbmc-bounces+troy.lee=vertiv.com at lists.ozlabs.org> On Behalf Of xiuzhi
Sent: Tuesday, March 17, 2020 11:12 AM
To: jae.hyun.yoo <jae.hyun.yoo at linux.intel.com>; openbmc <openbmc at lists.ozlabs.org>; eajames <eajames at linux.ibm.com>
Subject: [ExternalEmail] How change the ikvm port to 5901

Hi Jae,Eddie,
    I want to change the ikvm server port from 5900 to 5901 .
I try to modify the following source:
1. obmc-ikvm
--- a/ikvm_server.cpp    2019-09-03 05:47:42.060110145 +0800
+++ b/ikvm-server.cpp    2020-03-16 15:45:59.389571737 +0800
@@ -43,7 +43,7 @@
                                     (char*)cursorMask);
     server->cursor->xhot = 1;
     server->cursor->yhot = 1;
-
+    server -> port = 5901 ;
     rfbStringToAddr(&ip[0], &server->listenInterface);

     rfbInitServer(server);
2. bmcweb
--- a/include/kvm_websocket.hpp    2019-12-19 18:11:38.838532037 +0800
+++ b/include/kvm_websocket.hpp    2020-03-17 11:07:09.814836005 +0800
@@ -20,7 +20,7 @@
         conn(conn), doingWrite(false), hostSocket(conn.get_io_context())
     {
         boost::asio::ip::tcp::endpoint endpoint(
-            boost::asio::ip::make_address("::1"), 5900);
+            boost::asio::ip::make_address("::1"), 5901);
         hostSocket.async_connect(
             endpoint, [this, &conn](const boost::system::error_code& ec) {
                 if (ec)
I can connect to ikvm by tightvnc on port 5901 .
But the webui kvm page don't work, the kvm page cannot connect to the ikvm server success.
How to  modify the webui ?
  Best,
Xiuzhi
CONFIDENTIALITY NOTICE: This e-mail and any files transmitted with it are intended solely for the use of the individual or entity to whom they are addressed and may contain confidential and privileged information protected by law. If you received this e-mail in error, any review, use, dissemination, distribution, or copying of the e-mail is strictly prohibited. Please notify the sender immediately by return e-mail and delete all copies from your system.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20200317/ef0ff989/attachment.htm>


More information about the openbmc mailing list