LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 09-16-2014, 09:58 PM   #1
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Rep: Reputation: 56
Guest fails detecting USB device


Hi all,


host Ubuntu 12.04 64bit
guest Win7
Oracle VirtualBox
Epson Perfection 3490 photo scanner
guest-addition on Win7 already installed on Win7

I have encountered the problem making Win7 to detect the scanner and tried several days without a solution. I found;
VirtualBox doesn't recognize USB [duplicate]
http://askubuntu.com/questions/14008...-recognize-usb

According to #22
I have installed gnome-system-tools on the host

$ groups satimis
Code:
satimis : satimis adm cdrom dip plugdev scanner lpadmin sambashare
Please help. Thanks in advance.

Regards
satimis
 
Old 09-17-2014, 12:04 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,604

Rep: Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960
Quote:
Originally Posted by satimis View Post
Hi all,
host Ubuntu 12.04 64bit
guest Win7
Oracle VirtualBox
Epson Perfection 3490 photo scanner guest-addition on Win7 already installed on Win7

I have encountered the problem making Win7 to detect the scanner and tried several days without a solution. I found; VirtualBox doesn't recognize USB [duplicate]http://askubuntu.com/questions/14008...-recognize-usb

According to #22 I have installed gnome-system-tools on the host

$ groups satimis
Code:
satimis : satimis adm cdrom dip plugdev scanner lpadmin sambashare
Did you try enabling the USB controller in the Virtualbox guest image?? Until you turn it on, it won't work. Right-click the image, click USB, and enable it. And the first two hits in Google for "USB devices won't work in virtualbox" are:
https://forums.virtualbox.org/viewtopic.php?f=3&t=22107
https://www.virtualbox.org/ticket/8873

...and one of which is a known bug report for certain USB devices.
 
Old 09-17-2014, 10:56 PM   #3
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Quote:
Originally Posted by TB0ne View Post
Did you try enabling the USB controller in the Virtualbox guest image?? Until you turn it on, it won't work. Right-click the image, click USB, and enable it. And the first two hits in Google for "USB devices won't work in virtualbox" are:
https://forums.virtualbox.org/viewtopic.php?f=3&t=22107
https://www.virtualbox.org/ticket/8873

...and one of which is a known bug report for certain USB devices.
Hi,

Thanks for your advice.

Yes, I have done.

Pls see USB Filter Detail.

I think it is NOT ONLY the problem of Win 7. Ubuntu 14.04 VM also has this problem unable to connect USB port

sudo fdisk -l
Code:
Disk /dev/sda: 42.9 GB, 42949672960 bytes
255 heads, 63 sectors/track, 5221 cylinders, total 83886080 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0006fbe6

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048      499711      248832   83  Linux
/dev/sda2          501758    83884031    41691137    5  Extended
/dev/sda5          501760    83884031    41691136   8e  Linux LVM

Disk /dev/mapper/ubuntu--vg-root: 40.5 GB, 40542142464 bytes
255 heads, 63 sectors/track, 4928 cylinders, total 79183872 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/mapper/ubuntu--vg-root doesn't contain a valid partition table

Disk /dev/mapper/ubuntu--vg-swap_1: 2147 MB, 2147483648 bytes
255 heads, 63 sectors/track, 261 cylinders, total 4194304 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/mapper/ubuntu--vg-swap_1 doesn't contain a valid partition table
Regards
satimis
Attached Thumbnails
Click image for larger version

Name:	usb_filter_detail.png
Views:	15
Size:	39.3 KB
ID:	16468  
 
Old 09-18-2014, 10:13 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,604

Rep: Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960
Quote:
Originally Posted by satimis View Post
Hi,
Thanks for your advice. Yes, I have done. Pls see USB Filter Detail.
And again, as you've been told SEVERAL times before, spell out your words, and don't use text-speak. It's "please" not "pls".
Quote:
I think it is NOT ONLY the problem of Win 7. Ubuntu 14.04 VM also has this problem unable to connect USB port
Then does the scanner work/get recognized at ALL under the host OS, bypassing the VM totally??? Have you verified that the scanner/USB port/hub/cable are all working and good? This points back to a common issue somewhere...either hardware, or the Virtualbox additional tools aren't installed/working correctly, or USB is disabled. Two different OS'es shouldn't have the EXACT same problem, unless there is a commonality between them somewhere.
Quote:
sudo fdisk -l
And what does your disk partition scheme have to do with a USB scanner?
 
Old 09-18-2014, 09:31 PM   #5
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Quote:
Originally Posted by TB0ne View Post
Then does the scanner work/get recognized at ALL under the host OS, bypassing the VM totally??? Have you verified that the scanner/USB port/hub/cable are all working and good? This points back to a common issue somewhere...either hardware, or the Virtualbox additional tools aren't installed/working correctly, or USB is disabled. Two different OS'es shouldn't have the EXACT same problem, unless there is a commonality between them somewhere.
I can scan under host OS

Previously "simple-scan" and "xsane" only worked as root. Then I fixed the problem. I could scan as user. But after running several
Code:
apt-get update ; apt-get upgrade
That problem comes back. Now I must run
Code:
sudo simple-scan/xsane
first. Then after exiting it I can scan as users. I haven't found what is the cause?

Quote:
And what does your disk partition scheme have to do with a USB scanner?
$ sudo fdisk -l
Code:
Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders, total 234441648 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000cde8a

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048      499711      248832   83  Linux
/dev/sda2          501758   234440703   116969473    5  Extended
/dev/sda5          501760   234440703   116969472   8e  Linux LVM

Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00064d3a

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *        2048      499711      248832   83  Linux
/dev/sdb2          501758  3907028991  1953263617    5  Extended
/dev/sdb5          501760   391124991   195311616   83  Linux
/dev/sdb6       391127040   393078783      975872   82  Linux swap / Solaris
/dev/sdb7       393080832  3907028991  1756974080   83  Linux

Disk /dev/sdc: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
/dev/sdb1   *        2048      499711      248832   83  Linux
/dev/sdb2          501758  3907028991  1953263617    5  Extended
/dev/sdb5          501760   391124991   195311616   83  Linux
/dev/sdb6       391127040   393078783      975872   82  Linux swap / Solaris
/dev/sdb7       393080832  3907028991  1756974080   83  Linux

Disk /dev/sdc: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000c92e3

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1            2048  1953523711   976760832   83  Linux

Disk /dev/mapper/localhost-root: 85.5 GB, 85513469952 bytes
255 heads, 63 sectors/track, 10396 cylinders, total 167018496 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/mapper/localhost-root doesn't contain a valid partition table

Disk /dev/mapper/localhost-swap_1: 34.3 GB, 34259075072 bytes
255 heads, 63 sectors/track, 4165 cylinders, total 66912256 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/mapper/localhost-swap_1 doesn't contain a valid partition table
Edit-1
====
Remark:
Code:
HDDs
SSD 120G		OS
HDD1 (WD 2TB)		for VMs and data storage
HDD2 (WD 1TB)		for data storage (spare)

Edit-2
======
I found out the cause.

After booting, run "Home Folder"
To connect HDD1 it popup "request for password"
After login I can start xsane/simple-scane on host as user without going through as "root" first.

But on VM (Ubuntu 14.04)(even as root) or Win7 (even as administrator) still unable to find the device (scanner)

Regards
satimis

Last edited by satimis; 09-18-2014 at 10:15 PM.
 
Old 09-19-2014, 08:32 AM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,604

Rep: Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960
Quote:
Originally Posted by satimis View Post
I can scan under host OS
Previously "simple-scan" and "xsane" only worked as root. Then I fixed the problem. I could scan as user. But after running several That problem comes back. Now I must run first. Then after exiting it I can scan as users. I haven't found what is the cause?
That's a separate issue.
Quote:
Edit-1
====
Remark:
Code:
HDDs
SSD 120G		OS
HDD1 (WD 2TB)		for VMs and data storage
HDD2 (WD 1TB)		for data storage (spare)
And AGAIN...WHY does your disk partition have ANYTHING TO DO with a USB scanner??? What's the purpose of posting it?
Quote:
Edit-2
======
I found out the cause. After booting, run "Home Folder" To connect HDD1 it popup "request for password" After login I can start xsane/simple-scane on host as user without going through as "root" first.
Great...which isn't the question you posted in this thread.
Quote:
But on VM (Ubuntu 14.04)(even as root) or Win7 (even as administrator) still unable to find the device (scanner)
...which takes us back to the VERY FIRST REPLY, and the one after that. AGAIN...either the virtualbox guest/additional tools aren't loaded, or you don't have the USB ports enabled on that VB container.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Detecting usb device type answerme Programming 3 06-16-2014 03:38 PM
Detecting a USB device which is write protected shedevil Linux - Newbie 2 09-25-2013 08:33 AM
usb device not detecting pieterparker17 Linux - Newbie 1 05-03-2011 06:05 AM
Best method for programmatically detecting a USB device? R00ts Linux - General 2 12-15-2010 09:36 AM
snd-usb-audio not detecting my device ekoome Linux - Kernel 1 07-15-2007 01:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 05:04 AM.

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