In an ESX virtual machine, you can configure a serial port as the physical serial port, output file, or named pipe.
You can configure the parallel port through the physical parallel port or as the output file.
To configure a physical serial or parallel port in an ESX virtual machine, you must have a physical serial or parallel port in your ESX host.
To configure serial port or parallel port as an output file:
-
In the vSphere Client right-click the ESX virtual machine and select Edit Settings.
-
In the Hardware tab, click Add.
-
Select the device type Serial Port or Parallel Port and click Next.
-
Select the Output to file option and click Next.
-
In the Output File field, enter the name of the output file, or click Browse and select the datastore to store the output file.
-
Select Connect at power on under device status for any supported Windows and Linux guest operating system.
-
To allow the guest operating system to use this serial port in the interrupt mode, deselect Yield CPU on poll. To allow the guest OS to use this serial port in the polled mode, select Yield CPU on poll.
-
Click Next, followed by Finish.
To configure serial port as a named pipe:
-
In the vSphere Client right-click the ESX virtual machine and select Edit Settings.
-
In the Hardware tab, click Add.
- Select the device type Serial Port or Parallel Port and click Next.
- Select the Connect to named pipe option and click Next.
- Enter Pipe Name (for example, pipe1), select Near end (for example, client) and Far end (for example, a process or a virtual machine).
Note: If you are selecting Far end as a process, you must use the client and server named pipes in a same virtual machine. If you are using Far end as a virtual machine, you must use client and server named pipes in different virtual machines. The following is an example for Far end as a virtual machine:
| Virtual Machine-1 | Virtual Machine-2 |
| Serial Port-1 | Serial Port-1 |
Pipe name | /vmfs/volumes/storage1/pipe1 | /vmfs/volumes/storage1/pipe1 |
Near end | Server | Client |
Far end | Virtual machine | Virtual machine |
I/O mode | Polled mode | Polled mode |
- Select Connect at power on under device status for any supported Windows and Linux guest operating system.
-
To allow the guest operating system to use this serial port in the interrupt mode, deselect Yield CPU on poll. To allow the guest OS to use this serial port in the polled mode select Yield CPU on poll.
-
Click Next, followed by Finish.