how to get serial port in Windows VM working in ESXI

Discussion in 'VMware, VirtualBox, Citrix' started by epicurean, Aug 31, 2015.

  1. epicurean

    epicurean Member

    Joined:
    Sep 29, 2014
    Messages:
    524
    Likes Received:
    19
    Been trying to get a physical serial port on the esxi 5.5 host to work in a windows VM without any success.

    Tried in both windows 7 and Windows 10 and windows 2008 server.

    Anyone has any ideas?
     
    #1
  2. c912039

    c912039 New Member

    Joined:
    Apr 25, 2012
    Messages:
    8
    Likes Received:
    3
    Whilst I am not able to make any suggestions regarding getting the physical serial port on your ESX host passed through, I can comment on the solution I ended up with.
    I needed to virtualize a physical host that had lots of serial and serial type USB devices connected. The ESX host was quite some distance from where the serial and usb devices were terminated.

    So I used a combination of Digi International's AnywhereUSB device (USB over IP) and their Edgeport Serial to USB converters. I located those devices at the USB and serial cable termination points, and loaded up the drivers in the Windows VM.
    Apart from having to delay startup of the processes that communicate over those serial and USB devices in the virtualized Windows client, the solution has been rock solid.
     
    #2
    epicurean likes this.
  3. epicurean

    epicurean Member

    Joined:
    Sep 29, 2014
    Messages:
    524
    Likes Received:
    19
    thanks for the suggestion. But I am trying to find a cheaper solution , as opposed to buying more hardware to support the serial port.
     
    #3
  4. NetWise

    NetWise Active Member

    Joined:
    Jun 29, 2012
    Messages:
    599
    Likes Received:
    130
    What exactly is the issue your running up against? I do this fairly regularly and it's dead simple. Add the serial port to the VM, power it on, fire up putty, connect to whatever is on the physical port.

    Are you getting some manner of error message?
     
    #4
  5. epicurean

    epicurean Member

    Joined:
    Sep 29, 2014
    Messages:
    524
    Likes Received:
    19
    I need a serial null modem cable to be connected to a serial port , for management control of my infiniband switch.
    unfortunately, this sun x2821a switch uses a usb port which needs a usb to serial adapter. I can do so easily with any stand alone windows PC , and putty in.

    When I try to give a serial port (using the physical port from the esxi host) to any windows VM, even though everything is detected , putty in and there is no response from the switch. I can only assume I am doing something wrong. I also configure the bios of the VM to have only 1 serial port, still no response.
     
    #5
  6. NetWise

    NetWise Active Member

    Joined:
    Jun 29, 2012
    Messages:
    599
    Likes Received:
    130
    Try connecting to another device and confirm its not that switch or the USB/serial requirement. There's nothing un-obvious about how to do it as you've indicated so it should 'just work'?
     
    #6
  7. epicurean

    epicurean Member

    Joined:
    Sep 29, 2014
    Messages:
    524
    Likes Received:
    19
    I have no issues with the first serial port on the host, which i gave to VMA primarily to control the APC ups. Dunno why the 2ne serial port would not work with any windows VM I tried
     
    #7
  8. NetWise

    NetWise Active Member

    Joined:
    Jun 29, 2012
    Messages:
    599
    Likes Received:
    130
    I've never done more than one per host. I don't think that serial redirection has any basis on PCI passthru. But I do know when you're trying to pas through things like quad port NIC's there is often two NIC's per chip, and they have to go together. I'm wondering if you assign both serial ports to the same VM what happens? Maybe it's just that they cannot be split up.
     
    #8
  9. epicurean

    epicurean Member

    Joined:
    Sep 29, 2014
    Messages:
    524
    Likes Received:
    19
    Hi Netwise,
    You got a point there. It never occured to me that the 2 serial ports cannot be split up.
     
    #9
  10. NetWise

    NetWise Active Member

    Joined:
    Jun 29, 2012
    Messages:
    599
    Likes Received:
    130
    Did that work at all? I checked and I have no hosts with dual serial to test it out with - all have single serial ports.
     
    #10
  11. DorianJ

    DorianJ New Member

    Joined:
    Sep 26, 2017
    Messages:
    1
    Likes Received:
    0
    Have you tried to forward a serial port to Windows VM via the network using the software solutions? Serial over ethernet will do that job just fine, and no additional hardware is required in that case
     
    #11
Similar Threads: serial port
Forum Title Date
VMware, VirtualBox, Citrix Port-wise NIC passthrough - SR-IOV required? Feb 16, 2019
VMware, VirtualBox, Citrix Small, fast storage with support for vSphere Dec 19, 2018
VMware, VirtualBox, Citrix Chelsio T440 Quad port 10G SFP+ Passthrough Oct 31, 2018
VMware, VirtualBox, Citrix VMware Xeon W-2145 support Apr 21, 2018
VMware, VirtualBox, Citrix does all workstation class hardware support ESXi equally well? Jan 17, 2018

Share This Page