Tuesday, October 16, 2012

vmware serial ports (on guests)

utility for configuring or connecting to ports



As far as I could gather, there is/was no easy way to do what I wanted to do.  That said, I was able to cobble together a solution.

First of all, VMware sells an additional license called the "Remote Virtual Serial Port Concentrator" license (for way too much money, IMO) per ESXi server, which is what allows one to pipe a virtual machine's serial port out to a telnet port, using a telnet daemon running on the ESXi server.  Paying the money and getting this license was the first step.  Thankfully, VMware's turnaround was quick enough after we paid the money, that we were able to install these permanent licenses before the temporary, evaluation licenses expired.

The next step was to dynamically configure this serial port for my virtual machines.  I could find no VMware-supplied API's, so I hacked my own perl script.  I've attached it in case others find it useful, warts and all.  I put in lots of comments since I was learning how to do this and I'm sure there's extra junk in there that's not needed, but it's working for me.  Use at your own risk.


  1. Hi

    I tried to attach a serial to ethernet adapter (atop se 5002) to a virtual machine. But it wont work, i tried to stop the firewall but nothing changes. I tried on linux to, there it works perfectly using telnet. Dont know whats matter. Im using a ESXi 5.1 free version from fujitsu. The strange is that it works when i load a virtual com port software on the guest...

  2. I tried using the attached script, but it gave error :
    Can't call method "header_field_names" on unblessed reference at /usr/lib64/perl5/LWP/UserAgent.pm line 258

    Could some one help me on this