Virtual machines must be configured so that parallel ports on the virtual machine are connected to the appropriate port on the physical machine.
To connect the virtual machine's first parallel port (LPT1) to the physical computer's first parallel port
Typically, you press F2 or Delete while the machine is booting. Find the parallel port mode setting and set it to PS/2. (The typical choices are AT and PS/2.) If PS/2 is not available as an option, set it to bidirectional.
To make these changes permanent, add the three lines shown above to the end of the file /etc/rc.d/rc.local.