Accessing networked printer from VirtualBox

Discussions related to using VirtualBox on Linux hosts.
Post Reply
chandra
Posts: 3
Joined: 11. Jun 2008, 18:32

Accessing networked printer from VirtualBox

Post by chandra »

I have an HP networked printer with a JetDirect print server card. It has a 10.n.n.m address on the local network and is accessible from my Hardy Heron i386 Linux host but not from Windows run as guest OS on Virtual Box 1.6.2 (PUEL version).

At present I have Network Adapter 0 attached to NAT.

How might I get this printer recognized by Windows from within Virtual Box?

Thanks.

Chandra
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Post by Sasquatch »

You can try to add it directly with it's IP address. You can also share the printer on your Host system (if you install and set up Samba it's shared by default) and connect to your Host to print to the network printer. It should be possible to connect directly using NAT.
Search the forums, there is someone else with a similar problem. You could also change the DHCP range of VB to solve the issue of the same subnet/IP address range.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
chandra
Posts: 3
Joined: 11. Jun 2008, 18:32

Post by chandra »

Thank you Sasquatch.

I have now viewed this topic on this forum and its replies:

http://forums.virtualbox.org/viewtopic. ... ht=printer

and have found the solution that works for me.

Briefly:

1. Find out the address of the JetDirect server on the internal network. The easiest way is to find out this value, which is like 10.n.n.m for me, is to print an HP Printer Test Page and look at the address of the "Host".

2. In Windows XP:

Control Panel -> Add Printers and Faxes -> Add a printer -> A network printer or printer attached to another computer -> Select third radio burtton:

URL : http://10.n.n.m:631/printers/HP_LaserJet_2200

and go on from there.

The printer name in my case is HP_LaserJet_2200; substitute your printer's name instead.

Chandra
Post Reply