Jump to content

SOLVED: How to utilize Network Printer in Windows XP guest VM (VBox)


ichase

Recommended Posts

First of all, I am on the fense whether this post belongs in the Windows forums or the Linux forums. The host for my Windows XP VM is Arch Linux.

I have this VM for work purposes. Before setting it up, I would have to re-boot into my Windows 7 partition. I have everything set up for this VM to be actually more optimal than my company laptop. Not to mention I don't have to reboot into Win 7 anymore (Actually, can't see me booting into this anytime soon :thumbup: )

Guest Additions are properly set up. I have access to my SAMBA storage configured. I even created a folder in my host /home directory ( VM_Storage) and have it properly mapped as a network Drive (H:/ drive) This is great considering I made the VM only 20 GB.

The only thing I can't figure out is how to see my network printer. I know what you are thinking. Here we go again with Ian trying to print from Linux :hysterical: ) but technically I am not trying to print from Linux, I am trying to print from the WinXP Pro Guest VM. ;)

 

First thing I did was to see if Windows would detect my printer on the network. It did not. So I tried utilizing the default gateway of my guest OS using port 631

http : //DEFAULTGATEWAY:631/printers/Officejet_7300

That gave me an error stating it could not find the printer and that the printer may not be active. The printer IS active and I confirmed that on my wife's netbook running Win7.

 

I then tried using the IP of the Server

http : //Server_IP:631/printers/Officejet_7300

Same thing.

 

As I am sitting here typing this, I wonder if using HTTPS vice HTTP might do the trick. I had to use HTTPS to connect to my CUPS web interface via port 631. Hmmmmmmm

Edited by ichase
Link to comment
Share on other sites

Does the VM machine have an IP on your actual router or does it use a virtual network?

I believe it uses the vitual network

Link to comment
Share on other sites

securitybreach
The default NAT setup does work, I didn't need to mess with the networking!!

 

I am using Ubuntu 7.04 with Windows XP as a Guest OS, but I'm sure this will work similarly with other Host OS's running XP.

 

If you go to add the printer in Control Panel on the Guest XP OS, you select Network Printer then select the "Connect to a printer on the Internet or on a home or offfice network" option.

 

In the URL field below that you need to type it in this format.

 

http://defaultgateway:631/printers/PRINTERNAME

 

The Default Gateway of my XP OS is 10.0.0.2 and my printer name is Photosmart_2570 so mine looked like this.

 

hhttp://10.0.2.2:631/printers/Photosmart_2570

 

Then after you click Next it will ask you to install the driver for it.

https://forums.virtu...opic.php?t=1465

Link to comment
Share on other sites

That's what I did. I just got it working by instead of using the default gateway address I used the IP of the Server with the port 631. Plus using HTTPS vice HTTP :thumbup:

 

https : // 192.168.X.XX:631/printers/Officejet_7300

 

Josh, please set topic as solved.

 

Thanks,

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...