Printing in guest os

Discussions related to using VirtualBox on Linux hosts.
Post Reply
fred6633
Posts: 9
Joined: 14. Apr 2008, 19:58

Printing in guest os

Post by fred6633 »

Hello,

Kubuntu host and win 2000 guest.

My printer is connected to an USB port.

When I in the guest os connect to that USB port, a Windows dialog says new hardware detected and wants to install drivers for that printer.

Shall I go on and install drivers or is there another way to get the printer working in the guest os.

Fred
metodk
Posts: 12
Joined: 28. Jan 2009, 09:48

Re: Printing in guest os

Post by metodk »

fred6633 wrote:Kubuntu host and win 2000 guest.

My printer is connected to an USB port.

When I in the guest os connect to that USB port, a Windows dialog says new hardware detected and wants to install drivers for that printer.

Shall I go on and install drivers or is there another way to get the printer working in the guest os.
You don't want to go down this path: whenever you allow guest to use USB port, it becomes unavailable to host OS.

What you want to do is to install samba on your Kubuntu and setup it so that it allows remote printing to your printer. Then setup printing in Windows so that it uses 'network' printer from your host OS as if it was a completely separate machine.
fred6633
Posts: 9
Joined: 14. Apr 2008, 19:58

Post by fred6633 »

Thanks,
Then setup printing in Windows so that it uses 'network' printer from your host OS as if it was a completely separate machine.
Is that complicated?

But if I do want to use the printer in the guest os by allowing it to use the USB port, then I need to install drivers in the guest os?

I will print very rarely in the guest os and if it's just to disconnect from the USB port when I've finished printing, it's no problem if the printer is unavailable for the host os a short while.

Fred
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 need the printer anyway, so install it for now.

There are plenty of Samba tutorials on the web. The default settings should already share your printer, you just need a valid Samba user and you're done.
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.
fred6633
Posts: 9
Joined: 14. Apr 2008, 19:58

Post by fred6633 »

Thanks,
I will try to get some information of Samba.

In the add new printer wizard in Windows I shall, from what I understand, select network printer. It's here I am lost.

Fred
metodk
Posts: 12
Joined: 28. Jan 2009, 09:48

Post by metodk »

fred6633 wrote:Thanks,
I will try to get some information of Samba.

In the add new printer wizard in Windows I shall, from what I understand, select network printer. It's here I am lost.
Actually, do it the other way around: first set up Samba. When it's done, you can open Windows explorer in your Guest OS, browse the network until you find your Host OS and select (double click) the shared printer there. Probably Windows will ask you about the driver whereabouts and then point it to CD or where ever you have drivers. Or you can even try to let Windows find the driver on the net.
This way you don't have to do the printer setup manually.
fred6633
Posts: 9
Joined: 14. Apr 2008, 19:58

Post by fred6633 »

Thanks a lot,

I will give it a try.

Fred
Post Reply