LPT Port doesn't work properly

Discussions related to using VirtualBox on Windows hosts.
tristan202
Posts: 10
Joined: 15. Apr 2022, 09:46

Re: LPT Port doesn't work properly

Post by tristan202 »

Thank you, I did the things that fth0 suggested. It still doesn't work.
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: LPT Port doesn't work properly

Post by mpack »

As far as I can see, "fth0" asked for information, he didn't make any suggestion other than the implied "disable Hyper-v" (see HMR3Init: Attempting fall back to NEM (Hyper-V is active)).
fth0
Volunteer
Posts: 5668
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: LPT Port doesn't work properly

Post by fth0 »

If you did what mpack (and me) suggested, you could now provide a new (zipped) VBox.log file that does not contain "HMR3Init: Attempting fall back to NEM (Hyper-V is active)". Without deleting that line manually, of course. ;)
tristan202
Posts: 10
Joined: 15. Apr 2022, 09:46

Re: LPT Port doesn't work properly

Post by tristan202 »

Below the log.

mpack - You're right. My English is not so good as I want to.
Attachments
XP-2022-06-21-08-33-31.zip
(25.43 KiB) Downloaded 4 times
fth0
Volunteer
Posts: 5668
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: LPT Port doesn't work properly

Post by fth0 »

Ok, Hyper-V is out of the way now.

Regarding the LPT port, I don't really know more than the FAQ already covers. The XP-2022-06-21-08-33-31.log file states "Parallel0: no unit", and the CFGM dump section for /Devices/parallel doesn't show the HostParallel driver any more, so the connection on the host side seems missing. Whatever that means.
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: LPT Port doesn't work properly

Post by mpack »

@tristan202: Please reinstall VirtualBox on the host, this time using "Run as administrator" to ensure that you have sufficient admin rights to install device drivers. I don't actually know if a support driver is needed to hook into the host LPT function, but it's worth trying IMO.
tristan202
Posts: 10
Joined: 15. Apr 2022, 09:46

Re: LPT Port doesn't work properly

Post by tristan202 »

Refreshing the topic:)

On a second computer (different motherboard, etc.) I created a new virtual machine with XP.

I typed:
VBoxManage modifyvm XP --lpt1 off
VBoxManage modifyvm XP --lptmode1 "LPT1"
VBoxManage modifyvm XP --lpt1 0x378 7

It worked. After a few months I have to run VirtualBox with XP on another computer. The machine has the same parameters as the one on which it runs.

However, here again I have a problem. On the host and guest machine, the LPT port in the device manager displays correctly (as LPT1, no conflict), but the program that uses the LPT key does not work.

I also tried exporting and importing the machine, but I get an error. I am therefore uploading the log.
Attachments
VBox.zip
(56.04 KiB) Downloaded 3 times
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: LPT Port doesn't work properly

Post by mpack »

This is entirely normal, it has always been that way with devices that attach to the parallel port of a PC. On some PCs they work, on other PCs they don't, and this is WITHOUT bringing virtualization into the mix. In large part this is why USB exists.
Post Reply