LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 12-01-2009, 06:00 PM   #1
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-14.1
Posts: 1,216

Rep: Reputation: 177Reputation: 177
Printing from guest XP machine in Virtualbox


So I decided to finally start using virtualbox now that I got a larger hard drive. I installed xp in a virtual machine and it is working fine except that I can't print, I googled around and found that it is possible but was wondering what steps i need to take to get this working.

Thanks.
 
Old 12-01-2009, 06:16 PM   #2
camorri
Senior Member
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.0 + 14.1
Posts: 4,834

Rep: Reputation: 431Reputation: 431Reputation: 431Reputation: 431Reputation: 431
There are at least two ways. It partly depends on how your printer attaches to the system. USB devices should be no problem. On Virtual box, start it up, and click Settings, and then USB. Create a filter for the device. Once XP can see the device, then install the printer in XP as if it were stand alone.

Second method. Run a samba server on linux, and share the printer. On XP install the printer as a Network Printer.

The second method is much more complex, because of the Samba server. It has the added advantage of allowing you read write access from windoze to your linux shared directories, as well as shared printers.

I had the samba server working, long before I install virtualbox.

The first method is fast, and outside of making the filter to allow XP access to the USB hardware, is about the same as adding a printer in XP.

Last thoughts, if your printer is a parallel port printer, or a serial port printer, you might have to go with method 2. I don't think there is a way to access the parallel port with a printer. There is access for the serial ports, however I think that is for modems, not printers.

Hope this helps.

Last edited by camorri; 12-01-2009 at 06:19 PM.
 
Old 12-01-2009, 06:20 PM   #3
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-14.1
Posts: 1,216

Original Poster
Rep: Reputation: 177Reputation: 177
ok, I got the printer hooked up via USB in slackware. I just looked under settings in vbox and I dont see any tabs for USB. Do I need to launch XP first?
 
Old 12-01-2009, 06:47 PM   #4
slackass
Member
 
Registered: Apr 2006
Location: SE Texas
Distribution: Slack64-C ML
Posts: 883

Rep: Reputation: 78
Are you using the OSE or PUEL version?
If your using the OSE version that is on the SlackBuild site USB is not supported.
The PUEL version doses support USB.
I have the PUEL version on a Slack64 host with a XP guest with an HP all-in-one working via USB.
 
Old 12-02-2009, 12:26 AM   #5
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-14.1
Posts: 1,216

Original Poster
Rep: Reputation: 177Reputation: 177
I am using the OSE, I will look into the PUEL version.
 
Old 12-03-2009, 03:29 AM   #6
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-14.1
Posts: 1,216

Original Poster
Rep: Reputation: 177Reputation: 177
So I am thinking about maybe trying the puel version, if I decided to remove my ose edition packages how can I backup my winxp installation? Im guessing just the virtual image and home directories?
 
Old 12-03-2009, 04:03 AM   #7
JokerBoy
Member
 
Registered: Sep 2009
Posts: 140

Rep: Reputation: 23
Quote:
Originally Posted by Daedra View Post
how can I backup my winxp installation?
look into "~/.VirtualBox/HardDisks"
 
Old 12-03-2009, 08:34 AM   #8
slackass
Member
 
Registered: Apr 2006
Location: SE Texas
Distribution: Slack64-C ML
Posts: 883

Rep: Reputation: 78
Just save the .vmdk image and use it instead of creating a new drive when you set up the new puel version. I keep mine on a separate partition so I can open it from whatever os I'm using at the time.
 
Old 12-03-2009, 08:49 AM   #9
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,528
Blog Entries: 27

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by slackass View Post
Just save the .vmdk image and use it instead of creating a new drive when you set up the new puel version. I keep mine on a separate partition so I can open it from whatever os I'm using at the time.
Yes -- the "whatever os I'm using at the time" is neat. But doesn't VirtualBox use .vdi files for HDD images?

Last edited by catkin; 12-03-2009 at 08:51 AM.
 
Old 12-03-2009, 08:53 AM   #10
camorri
Senior Member
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.0 + 14.1
Posts: 4,834

Rep: Reputation: 431Reputation: 431Reputation: 431Reputation: 431Reputation: 431
Yes it does use .vdi files. Here is where I store mine.

Quote:
locate *.vdi
/home/cliff/.VirtualBox/HardDisks/XPeeee.vdi
Note the .VirtualBox directory is hidden, ( the period ).

I have removed and re-installed the Virtual Box rpm file several times. It just seems to find the .vdi files without any problem.
 
Old 12-03-2009, 09:42 AM   #11
slackass
Member
 
Registered: Apr 2006
Location: SE Texas
Distribution: Slack64-C ML
Posts: 883

Rep: Reputation: 78
Mine is a "vmdk".
The full name of it is winxp.vmdk
It has 2 partitions in it.
20gb for the os & 40gb for drive D

http://i773.photobucket.com/albums/y.../snapshot2.png

Last edited by slackass; 12-03-2009 at 10:15 AM. Reason: added photo link
 
1 members found this post helpful.
Old 12-03-2009, 05:24 PM   #12
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-14.1
Posts: 1,216

Original Poster
Rep: Reputation: 177Reputation: 177
Ok so I got the puel version installed and working, I searched around the forums and can across a post about usbfs permissions so i added the line

none /proc/bus/usb usbfs auto,remount,devmode=0664,devgid=100 0 0

to my /etc/fstab and now I have access to all usb devices that I want except my printer (its greyed out under options) my USB harddrive was available and it workng so I am assuming that usb is working, but for some reason the printer is unavailable.

Anyone got any more ideas?

Thanks in Advance.
 
Old 12-03-2009, 07:04 PM   #13
slackass
Member
 
Registered: Apr 2006
Location: SE Texas
Distribution: Slack64-C ML
Posts: 883

Rep: Reputation: 78
I hate to ask this but dose your printer require software for windows that you may have forgot to install? The only reason I ask is because I did that little brain fart myself.
 
Old 12-03-2009, 10:42 PM   #14
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-14.1
Posts: 1,216

Original Poster
Rep: Reputation: 177Reputation: 177
It's an old laserjet 1200 printer so its well supported in all the operating systems i've used. I think it's something im doing I just have to figure it out.
 
Old 12-03-2009, 11:39 PM   #15
slackass
Member
 
Registered: Apr 2006
Location: SE Texas
Distribution: Slack64-C ML
Posts: 883

Rep: Reputation: 78
I see you used /etc/fstab
I was probably doing it wrong but I was unable to get usb working by editing fstab.

what I did was:
Add
/sbin/mount -v usbfs /proc/bus/usb -t usbfs -o devgid=10,devmode=0664
to /etc/rc.d/rc.S

then add my user to:
wheel
vboxusers

then:
In VirtualBox Controll set Network to "Bridged Adaptor"

then:
Check both boxes in the USB section.

This may not be the correct way to do it but it works for me.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Date and time out on VirtualBox Guest OS iPatch Linux - Virtualization and Cloud 1 10-31-2009 06:00 PM
problem installing guest additions in Fedora 11 guest (virtualbox) mia_tech Linux - Desktop 9 07-28-2009 12:15 AM
Virtualbox Gentoo Guest - Can't get guest additions working MALDATA Gentoo 3 06-18-2009 11:43 PM
virtualbox-guest-addition Slackbuilds ppr:kut Slackware 0 09-20-2008 03:52 PM
Compiling Virtualbox Guest Additions paulsiu DamnSmallLinux 5 11-19-2007 10:35 PM


All times are GMT -5. The time now is 06:14 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration