Quantcast
Channel: VMware Communities : Popular Discussions - VMware Server 1
Viewing all articles
Browse latest Browse all 74849

3 serial ports in the guest

$
0
0

We would like to move an old DOS program that needs to talk to some hardware through serial ports to a VM. The host for VMWare is a Linux server, running Gentoo and 3 USB->Serial adapters (Linux sees them as /dev/ttyUSBn).

 

I originally set up a Windows 98 VM with 3 serial ports (the program was running on a Win98 box, as it needs a Windows helper), and while they worked fine when I tested them with PuTTY, the DOS application wouldn't use them (this seems to be a problem with the application, as a DOS terminal program didn't have any problems). Anyway, I then tried to set up a Windows XP VM, and the DOS application works fine here, except that I can't get COM3 to work at all - Windows sees it, but no data seems to go through. I worked around the problem by connecting one of the USB->Serial adapters to the VM directly as a USB device, however for this to work, I have to physically disconnect the adapter from USB port and then reconnect it, otherwise Windows only sees an unknown USB device.

 

Any ideas on how to either get the virtual COM3 port to work, or how to get Windows to not require me to disconnect and reconnect the adapter if the VM is rebooted?

 

VMWare Server is 1.0.4, the host is running kernel 2.6.22-gentoo-r8 on Intel Xeon 3GHz with 5GB RAM.

 

 

The VMX file for XP VM follows:

#!/opt/vmware/server/bin/vmware
config.version = "8"
virtualHW.version = "4"
scsi0.present = "FALSE"
memsize = "1024"
ide0:0.present = "TRUE"
ide0:0.fileName = "Windows XP Professional.vmdk"
ide1:0.present = "TRUE"
ide1:0.fileName = "auto detect"
ide1:0.deviceType = "cdrom-raw"
floppy0.fileName = "/dev/fd0"
Ethernet0.present = "TRUE"
displayName = "Windows XP Professional"
guestOS = "winxppro"
autostart = "poweron"
autostop = "softpoweroff"
priority.grabbed = "normal"
priority.ungrabbed = "normal" 
floppy0.present = "FALSE" 
ide0:0.redo = ""
ethernet0.addressType = "generated"
uuid.location = "56 4d 10 42 15 16 62 0b-95 99 79 ec 26 64 11 0f"
uuid.bios = "56 4d 10 42 15 16 62 0b-95 99 79 ec 26 64 11 0f"
ethernet0.generatedAddress = "00:0c:29:64:11:0f"
ethernet0.generatedAddressOffset = "0"
ethernet0.virtualDev = "vmxnet" 
RemoteDisplay.vnc.port = "5901"
RemoteDisplay.vnc.enabled = "TRUE"
RemoteDisplay.vnc.password = "" 
ide1:0.startConnected = "FALSE" 
tools.syncTime = "TRUE" 
serial0.present = "TRUE"
serial0.yieldOnMsrRead = "TRUE"
serial0.fileName = "/dev/ttyUSB0"
serial1.present = "TRUE"
serial1.yieldOnMsrRead = "TRUE"
serial1.fileName = "/dev/ttyUSB1"
serial2.present = "TRUE"
serial2.yieldOnMsrRead = "TRUE"
serial2.fileName = "/dev/ttyUSB2" 
serial1.fileType = "device"
serial2.fileType = "device"
serial2.pipe.endPoint = "client"
serial1.startConnected = "TRUE" 
serial2.startConnected = "FALSE" 
usb.present = "TRUE" 
usb.autoConnect.device0 = "path:1/0/3 autoclean:1" 
ide1:0.clientDevice = "TRUE"
#usb.autoConnect.device0 = ""
ide1:0.autodetect = "TRUE" 
workingDir = "." 
serial0.startConnected = "TRUE"

 


Viewing all articles
Browse latest Browse all 74849

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>