VM stuck on accessing parallel port

Discussions related to using VirtualBox on Windows hosts.
André Lieske
Posts: 86
Joined: 1. May 2016, 06:40
Primary OS: MS Windows other
VBox Version: OSE other
Guest OSses: WIN XP
Location: Berlin

VM stuck on accessing parallel port

Post by André Lieske »

(Mod edit: Original topic title: "Drucker in VM". This topic is from the German Forum. Andre returned to the topic after some time to pick up the problem. Andre wants to use an old parallel port printer in the VM. I have suggested to share the printer from the host, but we cannot confirm the network, because Andre in the meantime tried to attach the VM to the host's parallel port. The VM is erroring out trying to use the parallel port and it cannot start. We have tried to clear the parallel port configuration from the VM by vboxmanage commands and by manually editing the .vbox file, see page 2, but the error on the LPT port still happens. - Scottgus1)

Hallo Profis,
ich habe unter Win10 mehrere Drucker installiert, möchte diese auch in VM verwenden,
leider werden diese nicht gefunden.
Freigabe der Drucker unter Win10 ist eingeschaltet.
Auf einem anderen PC werden die Drucker automatisch unter VM eingefügt.
VM Version 5.2.4 r119785 (Qt5.6.2)
Besten Dank im voraus
Last edited by scottgus1 on 12. Apr 2021, 16:18, edited 1 time in total.
Reason: edited topic title and added synopsis of topic
Gruss André
socratis
Site Moderator
Posts: 27330
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Drucker in VM

Post by socratis »

[color=#BF0000]Your signature[/color] wrote:Oracle VM Virtual-Box Vers. 5.020 r106931
André Lieske wrote:VM Version 5.2.4 r119785 (Qt5.6.2)
You might want to get rid of your signature. Things in the software world change frequently, and having a signature with a version number, can be misleading... ;)


To your problem: it depends on the network mode used (HostOnly, NAT, etc.), your firewall settings, your discovery settings, your homegroup/workgroup/domain settings. I can't tell with that little information.
André Lieske wrote:On another PC, the printers are automatically inserted under VM.
Auf einem anderen PC werden die Drucker automatisch unter VM eingefügt.
Then you should compare what's different between the two of them and fix things.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
André Lieske
Posts: 86
Joined: 1. May 2016, 06:40
Primary OS: MS Windows other
VBox Version: OSE other
Guest OSses: WIN XP
Location: Berlin

Re: Drucker in VM

Post by André Lieske »

Hello Socratis,
in the Signature is the used version of PC1, everything works there,
there is also Win10 with VM installed.
The version in the text is the one that causes problems.
All network groups are set to "ARBEITSGRUPPE".
Firewal is turned off.
Network: integrated as network bridge under Advanced on "All VM's and Host".
I also can not access the Internet in XP.
Greeting André
Gruss André
André Lieske
Posts: 86
Joined: 1. May 2016, 06:40
Primary OS: MS Windows other
VBox Version: OSE other
Guest OSses: WIN XP
Location: Berlin

Re: Drucker in VM

Post by André Lieske »

Hallo Profis,
hat jemand einen Tipp wie ich meine Drucker einbinden muss?
Gruss André
André Lieske
Posts: 86
Joined: 1. May 2016, 06:40
Primary OS: MS Windows other
VBox Version: OSE other
Guest OSses: WIN XP
Location: Berlin

Re: Drucker in VM

Post by André Lieske »

Hallo Profis,
bekomme den Parallelen Drucker nicht in die VM eingebunden.
Habe es mit allen Schnittstellen versucht aber leider vergeblich.
Gibt es eine Anleitung für Laien?

Host-Betriebssystem: WIN10
Gast-Bertriebssystem: WINXP, SP3
VM Version 6.1.18 r142142 (Qt5.6.2)

Vielen Dand im voraus.
Gruss André
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Drucker in VM

Post by scottgus1 »

We need to know how the VM is built. Let's gather some information:

Start the VM from full normal shutdown, not save-state. Run until you see the problem happen, then shut down the VM from within the VM's OS if possible. If not possible, close the Virtualbox window for the VM with the Power Off option set.

Right-click the VM in the main Virtualbox window's VM list, choose Show Log. Save the far left tab's log and the hardening log next to it, zip them, and post the zip file, using the forum's Upload Attachment tab.

Also, Right-click the VM in the main Virtualbox window's VM list, choose Show in Explorer/Finder/File Manager. Zip the VM's .vbox file (not the .vbox-prev file), and post the zip file, using the forum's Upload Attachment tab. (Configure your host OS to show all extensions if the folder that opens does not show a .vbox file.)
André Lieske
Posts: 86
Joined: 1. May 2016, 06:40
Primary OS: MS Windows other
VBox Version: OSE other
Guest OSses: WIN XP
Location: Berlin

Re: Drucker in VM

Post by André Lieske »

Hi scottgus1,
attached the files
Attachments
FlowFact-2021-04-11-16-17-00.zip
LOG
(71.7 KiB) Downloaded 15 times
FlowFact.zip
FlowFact
(2.22 KiB) Downloaded 14 times
Gruss André
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Drucker in VM

Post by scottgus1 »

Thanks for the files. No hardening problems, good. The vbox.log was taken before the VM was shut down.

It appears your VM is using Bridged networking, which means it should be getting an IP address in the same range as the host PC gets from your network router. Please run this command in the command prompt of both the host and VM OS's, and post the outputs:

ipconfig /all

If the VM has a proper network connection to the host OS, you should be able to run the printer on the host OS and share the printer to the VM's OS. The VM's OS also needs drivers for the printer.
André Lieske
Posts: 86
Joined: 1. May 2016, 06:40
Primary OS: MS Windows other
VBox Version: OSE other
Guest OSses: WIN XP
Location: Berlin

Re: Drucker in VM

Post by André Lieske »

Hi scottgus1,

enclosed the config
Attachments
config.txt
(3.06 KiB) Downloaded 20 times
Gruss André
André Lieske
Posts: 86
Joined: 1. May 2016, 06:40
Primary OS: MS Windows other
VBox Version: OSE other
Guest OSses: WIN XP
Location: Berlin

Re: Drucker in VM

Post by André Lieske »

Hallo,
erhalte beim Start der VM auf einmal diese Fehlermeldung

Für die virtuelle Maschine FlowFact konnte keine neue Sitzung eröffnet werden.
HostParallel#0: Could not get direct access to the host parallel port!! (rc=VERR_INTERNAL_ERROR_3) (VERR_INTERNAL_ERROR_3).
Parallel device 0 cannot attach to host driver (VERR_INTERNAL_ERROR_3).
Fehlercode: E_FAIL (0x80004005)
Komponente: ConsoleWrap
Interface: IConsole {872da645-4a9b-1727-bee2-5585105b9eed}

Hatte zuvor folgenden Code eingegeben
cmd
cd / (Enter drücken)
cd c:\Program Files\Oracle\VirtualBox (Entder drücken)

VBoxManage modifyvm "DOS-PC" --lptmode1 "LPT1:"
VBoxManage modifyvm "DOS-PC" --lpt1 0x378 7

Wie kann ich das wieder zurück setzen, in der Beschreibung steht dieser Code, funktioniert aber nicht.
VBoxManage modifyvm „DOS-PC“ –lpt1 off

Vielen Dank im voraus.
Gruss André
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Drucker in VM

Post by scottgus1 »

André Lieske wrote:enclosed the config
scottgus1 wrote:Please run this command in the command prompt of both the host and VM OS's
Both command outputs are necessary to check if Bridged is working.

I see that you are trying to put the printer itself into the VM through a parallel port, instead of letting the host OS run the printer. Does the host OS not have drivers for the printer?

I have not tried attaching a VM to the host's parallel port. But I think that issuing the commands without the final information should reset the commands:

VBoxManage modifyvm "DOS-PC" --lptmode1
VBoxManage modifyvm "DOS-PC" --lpt1


Alternatively, post the "DOS-PC" .vbox file and we can remove the codes manually.
André Lieske
Posts: 86
Joined: 1. May 2016, 06:40
Primary OS: MS Windows other
VBox Version: OSE other
Guest OSses: WIN XP
Location: Berlin

Re: Drucker in VM

Post by André Lieske »

Hallo scottgus1,
habe beide Befehle eingegeben, es scheinen Parameter zu fehlen.
VBoxManage modifyvm "FlowFact" --lptmode1
VBoxManage modifyvm "Flowfact" --lpt1
ich bekomme eine Liste mit Parameter angezeigt.

Der Drucker ist Panasonic KX-P1123 (24 Nadeldrucker) und ist an dem PC angeschlossen, als LPT1, wo auch die VM läuft,
unter WIN10 ist der Drucker installiert und freigegeben als "EpsonEdlos"
Gruss André
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Drucker in VM

Post by scottgus1 »

Can the host OS use the printer?
André Lieske
Posts: 86
Joined: 1. May 2016, 06:40
Primary OS: MS Windows other
VBox Version: OSE other
Guest OSses: WIN XP
Location: Berlin

Re: Drucker in VM

Post by André Lieske »

Hallo scottgus1,
yes
Gruss André
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Drucker in VM

Post by scottgus1 »

Good. Are you able to share the printer onto the network?

And we still need to know the "ipconfig /all" from the VM.
Post Reply