Configuring serial port communication over network between two virtual machines
search cancel

Configuring serial port communication over network between two virtual machines

book

Article ID: 344134

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

In vSphere 4.1 and later, you can configure virtual serial ports for two virtual machines to communicate over the network. This allows you to redirect the virtual serial port connection to a TCP/IP connection on the ESX/ESXi host.

Environment

VMware vSphere ESXi 5.5
VMware ESX 4.1.x
VMware ESXi 4.1.x Installable
VMware vSphere ESXi 6.0
VMware vSphere ESXi 5.1
VMware ESXi 4.1.x Embedded
VMware vSphere ESXi 5.0

Resolution

To configure Serial Port Communication over Network between two virtual machines, launch the vCenter Server and complete these steps:

Note: ESXi host must be licensed for Enterprise or above.
  1. Ensure the virtual machine is powered off.
  2. Right-click the virtual machine and select Edit Settings.
  3. On the Hardware tab, click Add.
  4. Select Serial Port and click Next.
  5. Click Connect via Network
  6. Click Server.
  7. In the Port URI field, enter the Uniform Resource Identifier (URI) with the format:

    protocol://host:port

    For example:

    tcp://xxx.xxx.xxx.xxx:5480

    where

    host is the ESX/ESXi host name or IP address.
    port is any unused port on the ESX/ESXi host.
    protocol is the protocol used for the connection. It can be:

    • tcp - an unencrypted TCP connection (IPv4 or IPv6)
    • tcp4 - an unencrypted TCP connection (IPv4 only)
    • tcp6 - an unencrypted TCP connection (IPv6 only)
    • ssl - the equivalent of tcp+ssl
    • tcp+ssl - encrypted SSL over TCP
    • tcp4+ssl - SSL over TCP over IPv4
    • tcp6+ssl - SSL over TCP over IPv6
    • telnet telnet over TCP. The virtual machine and remote system can negotiate and use SSL if the remote system supports the telnet authentication option. If not, the connection uses unencrypted text (plain text)
    • telnets telnet over SSL over TCP. In this case, SSL negotiation begins immediately and you cannot use the telnet authentication option.

  8. Repeat the later steps for the second virtual machine. When you reach the Connect via Network screen, choose Client for the virtual machine.

Note: If the virtual serial port is configured to a direct URI on the ESXi/ESX host, a vMotion of this virtual machine fails.


Additional Information

For more information on Port URI, see the Data Object - VirtualSerialPortURIBackingInfo section in the VMware vSphere API Reference Guide. 2 つの仮想マシンの間でネットワーク経由のシリアル ポート通信を構成する
配置通过两个虚拟机之间的网络的串行端口通信