A virtual machine can use up to four virtual serial ports. You can connect the virtual serial port to a physical serial port or to a file on the host computer. You can also set up a direct connection between two virtual machines or a connection between a virtual machine and an application on the host computer by using a host-side-named pipe. In addition, you can use a port or vSPC URI to connect a serial port over the network.

Virtual machines can be in a powered-on state during configuration.

Check that you known the correct media types for the port to access, vSPC connections, and any conditions that might apply. See Using Serial Ports with vSphere Virtual Machines.

To connect a serial port over a network, add a Firewall rule set. See Adding a Firewall Rule Set for Serial Port Network Connections.

Required privilege: Virtual machine.Configuration.Device connection

1

In the vSphere Client inventory, right-click the virtual machine and select Edit Settings.

2

Click the Hardware tab and select a serial port in the Hardware list.

3

(Optional) Change the Device status settings.

Option

Description

Connected

Connects or disconnects the device while the virtual machine is running.

Connect at power on

Connects the device whenever you power on the virtual machine. You can change this setting when the virtual machine is either powered on or powered off.

4

Select a connection type.

Option

Description

Use physical serial port

Select this option to have the virtual machine use a physical serial port on the host computer. Select the serial port form the drop-down menu.

Use output file

Select this option to send output from the virtual serial port to a file on the host computer. Browse to select an output file to connect the serial port to.

Use named pipe

Select this option to set a direct connection between two virtual machines or a connection between a virtual machine and an application on the host computer.

a

Type a name for the pipe in the Pipe Name field.

b

Select the Near End and Far End of the pipe from the drop-down menus.

Use network

Select Use network to connect through a remote network.

a

Select the network backing.

Select Server to have the virtual machine monitor incoming connections from other hosts.

Select Client to have the virtual machine initiate a connection to another host.

b

Enter a Port URI.

The URI is the remote end of the serial port to which the virtual machine's serial port should connect.

c

If vSPC is used as an intermediate step to access all virtual machines through a single IP address, select Use Virtual Serial Port Concentrator and enter the vSPC URI location.

5

(Optional) Select Yield on poll.

Select this option only for guest operating systems that use serial ports in polled mode. This option prevents the guest from consuming excessive CPUs.

6

Click OK to save your changes.

If you do not use vSPC and you configure your virtual machine with a serial port connected as a server with a telnet://:12345 URI, you can connect to your virtual machine's serial port from your Linux or Windows operating system.

telnet yourESXiServerIPAddress 12345

Similarly, if you run the Telnet Server on your Linux system on port 23 (telnet://yourLinuxBox:23), you configure the virtual machine as a client URI.

telnet://yourLinuxBox:23

The virtual machine initiates the connection to your Linux system on port 23.