Results 1 to 10 of 10

Thread: Install usb printer in virtualbox

  1. #1
    Join Date
    Feb 2005
    Location
    Windsor, California
    Beans
    289
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Install usb printer in virtualbox

    I'm running virtualbox 3.something on ubuntu 9.10. The VM is windows XP.

    I'm trying to install a printer that's already installed on the host linux system that works fine. I've shared it on the host and I want to connect the bridged vm to the shared computer so I can print from the VM.

    When I try to install the printer on the XP VM, I get through the installation to the point to where it asks me to plugin the printer. Since the printer is already plugged in and openvpn for ubuntu doesn't appear to support usb passthrough, I can't get the VM to see it to finish the installation.

    The problem is the printer installation program expects to see the printer directly attached during installation even though I plan to make it point at a network port later. Anyone know how to get around this problem?
    come on guys, it's all ball bearings nowadays

  2. #2
    Join Date
    Apr 2009
    Location
    /home/montel
    Beans
    Hidden!

    Re: Install usb printer in virtualbox

    You have to have the non-free version of VirtualBox from http://dlc.sun.com/virtualbox/vboxdownload.html#linux that will support USB. After that, you need to configure some options on the host.

    https://help.ubuntu.com/community/VirtualBox/USB

  3. #3
    Join Date
    Feb 2005
    Location
    Windsor, California
    Beans
    289
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: Install usb printer in virtualbox

    I was hoping to find a way that didn't involve usb passthrough. Perhaps by manually copying drivers or something.
    come on guys, it's all ball bearings nowadays

  4. #4
    Join Date
    Apr 2009
    Location
    /home/montel
    Beans
    Hidden!

    Re: Install usb printer in virtualbox

    Why don't you share the printer with Samba

  5. #5
    Join Date
    Feb 2005
    Location
    Windsor, California
    Beans
    289
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: Install usb printer in virtualbox

    I do share the printer with samba. That works fine. The trouble starts when I want to install the printer in the xp vm. The only way to install it in windows is to run the setup.exe file which expects the printer to be locally connected at some point in the install. That appears to require the non-free version of virtualbox unless there's another way or trick that people have been able to use which is the question/topic of this thread.
    come on guys, it's all ball bearings nowadays

  6. #6
    Join Date
    Mar 2009
    Location
    Brazil
    Beans
    475
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Install usb printer in virtualbox

    To add a network printer in Windows XP (I think in the other versions it's about the same) you have to open the control panel, open the "Printers and other hardware" window and use the "Add new printer" wizard, it might ask you for a driver, just point it to the CD or to the .exe file.
    Ubuntu User #27453 | Linux User #490358
    "Don't preach Linux, mention it"
    "Linux is not Windows"
    73% of statistics in forums are made up on the spot

  7. #7
    Join Date
    Feb 2005
    Location
    Windsor, California
    Beans
    289
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: Install usb printer in virtualbox

    Appreciate the help. This printer wasn't meant to be a network printer so going that route in XP doesn't work. There is only a setup.exe file that goes through a bunch of steps where you hit next, next, next and then it leaves you with a usb printer in your list of printers.

    What I then usually do is unplug the printer from XP, add a new network printer from scratch, choose one of the built in HP drivers that XP has inside it and finish the install. I then go to the printer properties, go to the advanced section and change the driver from the built-in hp driver to the specific driver for the printer that is now an option since the regular printer installation had been done when the printer was attached.

    I can't do this with a VM that doesn't have USB passthrough though so it looks like I'll have to install that version of virtualbox. I was just wondering if anyone had any other tricks I hadn't thought of such as copying files from an XP machine that already had the printer installed or something.
    come on guys, it's all ball bearings nowadays

  8. #8
    Join Date
    Jun 2009
    Location
    0000:0400
    Beans
    Hidden!

    Re: Install usb printer in virtualbox

    It's irrelevant that the printer wasn't designed to be a network printer, because CUPS will publish it to the network. You can make windows point to the url:
    Code:
    http://<host IP>:631/printers/<printer_name>
    This may require changing the CUPS config (in /etc/cups/cupsd.conf) to accept remote connections. Not sure how Ubuntu comes configured by default.

  9. #9
    Join Date
    Feb 2005
    Location
    Windsor, California
    Beans
    289
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: Install usb printer in virtualbox

    Sigh. Not making myself clear...

    Cups indeed makes the printer available on the network. Here's the problem: The printer installation program that comes with the printer for Windows XP REQUIRES the printer to be attached locally to the USB port at some point of the installation in order for it to copy over the right driver files and get everything going.

    This isn't a problem on a standalone XP machine (where XP is the host). In that case, I just connect the printer to the XP machine, do the driver install and then plug the printer back into the linux cups server. I then configure the printer in the XP machine to be attached via a network port instead of local USB.

    I can't do this procedure on an XP VM since I can't connect the VM to the printer directly via USB.
    come on guys, it's all ball bearings nowadays

  10. #10
    Join Date
    Aug 2006
    Beans
    78

    Re: Install usb printer in virtualbox

    Quote Originally Posted by fizgig View Post
    Sigh. Not making myself clear...

    Cups indeed makes the printer available on the network. Here's the problem: The printer installation program that comes with the printer for Windows XP REQUIRES the printer to be attached locally to the USB port at some point of the installation in order for it to copy over the right driver files and get everything going.

    This isn't a problem on a standalone XP machine (where XP is the host). In that case, I just connect the printer to the XP machine, do the driver install and then plug the printer back into the linux cups server. I then configure the printer in the XP machine to be attached via a network port instead of local USB.

    I can't do this procedure on an XP VM since I can't connect the VM to the printer directly via USB.
    Those are some crappy drivers, but that isn't unheard of. I hope this page helps you get USB passthrough working:
    https://help.ubuntu.com/community/VirtualBox/USB

    Thanks.
    -- Andruk (@) Tatum

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •