how to set up LPT1 in Dos guest?

Discussions about using non Windows and Linux guests such as FreeBSD, DOS, OS/2, OpenBSD, etc.

how to set up LPT1 in Dos guest?

Postby eag » 3. Mar 2017, 06:27

I have Windows 7 host, with VirtualBox5.1.14, with guest VM running FreeDOS1.2. Printer is connected to parallel port on host. How do I get it to work in VM? Someone else posted that he successfully did this using the following commands:
VBoxManage modifyvm "My VM Name" --lptmode1 "LPT1:"
VBoxManage modifyvm "My VM Name" --lpt1 0x378 7
1. WHERE do I run these commands? VirtualBox documentation says VBoxManage commands are run "from the
command line of your host operating system". Huh? Command line of Windows machine would be the cmd prompt. But VirtualBoxManage is not a Windows command. Surely it has to be a VIrutalBox command, no? But I can't find a command line within VirtualBox.

2. How do I find out the base address and IRQ of parallel port in my DOS VM, needed as parameters in the second command?

Sorry if I'm being thick. I'm very new to this. Thanks, eag.
Posts: 5
Joined: 21. Feb 2017, 03:16

Re: how to set up LPT1 in Dos guest?

Postby socratis » 3. Mar 2017, 07:20

The VBoxManage command resides in the VirtualBox directory, so typically you have to enter the following in order to execute it:
    cd "C:\Program Files\Oracle\VirtualBox\"
    VBoxManage ...
or "combine" them:
    "C:\Program Files\Oracle\VirtualBox\VBoxManage" ...
or you can put that directory in your path environment variable (search on how to) and execute it from anywhere.

In another post I directed you to the HowTo section of the forums (great starting place for questions). In the "Board index ‹ General ‹ Howtos and Tutorials ‹ Generic Advice" section there a tutorial: Enabling and Configuring Parallel (LPTx) Ports. Did you stumble upon it?
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
Site Moderator
Posts: 19292
Joined: 22. Oct 2010, 11:03
Location: Greece
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5

Re: how to set up LPT1 in Dos guest?

Postby eag » 3. Mar 2017, 20:15

Aha. OK, got that now, and followed instructions on the tutorial. Thanks for pointing that out. Unfortunately, when I now attempt to start the VM, I get the following error, which prevents the VM from starting:

HostParallel #0:Could not get direct access to
the host parallel port!

Parallel device 0 cannot attach to host driver

Someone else on this forum reported (and ultimately resolved) this error, but his problem was that his device was attached to LPT2. My printer really is on LPT1, and yes, it works on the host. Any idea on what this error might signify (other than that it ain't working), and whether there is any hope? Thanks, eag
Posts: 5
Joined: 21. Feb 2017, 03:16

Return to Other Guests

Who is online

Users browsing this forum: No registered users and 2 guests