Can't get USB ports to Work

Questions about virtualization software
Forum rules
Before you post please read how to get help
Post Reply
rpbrown
Level 1
Level 1
Posts: 6
Joined: Mon May 18, 2015 6:12 pm

Can't get USB ports to Work

Post by rpbrown » Sat Jul 25, 2015 6:29 pm

I'm learning to run Win7-64 in a widow using VirtualBox (4.3.30) on my Linux Mint 17.2 machine. I've installed VB, and created the virtual Win7 machine but I can't get USB ports to work. That means i can't access my Windows data or operate my printer from VB.

Here's what I've done:

Installed VB 4.3.30 from Software Manager (as shown from the "Help" tab from with VB)

Installed the correct VB Extension Pack:

Oracle VM VirtualBox Extension Pack
Version:
4.3.30r101610
Description:
USB 2.0 Host Controller, Host Webcam, VirtualBox RDP, PXE ROM with E1000 support.

I've added myself to the virtualbox user group and confirmed that from the terminal:

rpbrown@JezzyVII ~ $ id
uid=1000(rpbrown) gid=1000(rpbrown) groups=1000(rpbrown),0(root),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),108(lpadmin),110(sambashare),124(vboxusers)

I tried adding a filter for my two devices; SanDisk Cruzer Glide, and Epson Artisan 730 (see attachment) but as you can see the Enable USB Controller button is grayed out.
USB Settings Screenshot
USB Settings Screenshot
I've attached a system report in case there is anything there that would be useful in resolving this problem.

Your assistance will be very much appreciated! I am a high school science teacher considered my most of my colleagues as an "early adopter". We'd like to use LM in our school but I have to be able to show teachers that they can still use whatever Windows apps they rely on. Solving this problem would go a long way to helping others switch to LM.

Thanks in advance!

rpbrown

User avatar
kyphi
Level 9
Level 9
Posts: 2624
Joined: Sat Jul 09, 2011 1:14 am
Location: The Hunter Valley, Australia

Re: Can't get USB ports to Work

Post by kyphi » Sat Jul 25, 2015 8:17 pm

If you have "saved the machine state" the USB configuration would be greyed out.

Use the "Power Off" option in VirtualBox to get full access to Settings and tick the box for USB2 support.

Have you installed the Guest Additions?

There is no need to add your USB printer.

USB options will be presented in your "Devices" menu.
Linux Mint 19.2 Cinnamon - 64bit

rpbrown
Level 1
Level 1
Posts: 6
Joined: Mon May 18, 2015 6:12 pm

Re: Can't get USB ports to Work

Post by rpbrown » Sun Jul 26, 2015 10:46 pm

kyphi-

Wow - talk about feeling like a complete newbie.

Your solution/instructions worked perfectly. I've been able to finish setting up my VM running Win7-64, and the several programs I can't get Linux versions of, and all appears to be working just fine. I was also able to tweak the other settings that had been bugging me as well. I will be sharing this with the IT folks at school.

Thanks Again,

rpbrown

chiefjim
Level 5
Level 5
Posts: 851
Joined: Sun Jun 07, 2009 7:26 am
Location: South Texas, USA

Re: Can't get USB ports to Work

Post by chiefjim » Sun Aug 16, 2015 8:09 pm

Another user unable to access USB. Guest additions is included. Ditto build-essentials. Also included vboxusers as a group. But still the USB remains greyed out. Message at bottom of screen says " Invalid settings detected"

On my MB the USB flash drive is plugged into a 2.0/1.1 port

Where else should I check?
Desktop:
Mint-18.3 Mate 64 bit
MSI B85M-E45
Intel G3258
Crucial Ballistic Sport 8GB DDR3 1600
2TB HDD WD Black 7200rpm

Laptop:
Acer Aspire AS5552-5898
Mint-17.3 Mate 64 bit
AMD Phenom II Triple-Core N830
4GB Memory DDR3
500GB HDD 5400rpm

Cosmo.
Level 23
Level 23
Posts: 17830
Joined: Sat Dec 06, 2014 7:34 am

Re: Can't get USB ports to Work

Post by Cosmo. » Mon Aug 17, 2015 5:08 am

You don't need build-essentials for that,but you need the VB extension pack.

You have added the user in the host or in the guest to vboxusers group?

In which situation does the message appear?
if you get a error message, you can click n the small arrow inside, which gives additional information.
Are filters set? Remove them.

What kind of USB device?

chiefjim
Level 5
Level 5
Posts: 851
Joined: Sun Jun 07, 2009 7:26 am
Location: South Texas, USA

Re: Can't get USB ports to Work

Post by chiefjim » Tue Aug 18, 2015 7:01 am

This project may take awhile. After trying different settings I did get the USB flash drive to be recognized. Copied a couple files back and forth successfully.

Later while using Win7 I did a Windows update. Now it gets strange. Windows sees the devices and identifies them by name but when I try to activate them they are rejected. Perhaps I need to wipe Win7 and begin from scratch

With the same system settings XP seems to work fine with USB.
Desktop:
Mint-18.3 Mate 64 bit
MSI B85M-E45
Intel G3258
Crucial Ballistic Sport 8GB DDR3 1600
2TB HDD WD Black 7200rpm

Laptop:
Acer Aspire AS5552-5898
Mint-17.3 Mate 64 bit
AMD Phenom II Triple-Core N830
4GB Memory DDR3
500GB HDD 5400rpm

Cosmo.
Level 23
Level 23
Posts: 17830
Joined: Sat Dec 06, 2014 7:34 am

Re: Can't get USB ports to Work

Post by Cosmo. » Tue Aug 18, 2015 11:21 am

USB devices can be used in VMs for several jobs. But I warn you to use any kind of drive for this, you are in the risk of data loss.

The reason is, that a USB device gets at first connected with the host. When you now connect it with the guest, it will necessarily disconnect from the host, but there is no proper shutdown for the device in the host. So it is the same situation as if you pull out the device from the USB port without calling the eject command.
See also chapter 3.1 in the help file of VB.

For copying files from a VM to a USB drive or vice versae you should use another method, e.g. copy it at first to a folder on the host, which you have set as shared folder in VB.

chiefjim
Level 5
Level 5
Posts: 851
Joined: Sun Jun 07, 2009 7:26 am
Location: South Texas, USA

Re: Can't get USB ports to Work

Post by chiefjim » Tue Aug 18, 2015 6:30 pm

That makes sense. I've already seen a warning to "fix" the files on the removable flash drive.

System seems better now that I replaced the 4.3.10 series with 5.0.2
Desktop:
Mint-18.3 Mate 64 bit
MSI B85M-E45
Intel G3258
Crucial Ballistic Sport 8GB DDR3 1600
2TB HDD WD Black 7200rpm

Laptop:
Acer Aspire AS5552-5898
Mint-17.3 Mate 64 bit
AMD Phenom II Triple-Core N830
4GB Memory DDR3
500GB HDD 5400rpm

mehimu
Level 2
Level 2
Posts: 58
Joined: Sun Aug 03, 2014 12:49 am
Contact:

Re: Can't get USB ports to Work

Post by mehimu » Sat Sep 26, 2015 12:52 am

I faced this type of problem, when using it in VMware, but after that i checked the option show connected usb. In virtual box, see if there is any this type of option or not.
I am learning linux and computer networking more and more. I've a blog related to computer networking. If you are interested may visit there. Thanks
whilenetworking.com

Cosmo.
Level 23
Level 23
Posts: 17830
Joined: Sat Dec 06, 2014 7:34 am

Re: Can't get USB ports to Work

Post by Cosmo. » Sat Sep 26, 2015 5:47 am

Besides the fact that the discussion already several weeks old: You missed the point.

The question is not, if a USB drive is technically usable in VB (it is), but that this might lead to data loss.

Post Reply

Return to “Virtualization”