This step-by-step article describes how to print by using a program that is running on a virtual machine in Microsoft Virtual PC 2004.
Printers for a virtual machine
Virtual PC 2004 supports printers that are connected to the physical computer's parallel
port (LPT1) and printers that are shared on a network.
If a printer is connected to the LPT1 port on the physical computer, Virtual PC
can use the port. After the port is captured, the operating system and programs that are running on the virtual machine can access the connected printer.
Virtual machines can use network printers if the virtual
machines are configured to access the network. After the virtual machine has
network access, the operating system and the programs that are running on the virtual machine can access the networked printer. You can set up a
networked printer for a virtual machine the same way that you set up a networked
printer for a physical computer.Note
Virtual PC 2004 does not support universal serial bus (USB)
connections. For printers that have USB connections only, you can share the printer
on a network.
Print from a virtual machine
To print by using a program that is running on a virtual machine, use any one of the following methods.
Install a network printer
Install your physical computer's printer (or other network printer) as a
network printer on your virtual machine. To install a network printer on a virtual machine, follow these steps:
- Make sure the Networking setting for your
virtual machine is not set to None. To do so, follow these steps:
- Shut down the virtual machine.
- In the Virtual PC window, click the virtual machine that you
want to check, and then click Settings.
- Click Networking, and then verify
that None is not selected.
For more information
about the Shared Networking (NAT) and the Virtual
Switch settings, see the "Networking" topic in Virtual PC Help. To do
so, click Help, and then click Virtual PC
- Share the printer on your physical computer or a different computer on
For additional information about sharing printers, see the
"Printing" topic in Windows help.
- Click Start, click Control
Panel, and then double-click Printers and
- Right-click the printer that you want to share, and then
- The options that you see on the Sharing tab
differ, depending on whether sharing is enabled on your computer.
- If you see text that states that printer sharing
must be turned on, run the Network Setup Wizard. To do so, click the
Sharing tab, click Network Setup Wizard, and
then follow the instructions that appear on the screen. When sharing is enabled,
start this procedure again.
- If you see options for sharing or not sharing the
printer, go to the next step.
- On the Sharing tab, click
Share this printer, and then type a share name for the shared
- Click OK, or if you have installed
additional drivers, click Close.
- Install the printer as a network printer on your virtual machine.
To do so, follow these steps:
- Open Printers and Faxes, and then
click Add a Printer.
- Follow the instructions that appear on the screen to install a
Use the LPT1 setting in Virtual PC
If you have a printer that is installed on the parallel port of
your physical computer, associate the emulated port on the virtual machine with a parallel port
on the physical computer, and then print from the virtual machine to your printer.
configure the LPT1 port for a virtual machine, follow these steps:
- Shut down the virtual machine.
NoteSome settings for the virtual machine cannot be changed while the
virtual machine is running or in a saved state.
- In the Virtual PC Console window, click the virtual machine that you want to check, and then click
- In the Settings dialog box, click
- Under LPT1, click Physical
parallel port, and then click the name of the port in the list.
Notes You can only use LPT1 on the host as a physical parallel
When you start the virtual machine, it tries to capture the
parallel port of the physical computer. If the parallel port is already captured, the virtual machine cannot capture it. If the virtual machine
captures the parallel port, the parallel port is not released to the physical
computer, and the parallel port is not available to any other virtual machine until you shut down the virtual machine.
Article ID: 833132 - Last Review: September 10, 2011 - Revision: 2.0
- Microsoft Virtual PC 2004
|kbhowtomaster kbinfo KB833132|