Remote USB Help

Discussions related to using VirtualBox on Linux hosts.

Remote USB Help

Postby md1011 » 17. Nov 2017, 23:17

Hello, I'm posting this for assistance after reading the USB FAQ in General Advice.

I can access the USB drive on the Guest when I plug it in to the Host.
I can not access the USB Drive on the Guest when I plug the USB Drive into the RDP Host. When I set the USB Device filter setting of Remote to "Yes", I lose the ability to access the USB drive period.

Thanks for reading...

Host = Ubuntu Server 16.04.3 LTS
RDP Host = Windows 7 Enterprise SP1 x64
Guest = Windows 7 Enterprise SP1 x86

VirtualBox 5.2.0r118431

Code: Select all   Expand viewCollapse view
id

uid=1000(marc) gid=1000(marc) groups=1000(marc),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),110(lxd),113(sambashare),117(lpadmin),118(vboxusers)


Code: Select all   Expand viewCollapse view
VBoxManage list extpacks

Extension Packs: 1
Pack no. 0:   Oracle VM VirtualBox Extension Pack
Version:      5.2.0
Revision:     118431
Edition:
Description:  USB 2.0 and USB 3.0 Host Controller, Host Webcam, VirtualBox RDP, PXE ROM, Disk Encryption, NVMe.
VRDE Module:  VBoxVRDP
Usable:       true
Why unusable:


Code: Select all   Expand viewCollapse view
VBoxManage list usbfilters

Global USB Device Filters:

<none>


Code: Select all   Expand viewCollapse view
VBoxManage showvminfo Win7x86

Name:   Win7x86
Groups:          /
Guest OS:        Windows 7 (32-bit)
UUID:            744fc242-1ba2-44a5-ac16-42446bca22a9
Config file:     /home/marc/.config/VirtualBox/VMs/Win7x86/Win7x86.vbox
Snapshot folder: /home/marc/.config/VirtualBox/VMs/Win7x86/Snapshots
Log folder:      /home/marc/.config/VirtualBox/VMs/Win7x86/Logs
Hardware UUID:   744fc242-1ba2-44a5-ac16-42446bca22a9
Memory size:     2048MB
Page Fusion:     off
VRAM size:       8MB
CPU exec cap:    100%
HPET:            off
Chipset:         piix3
Firmware:        BIOS
Number of CPUs:  1
PAE:             on
Long Mode:       off
Triple Fault Reset: off
APIC:            on
X2APIC:          off
CPUID Portability Level: 0
CPUID overrides: None
Boot menu mode:  message and menu
Boot Device (1): Floppy
Boot Device (2): DVD
Boot Device (3): HardDisk
Boot Device (4): Not Assigned
ACPI:            on
IOAPIC:          off
BIOS APIC mode:  APIC
Time offset:     0ms
RTC:             local time
Hardw. virt.ext: on
Nested Paging:   on
Large Pages:     off
VT-x VPID:       on
VT-x unr. exec.: on
Paravirt. Provider: Default
Effective Paravirt. Provider: HyperV
State:           powered off (since 2017-11-17T20:56:58.000000000)
Monitor count:   1
3D Acceleration: off
2D Video Acceleration: off
Teleporter Enabled: off
Teleporter Port: 0
Teleporter Address:
Teleporter Password:
Tracing Enabled: off
Allow Tracing to Access VM: off
Tracing Configuration:
Autostart Enabled: off
Autostart Delay: 0
Default Frontend:
Storage Controller Name (0):            sata
Storage Controller Type (0):            IntelAhci
Storage Controller Instance Number (0): 0
Storage Controller Max Port Count (0):  30
Storage Controller Port Count (0):      30
Storage Controller Bootable (0):        on
Storage Controller Name (1):            ide
Storage Controller Type (1):            PIIX4
Storage Controller Instance Number (1): 0
Storage Controller Max Port Count (1):  2
Storage Controller Port Count (1):      2
Storage Controller Bootable (1):        on
sata (0, 0): /home/marc/.config/VirtualBox/VMs/Win7x86/Win7x86-HDD01 (UUID: 0a023339-e68d-48c3-a67d-977f5fa4512b)
ide (1, 0): /usr/share/virtualbox/VBoxGuestAdditions.iso (UUID: d9b2603d-98ad-4134-8c91-4f244b7f2e06)
NIC 1:           MAC: 0800279AB193, Attachment: Bridged Interface 'enp5s0', Cable connected: on, Trace: off (file: none), Type: 82540EM, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: deny, Bandwidth group: none
NIC 2:           disabled
NIC 3:           disabled
NIC 4:           disabled
NIC 5:           disabled
NIC 6:           disabled
NIC 7:           disabled
NIC 8:           disabled
Pointing Device: PS/2 Mouse
Keyboard Device: PS/2 Keyboard
UART 1:          disabled
UART 2:          disabled
UART 3:          disabled
UART 4:          disabled
LPT 1:           disabled
LPT 2:           disabled
Audio:           enabled (Driver: ALSA, Controller: AC97, Codec: STAC9700)
Audio playback:  enabled
Audio capture: disabled
Clipboard Mode:  disabled
Drag and drop Mode: disabled
VRDE:            enabled (Address 0.0.0.0, Ports 3389, MultiConn: off, ReuseSingleConn: off, Authentication type: null)
Video redirection: disabled
VRDE property: TCP/Ports  = "3389"
VRDE property: TCP/Address = <not set>
VRDE property: VideoChannel/Enabled = <not set>
VRDE property: VideoChannel/Quality = <not set>
VRDE property: VideoChannel/DownscaleProtection = <not set>
VRDE property: Client/DisableDisplay = <not set>
VRDE property: Client/DisableInput = <not set>
VRDE property: Client/DisableAudio = <not set>
VRDE property: Client/DisableUSB = <not set>
VRDE property: Client/DisableClipboard = <not set>
VRDE property: Client/DisableUpstreamAudio = <not set>
VRDE property: Client/DisableRDPDR = <not set>
VRDE property: H3DRedirect/Enabled = <not set>
VRDE property: Security/Method = <not set>
VRDE property: Security/ServerCertificate = <not set>
VRDE property: Security/ServerPrivateKey = <not set>
VRDE property: Security/CACertificate = <not set>
VRDE property: Audio/RateCorrectionMode = <not set>
VRDE property: Audio/LogPath = <not set>
USB:             enabled
EHCI:            enabled
XHCI:            enabled

USB Device Filters:

Index:            0
Active:           yes
Name:             usb001
VendorId:         05dc
ProductId:        a838
Revision:
Manufacturer:
Product:
Remote:
Serial Number:

Bandwidth groups:  <none>

Shared folders:

Name: 'Home', Host path: '/home/marc' (machine mapping), writable

Capturing:          not active
Capture screens:    0
Capture file:       /home/marc/.config/VirtualBox/VMs/Win7x86/Win7x86.webm
Capture dimensions: 1024x768
Capture rate:       512 kbps
Capture FPS:        25
Capture options:

Guest:

Configured memory balloon size:      0 MB


Code: Select all   Expand viewCollapse view
VBoxManage list usbhost
Host USB Devices:

UUID:               df89705b-e07a-4397-b04c-ec63b38c8a5d
VendorId:           0x13d3 (13D3)
ProductId:          0x3414 (3414)
Revision:           2.0 (0200)
Port:               0
USB version/speed:  2/Full
Manufacturer:       Realtek
Product:            Bluetooth Radio
SerialNumber:       00e04c000001
Address:            sysfs:/sys/devices/pci0000:00/0000:00:12.0/usb3/3-1//device:/dev/vboxusb/003/002
Current State:      Busy

UUID:               ca73296f-89ee-4380-b438-6fc5f9ddc65b
VendorId:           0x05dc (05DC)
ProductId:          0xa838 (A838)
Revision:           17.0 (1700)
Port:               0
USB version/speed:  3/Super
Manufacturer:       Lexar
Product:            USB Flash Drive
SerialNumber:       AAK425CR3DUKH8AC
Address:            sysfs:/sys/devices/pci0000:00/0000:00:10.1/usb9/9-1//device:/dev/vboxusb/009/015
Current State:      Busy
md1011
 
Posts: 6
Joined: 17. Nov 2017, 22:49

Re: Remote USB Help

Postby md1011 » 27. Nov 2017, 16:36

am i missing some information required to help? Even some general guidance would be helpful
md1011
 
Posts: 6
Joined: 17. Nov 2017, 22:49

Re: Remote USB Help

Postby mpack » 27. Nov 2017, 17:08

Please post a VM log file. With the VM fully shut down, right click and "Show Log" in the GUI, save "VBox.log" (no other file) to a zip, and attach the zip here.
mpack
Site Moderator
 
Posts: 25470
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Remote USB Help

Postby md1011 » 27. Nov 2017, 17:43

VBox.zip
(35.76 KiB) Downloaded 2 times


thanks mpack
md1011
 
Posts: 6
Joined: 17. Nov 2017, 22:49

Re: Remote USB Help

Postby mpack » 27. Nov 2017, 19:08

The log shows the configuration to be ok from what I've noticed so far.

RDP is not a feature I use. But, have you tried creating a USB filter, as per section 7.1.4 of the user manual? The "list usbfilters" attachment above shows none.
mpack
Site Moderator
 
Posts: 25470
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Remote USB Help

Postby socratis » 27. Nov 2017, 19:34

What makes me a little bit worrisome is the following, from ch. 7.1.4 Remote USB:
Accessing remote USB devices is only possible if the RDP client supports this extension.

Just like mpack I have not used that feature, and to be honest I haven't seen that many people talk about it. You might be the second in 5-7 years, so, there's not too much know-how floating around...
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
socratis
Site Moderator
 
Posts: 12658
Joined: 22. Oct 2010, 11:03
Location: Greece
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5

Re: Remote USB Help

Postby mpack » 27. Nov 2017, 19:37

I saw that note, but I'm assuming that they wouldn't implement a feature that their main business customer base couldn't use, so I'm guessing that whatever the standard RDP client is on Windows PCs, it will support remote USB. Plus I've seen the remote USB service running in services.msc.

I was more concerned by the mix of operating systems for the host PC vs the client. But, I guess the manual would mention if that was a problem, and while there's a lot to get wrong with USB on Linux hosts, the fact that the USB device works when the VM is being used locally seems to imply that everything must be ok there.
mpack
Site Moderator
 
Posts: 25470
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Remote USB Help

Postby socratis » 27. Nov 2017, 19:40

I have Microsoft's RDP client both on OSX and on Windows. I might give it a try later on tonight if I have some time. I've been wanting to test this feature for quite some time now. Maybe this is the jolt that I needed...
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
socratis
Site Moderator
 
Posts: 12658
Joined: 22. Oct 2010, 11:03
Location: Greece
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5

Re: Remote USB Help

Postby md1011 » 27. Nov 2017, 19:41

i do, but its on the VM itself, i didnt set it up to be global. what client do you use for remote desktop on Windows?
md1011
 
Posts: 6
Joined: 17. Nov 2017, 22:49

Re: Remote USB Help

Postby socratis » 27. Nov 2017, 19:42

We don't ;)
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
socratis
Site Moderator
 
Posts: 12658
Joined: 22. Oct 2010, 11:03
Location: Greece
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5

Re: Remote USB Help

Postby md1011 » 27. Nov 2017, 20:26

mpack wrote:I saw that note, but I'm assuming that they wouldn't implement a feature that their main business customer base couldn't use, so I'm guessing that whatever the standard RDP client is on Windows PCs, it will support remote USB. Plus I've seen the remote USB service running in services.msc.

I was more concerned by the mix of operating systems for the host PC vs the client. But, I guess the manual would mention if that was a problem, and while there's a lot to get wrong with USB on Linux hosts, the fact that the USB device works when the VM is being used locally seems to imply that everything must be ok there.


This was throwing me off as well because locally (to the VM host) attached USB works great. It feels like the problem is with VRDP because I am also having trouble getting audio out. I should also mention that I am able to RDP to non-Vbox remote clients and the USB does follow to the client without issue.
md1011
 
Posts: 6
Joined: 17. Nov 2017, 22:49


Return to VirtualBox on Linux Hosts

Who is online

Users browsing this forum: No registered users and 14 guests