LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-23-2010, 03:19 PM   #1
baronobeefdip
Senior Member
 
Registered: Jul 2009
Distribution: Debian Squeeze
Posts: 1,267

Rep: Reputation: 32
how do i get virtualbox to connect to the printer i have


i am using ubuntu lucid lynx and the latest verdsion of virtualbox and i have this lexmark printer which lexmark doesn't provide drivers for, so i installed windows xp pro in virtualbox and granted my user account the permission to use the usb interface with virtualbox but one problem it won't let me connect the printer while it lets me connect all the other usb devices (flahs drives and web cams) it worked when i was using pclinuxos but now for some reason its not letting me

i am doing this because my version of windows 7 just crashed anmd will not come up and i have no other choice
 
Old 08-24-2010, 09:23 AM   #2
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198
IDK Lucid but nobody has answered this yet ...

As it is only the printer that is not working we know that the essentials of VirtualBox/USB are OK and we can focus on printer specifics.

Gathering information ...

All this to be done on the host, not the guest.

Please log on as the VirtualBox user and post the output from
Code:
VBoxManage list usbhost
If you can identify the printer in that output, copy its UUID and post the output from (changing the values in <...>)
Code:
VBoxManage controlvm "<your VM name, e.g. WXP>" usbattach <UUID copied above>
Next we want to know the permissions on the printer's device file. IDK the best way to do that. Can you find something in the /var/log/* files, when you plug the printer in? Here's from /var/log/messages (on Slackware, not Ubuntu) on plugging an HP USB printer in
Code:
1735 Aug 24 12:34:52 CW9 kernel: [    2.420179] usb 2-1: New USB device found, idVendor=03f0, idProduct=2811
1736 Aug 24 12:34:52 CW9 kernel: [    2.425062] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
1737 Aug 24 12:34:52 CW9 kernel: [    2.429854] usb 2-1: Product: PSC 2100 Series
1738 Aug 24 12:34:52 CW9 kernel: [    2.434614] usb 2-1: Manufacturer: Hewlett-Packard
1739 Aug 24 12:34:52 CW9 kernel: [    2.439478] usb 2-1: SerialNumber: blah blah blah ...
If you can find something similar to that, note the usb bus and index numbers like the 2-1 in the example above and post the output from
Code:
ls -l /proc/bus/usb/<bus number>/<index number>
Here's an example
Code:
ls -l /proc/bus/usb/002/001
-rw-rw-r-- 1 root vboxusers 43 2010-08-24 12:34 /proc/bus/usb/
 
Old 08-24-2010, 09:15 PM   #3
baronobeefdip
Senior Member
 
Registered: Jul 2009
Distribution: Debian Squeeze
Posts: 1,267

Original Poster
Rep: Reputation: 32
i ran that first command you showed me and this is what came up

Code:
UUID:               3f710b0a-41a7-4b7f-bf41-1988351c2292
VendorId:           0x043d (043D)
ProductId:          0x0108 (0108)
Revision:           1.0 (0100)
Manufacturer:       Lexmark 
Product:            1300 Series
SerialNumber:       20A000080009529
Address:            sysfs:/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.5//device:/dev/bus/usb/002/005
Current State:      Unavailable
 
Old 08-24-2010, 10:51 PM   #4
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198
Now you can try the second command using 3f710b0a-41a7-4b7f-bf41-1988351c2292
as the UUID (but run the first command again to make sure it hasn't changed).

EDIT: and you can run ls -l /dev/bus/usb/002/005 or whatever is shown by the first command when you run it again.

Last edited by catkin; 08-24-2010 at 10:53 PM.
 
Old 08-25-2010, 07:02 PM   #5
baronobeefdip
Senior Member
 
Registered: Jul 2009
Distribution: Debian Squeeze
Posts: 1,267

Original Poster
Rep: Reputation: 32
what do you mean by vm name
 
Old 08-25-2010, 07:15 PM   #6
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.2 & current
Posts: 7,896
Blog Entries: 59

Rep: Reputation: Disabled
The name you gave to the virtual machine when you first created it in VirtualBox.
 
Old 08-25-2010, 08:43 PM   #7
baronobeefdip
Senior Member
 
Registered: Jul 2009
Distribution: Debian Squeeze
Posts: 1,267

Original Poster
Rep: Reputation: 32
well my machines name is tux and i just put in my virtualmachines name along with the code you told me to put in and it says that the machine cannot be found

Code:
ERROR: Could not find a registered machine named 'tux'
Details: code VBOX_E_OBJECT_NOT_FOUND (0x80bb0001), component VirtualBox, interface IVirtualBox, callee nsISupports
Context: "FindMachine(machineuuid, machine.asOutParam())" at line 82 of file VBoxManageControlVM.cpp
baronobeefdip@baronobeefdip-desktop:~$ sudo VBoxManage controlvm "<tux>" 3f710b0a-41a7-4b7f-bf41-1988351c2292
Oracle VM VirtualBox Command Line Management Interface Version 3.2.8
(C) 2005-2010 Oracle Corporation
All rights reserved.
http://img529.imageshack.us/img529/5...reenshotdt.png
 
Old 08-25-2010, 09:02 PM   #8
baronobeefdip
Senior Member
 
Registered: Jul 2009
Distribution: Debian Squeeze
Posts: 1,267

Original Poster
Rep: Reputation: 32
alright so i finally got the vm name right but when i put in the vm name and the uuid this is what came up

Code:
ERROR: The USB device with UUID {3f710b0a-41a7-4b7f-bf41-1988351c2292} is not currently attached to the host
Details: code NS_ERROR_INVALID_ARG (0x80070057), component USBProxyService, interface IHost, callee nsISupports
Context: "AttachUSBDevice(usbId)" at line 618 of file VBoxManageControlVM.cpp
 
Old 08-26-2010, 12:02 AM   #9
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198
Quote:
Originally Posted by baronobeefdip View Post
alright so i finally got the vm name right but when i put in the vm name and the uuid this is what came up ...
That's OK, half expected. Can you try the ls -l /dev/bus/usb/002/005 changing 02 and 005 to suit?
 
  


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
Trying to connect to a VirtualBox Windows guest through RDP ErEn Linux - Networking 1 04-03-2010 04:45 PM
Virtualbox CentOS Guest can not connect to Internet from XP Host sokha Linux - Virtualization and Cloud 2 03-31-2010 12:28 AM
Sun VirtualBox: Guest is Unable to Connect to Host By Hostname Cottonwoody Linux - Virtualization and Cloud 5 11-13-2009 12:31 PM
Unable to connect Virtualbox XP Guest to MySQL on Ubuntu Host pabs111 Linux - Newbie 3 06-05-2009 03:28 PM
VirtualBox - connect to remote host Mig21 Linux - Software 0 03-16-2009 07:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:07 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration