You can connect the virtual serial port to a physical serial port or to a file on the host computer. You can also use a host-side named pipe to set up a direct connection between two virtual machines or a connection between a virtual machine and an application on the host computer. In addition, you can use a port or vSPC URI to connect a serial port over the network. A virtual machine can use up to 32 serial ports.
- Verify that the virtual machine is powered off.
- Check that you know 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.
- To use authentication parameter with network serial port connections, see Authentication Parameters for Virtual Serial Port Network Connections.
- Required privilege:
- Right-click a virtual machine in the inventory and select Edit Settings.
- On the Virtual Hardware tab, click the Add New Device button.
- Select Serial Port from the drop-down menu.
The new serial port appears at the bottom of the device list.
- From the New Serial port drop-down menu, select a connection type.
Option Action Use output file Select this option to send output from the virtual serial port to a file on the host computer. To select an output file to connect to the serial port, click Browse . 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 from the drop-down menu. 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.
- Enter a name for the pipe in the Pipe Name field.
- Select the Near end and Far end of the pipe from the drop-down menus.
Use Network To connect through a remote network, select Use network.
- Select the network backing.
- To have the virtual machine monitor incoming connections from other hosts, select Server.
- To have the virtual machine initiate a connection to another host, select Client.
- Enter a Port URI.
The URI is the remote end of the serial port to which the virtual machine's serial port should connect.
- 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.
- (Optional) Select Yield CPU 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.
- Click OK.
Example: Establishing Serial Port Network Connections to a Client or Server Without Authentication Parameters
telnet://:12345URI, you can connect to your virtual machine's serial port from your Linux or Windows operating system.
telnet yourESXiServerIPAddress 12345
telnet://yourLinuxBox:23), you configure the virtual machine as a client URI.
telnet://yourLinuxBox:23The virtual machine initiates the connection to your Linux system on port 23.