Can Linux host use a USB printer connected to WinXP guest?

Discussions about using Windows guests in VirtualBox.
Post Reply
moon
Posts: 9
Joined: 6. Jan 2009, 23:08

Can Linux host use a USB printer connected to WinXP guest?

Post by moon »

The host is Ubuntu Hardy. The printer is a Cannon PIXMA MP960 which only comes with Windows drivers and there are no Linux drivers available for this printer (the last time I checked). At this time I am only using the WinXP VM to do print jobs from the Linux host. When I want to print something in the Linux host, I print to a 'PDF' printer and save the file to a shared folder, then go to the WinXP guest and open a PDF reader and print the file.

This is working fine but I am wondering if there is a way to set up a network between the guest and host so that the host can directly use the printer that is connected to the guest? i.e. it would be nice if the guest printer could show up on the host printer list so that I can print directly from the Linux application. Also I don't want the WinXP guest to be connected to the internet at any time.

I searched the forums but most users want to connect a guest VM to a host printer but I want to do it the other way around.

Sincere thanks,
Bill
moon
Posts: 9
Joined: 6. Jan 2009, 23:08

Post by moon »

Thanks very much for the response.

The first link doesn't seem to provide any info for my printer but I will try to look into it further.

I've seen the second link before (Turboprint) but unless I'm missing something this is a 30 day trial download. $40 U.S. seems like a lot to pay for a printer driver.

I've seen the third link also but if you read the fine print, they are suggesting to use a driver for another printer (a Canon iP6700). I've tried this and it is ok for text but not satisfactory for graphics.

So, I think I am still in the situation of not having a Linux printer driver and am curious to know if there might be a network solution as I described in the original post.

Thanks again,
Bill
aydun
Posts: 10
Joined: 6. Jan 2009, 00:56

Post by aydun »

See http://www.dragonblogger.com/2008/07/ub ... t-printer/

1) Install the printer as normal in Windows guest - sounds like you already have this working.

2) Then use redmon, ghostscript, gsview to create a postscript printer in the guest that prints to your actual windows printer. See url for details

3) Share the printer in the guest.

4) From the Ubuntu host, setup a network printer (windows printer via Samba) and select the shared printer from the guest.

To your original question re networking, mine is configured with Host Interface networking for simplicity. NAT with port-forwarding might work, but I haven't tried it.

If you don't want the guest to access the internet, you could use a firewall on the host - see eg http://forums.virtualbox.org/viewtopic.php?t=13606

But once you've done all that, you might wish you had just bought a new printer with decent Linux support instead!

Hope that helps
stefan.becker
Volunteer
Posts: 7639
Joined: 7. Jun 2007, 21:53

Post by stefan.becker »

Turboprint is the best driver. All other solutions instead of a linux driver are crappy by default.
jerkface
Posts: 4
Joined: 23. Jun 2008, 01:04

Post by jerkface »

Dude, I was wondering the same thing. I have a Pixma MP 530 and there is no linux driver. Turbo Print ain't free. :evil:
stefan.becker
Volunteer
Posts: 7639
Joined: 7. Jun 2007, 21:53

Post by stefan.becker »

So what?

Software must not be free to be good ...

Im using the package for many years with many different printers. There is no better solution with that print quality and functions like inklevel, cleaning functions etc.

But you can use it after the 30 days, but then on every page there is a logo.
moon
Posts: 9
Joined: 6. Jan 2009, 23:08

Post by moon »

Hey Aydun, thanks a lot. I knew somebody would come through! That looks like it will do the job.
But once you've done all that, you might wish you had just bought a new printer with decent Linux support instead!
Ha ha. Good point! This will be a good learning experience.

Thanks again,
Bill
jerkface
Posts: 4
Joined: 23. Jun 2008, 01:04

Post by jerkface »

stefan.becker wrote:Software must not be free to be good ...
Dude, who pays for print drivers. If that's the state of things, where you HAVE to pay for decent print drivers, Linux is screwed. :evil:
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 »

If the printer manufacturer doesn't support Linux, it plain sucks. Buy a different make.
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.
moon
Posts: 9
Joined: 6. Jan 2009, 23:08

Post by moon »

Thanks for the sage advice Sasquatch, but

1.) When I bought the printer it was not for use in a linux machine and

2.) It is otherwise a pretty nice printer/scanner

so unless you are going to be sending me a check for a few hundred dollars to buy a new one, this printer will have to do for the foreseeable future.

Regards,
Bill
stefan.becker
Volunteer
Posts: 7639
Joined: 7. Jun 2007, 21:53

Post by stefan.becker »

This is not a VBOX Problem.

Write this to the manufacturer of your printer.
moon
Posts: 9
Joined: 6. Jan 2009, 23:08

Post by moon »

This is not a VBOX Problem.
moon
Posts: 9
Joined: 6. Jan 2009, 23:08

Post by moon »

This is not a VBox Problem.
No, this is not a VBox problem at all but VBox offers a nice solution as aydun described in his constructive post above.
Citral
Posts: 5
Joined: 13. Jun 2009, 18:05
Primary OS: Other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win XP

Re: Can Linux host use a USB printer connected to WinXP guest?

Post by Citral »

4) From the Ubuntu host, setup a network printer (windows printer via Samba) and select the shared printer from the guest.
How do I find the guest printer from the CUPS interface of the host? Via some SAMBA name of the VirtualBox instance?
Post Reply