Tuesday, October 16, 2012

vmware serial ports (on guests)

utility for configuring or connecting to ports

http://communities.vmware.com/message/1741943

quote:

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 comment:

  1. 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

    ReplyDelete