Solved

VM Ware on W7 X32 with W95 VM loses VM Parallel port / Application Dongle

Posted on 2015-01-28
4
191 Views
Last Modified: 2015-02-03
Hi there, I have a customer with a legacy application that's running on a old/failing box. The os is like a kind of windows 95 dos shell OS and uses a Parallel Dongle as a hardware lock. I have managed to make a Virtual machine and run it a new  Windows 7 x32 box with a PCIe Parallel port card.

It runs fine for a month or two then suddenly the w95 app cannot find the Parallel LTP1 dongle and will not start.

The LPT1 Parallel is still on the host, so If I go into the host device manager, into the properties, into the port settings and change the interrupt settings (doesn't matter which I choose), then click OK I hear the "ding ding" (the same as if you had just plugged in a USB device) then the Virtual Machine works fine until the host is next powered off.

With all that said, I wonder if there is a way to write a small batch file (or something) to make the interrupt change as mentioned above automatically each time the computer is started or as a task when the virtual machine is run.

Really appreciate any useful advice.
0
Comment
Question by:MXDEWD
  • 3
4 Comments
 
LVL 1

Author Comment

by:MXDEWD
Comment Utility
FYI - I found this post that explains my problem exactly (with no clear solution).

http://www.44342.com/Visual-Studio--Net-f969-t6281-p1.htm
0
 
LVL 42

Assisted Solution

by:Davis McCarn
Davis McCarn earned 500 total points
Comment Utility
Your problem is that PCI parallel ports hate to be assigned a port and interrupt while the antique software looks at 378, irq7 and 278, irq5 for the dongle, failing if they are not found.
The workaround (hopefully) is to share the port on the host with a short name then create a BAT file with NET USE LPT1: \\hostname\sharename /persistent:yes<enter>.  As a note, this is the old, tried and true method for getting an MSDOS app to print to a Windoze printer.  You may have to setup a generic/ text only printer on the port for the redirect to work properly.
0
 
LVL 1

Accepted Solution

by:
MXDEWD earned 0 total points
Comment Utility
Hi Davis, thanks for your explanation, it helps to understand what the problem is. I ended up burning the midnight oil on this last night and cobbled together a solution that works well.

Through manual trail and error, I worked out that by disabling then enabling the LPT1 adaptor in the Device manager after a reboot, the VM worked and could see the parallel Dongle. So, using a command line utility from MS, I was able to set a task to run on startup that does the disable and enable in the background. I'm going to keep testing for a few days but it looks stable.
0
 
LVL 1

Author Closing Comment

by:MXDEWD
Comment Utility
I worked out the fix for my self prior to anyone posting  solution. That said, the insight provided by Davis helped with the Big picture.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Will try to explain how to use the VMware feature TAGs in the VMs and create Veeam Backup Jobs using TAGs. Since this article is too long, I will create second article for the Veeam tasks.
HOW TO: Install and Configure VMware vSphere Hypervisor 6.5 (ESXi 6.5), Step by Step Tutorial with screenshots. From Download, Checking Media, to Completed Installation.
Teach the user how to join ESXi hosts to Active Directory domains Open vSphere Client: Join ESXi host to AD domain: Verify ESXi computer account in AD: Configure permissions for domain user in ESXi: Test domain user login to ESXi host:
This Micro Tutorial will give you a basic overview of Windows Live Photo Gallery and show you various editing filters and touches to photos you can apply. This will be demonstrated using Windows Live Photo Gallery on Windows 7 operating system.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now