Skip to contentSkip to conversation

How change the ikvm port to 5901

PATCH xiuzhi 2 participants 3 messages Mar 17, 2020 – Mar 18, 2020

lore
Share & tools
lore

xiuzhi

author
#0 lore raw

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

ikvm-server.cpp 2020-03-16 15:45:59.389571737 +0800 renamed from ikvm_server.cpp 2019-09-03 05:47:42.060110145 +0800 +1 -1
@@ -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

include/kvm_websocket.hpp 2020-03-17 11:07:09.814836005 +0800 renamed from include/kvm_websocket.hpp 2019-12-19 18:11:38.838532037 +0800 +1 -1
@@ -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

#1 lore raw

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

Troy

From: openbmc <[email protected]> On Behalf Of xiuzhi
Sent: Tuesday, March 17, 2020 11:12 AM
To: jae.hyun.yoo <[email protected]>; openbmc <[email protected]>; eajames <[email protected]>
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

ikvm-server.cpp 2020-03-16 15:45:59.389571737 +0800 renamed from ikvm_server.cpp 2019-09-03 05:47:42.060110145 +0800 +1 -1
@@ -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

include/kvm_websocket.hpp 2020-03-17 11:07:09.814836005 +0800 renamed from include/kvm_websocket.hpp 2019-12-19 18:11:38.838532037 +0800 +1 -1
@@ -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.

author
#2 lore raw

Hi Troy,
Thanks, it works now.
Xiuzhi

------------------ Original ------------------

From:  "[email protected]";<[email protected]>;
Date:  Mar 17, 2020
To:  "xiuzhi"<[email protected]>; "jae.hyun.yoo"<[email protected]>; "openbmc"<[email protected]>; "eajames"<[email protected]>; 

Subject: RE: [ExternalEmail] How change the ikvm port to 5901

You might need to patch bmcweb as well.

https://github.com/openbmc/bmcweb/blob/master/include/kvm_websocket.hpp#L24

Troy

From: openbmc <[email protected]> On Behalf Of xiuzhi
Sent: Tuesday, March 17, 2020 11:12 AM
To: jae.hyun.yoo <[email protected]>; openbmc <[email protected]>; eajames <[email protected]>
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.