Printing from windows guest

Discussions related to using VirtualBox on Windows hosts.
Post Reply
erapid
Posts: 4
Joined: 8. Dec 2008, 23:38

Printing from windows guest

Post by erapid »

I have read tons of messages - no answer

USB method. Even if it works - you lost printer on Host. But i can't setup it - "ta ta ta ... USB busy "
Network method. NAT case - 10.0.2.2 opens, wow - shared printer! But on connection Guest says "I have no idea where is the printer ... Umm, I have lost connection"
In Russia, we have saying about that - ''It would be funny if it were not so sad'

Is there any solution to print from Windows guests? Host printer, network printer - no difference

Any

:)
databaseben
Posts: 1
Joined: 9. Dec 2008, 00:50

device usb hp1000 is seen but not funtional.

Post by databaseben »

i'm having a somewhat similar issue except that i am running ubunto in virtual box from vista.

the virtual box device for usb hp printer 1000 is recognized and seems active.

and virtual ubunto also installed the usb hp1000 driver as well. however, ubunto cannot connect to the virtual box device.

so i am also seeking for the cause as to the lack of communication between virtual box and ubunto.
The MAZZTer
Volunteer
Posts: 129
Joined: 16. Sep 2008, 23:22
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu, Chromium OS, Windows
Location: Internet
Contact:

Post by The MAZZTer »

Windows has many quirks when sharing folders and printers. One way to ensure minimal trouble from these is to use a local user account with the same username and password as on the remote computer... and assuming the remote account has access to the printer.

I would also advise going to Start > Run in the local computer (in this case, the VM) and typing \\10.0.2.2

This should show you an explorer window with all the shared resources from that computer. If you get any error messages you will have to fix them. "Access denied" means a problem on the remote (ie host OS) computer with permissions. If you get connection errors it is a networking problem (try using a Virtual Host Interface instead of NAT).
erapid
Posts: 4
Joined: 8. Dec 2008, 23:38

Post by erapid »

The MAZZTer wrote:Windows has many quirks when sharing folders and printers. One way to ensure minimal trouble from these is to use a local user account with the same username and password as on the remote computer... and assuming the remote account has access to the printer.
Are U from VB command?
Ok. Lets describe
I have a computer with USB printer. Printer is shared. Anybody (who needs) can print via network. That's not a problem.
One day I tried VB 2.0 then 2.02 and so on
Excelent product. Really! I thing MS dreams about. I'm seriously! Anybody who try VirtualPC agree with me
But another day I tried to print from guest
See 1st message
Guys, I can search google, I know that Windows has many quirks
but this is VB problem
The MAZZTer wrote:I would also advise going to Start > Run in the local computer (in this case, the VM) and typing \\10.0.2.2

This should show you an explorer window with all the shared resources from that computer. If you get any error messages you will have to fix them. "Access denied" means a problem on the remote (ie host OS) computer with permissions. If you get connection errors it is a networking problem (try using a Virtual Host Interface instead of NAT).
:D
Do you make it by yourself? Can you print from guest?
In my case the message that I receive: "You've entered the printer name incorrectly or the specified printer has lost it's connection to the server".
Nobody? It's only me? :)

And yes! - I tried NAT and VHI, no difference

Suggestion?

P.S.
As far as I understand there is only one solution - CUPS aka IPP aka http printing. But then you need linux host ... or MS Server 2003 ... it can too
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 »

Strange. As you might have found as a search result, there are high success rates for printing with NAT from a VM. I can even print on the printer at school using NAT without any issues. Have you tried to connect to the printer using your other Host IP, like 192.168.1.100, so not the 10.0.2.2?
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.
erapid
Posts: 4
Joined: 8. Dec 2008, 23:38

Post by erapid »

Working? What is your configuration?
I use 2.0.6, XP as guest, printer - HP
Yes, I have also tried via VHI

I have checked this on four computers
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 »

I simply had a Windows Guest (though others should work too), used NAT and connected to my school's network printer. I simply added a new printer port for TCP/IP, generic card and set it for the IP of the network printer. I've written how I've set it all up in more words before. Please search to find it. Yes, I know there are a lot of posts from me.
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.
erapid
Posts: 4
Joined: 8. Dec 2008, 23:38

Post by erapid »

Hmm... network printer through ip address. May be, didnt check. Sure it works

But what for host printer? It's seems that problem is when you try to print to XP
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 »

I believe that didn't really matter. All you have to do, is create a new printer port set for the IP of the Guest. You can try to use HTTP printing, but I don't know if that should work. Hmm, now that I think about it, there is a name after the printer IP on a Hosted printer. That could be a problem.

I will come back on this.
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.
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 »

Just tried it with my own printer, but the driver wouldn't install properly. I used some other driver, but that didn't even get my printer sprewing anything. I haven't tried hooking it up to USB, but if you failed, I'm pretty sure that I will too.
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.
fctc
Posts: 16
Joined: 9. Dec 2008, 10:47

Post by fctc »

Sasquatch wrote:Have you tried to connect to the printer using your other Host IP, like 192.168.1.100, so not the 10.0.2.2?
I might be missing something and I am new to all of this, but this is what I have done:

-Create a bridge network on the host between host's real adapter and VB Host Interface adapter.
-Reconfirmed network via network places and pings
-Back in Guest, Add/Remove Network Printer a la usual means


Before the Bridge Network, I had no luck with printing behind NAT from my XP Guest VM on top of Vista.
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 »

fctc wrote:
Sasquatch wrote:Have you tried to connect to the printer using your other Host IP, like 192.168.1.100, so not the 10.0.2.2?
I might be missing something and I am new to all of this, but this is what I have done:

-Create a bridge network on the host between host's real adapter and VB Host Interface adapter.
-Reconfirmed network via network places and pings
-Back in Guest, Add/Remove Network Printer a la usual means


Before the Bridge Network, I had no luck with printing behind NAT from my XP Guest VM on top of Vista.
You didn't really have to bridge the interfaces. If you put a different IP range to the virtual interface and the interface inside the Guest, it would work too. This is useful if you only have a wireless connection with a proper IP.
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.
fctc
Posts: 16
Joined: 9. Dec 2008, 10:47

Post by fctc »

Sasquatch wrote:
fctc wrote:
Sasquatch wrote:Have you tried to connect to the printer using your other Host IP, like 192.168.1.100, so not the 10.0.2.2?
I might be missing something and I am new to all of this, but this is what I have done:

-Create a bridge network on the host between host's real adapter and VB Host Interface adapter.
-Reconfirmed network via network places and pings
-Back in Guest, Add/Remove Network Printer a la usual means


Before the Bridge Network, I had no luck with printing behind NAT from my XP Guest VM on top of Vista.
You didn't really have to bridge the interfaces. If you put a different IP range to the virtual interface and the interface inside the Guest, it would work too. This is useful if you only have a wireless connection with a proper IP.
As much as I tried to put a static IP inside my VM to match the range of my host/real network, I was never able to 'see' my real network. My host used DHCP and my VM used a static. Is that the problem? The bridge just worked as advertised.
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 »

It works, that's all that matters. But you could have set a static IP on the Host side of the virtual interface, e.g. 192.168.100.1 and on the Guest set 192.168.100.2. No gateway, no DNS. You can then connect to the Host from the guest using it's IP address of 192.168.100.1.

This might make things more complicated, but in case you use a wireless interface, this is sometimes needed as not all wireless interfaces allows it to be bridged.
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.
Post Reply