Page 1 of 4

VM stuck on accessing parallel port

Posted: 30. Dec 2017, 09:21
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

Re: Drucker in VM

Posted: 30. Dec 2017, 09:50
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.

Re: Drucker in VM

Posted: 30. Dec 2017, 12:08
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é

Re: Drucker in VM

Posted: 2. Jan 2018, 19:26
by André Lieske
Hallo Profis,
hat jemand einen Tipp wie ich meine Drucker einbinden muss?

Re: Drucker in VM

Posted: 11. Apr 2021, 14:16
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.

Re: Drucker in VM

Posted: 11. Apr 2021, 16:15
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.)

Re: Drucker in VM

Posted: 11. Apr 2021, 16:38
by André Lieske
Hi scottgus1,
attached the files

Re: Drucker in VM

Posted: 12. Apr 2021, 00:30
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.

Re: Drucker in VM

Posted: 12. Apr 2021, 10:18
by André Lieske
Hi scottgus1,

enclosed the config

Re: Drucker in VM

Posted: 12. Apr 2021, 13:51
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.

Re: Drucker in VM

Posted: 12. Apr 2021, 14:34
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.

Re: Drucker in VM

Posted: 12. Apr 2021, 14:51
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"

Re: Drucker in VM

Posted: 12. Apr 2021, 14:53
by scottgus1
Can the host OS use the printer?

Re: Drucker in VM

Posted: 12. Apr 2021, 14:55
by André Lieske
Hallo scottgus1,
yes

Re: Drucker in VM

Posted: 12. Apr 2021, 14:56
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.