[Solved] Configuring Webcam support in Windows 10 Guest OS

Discussions related to using VirtualBox on Mac OS X hosts.
Post Reply
LN_VBox
Posts: 6
Joined: 3. Apr 2018, 21:03

[Solved] Configuring Webcam support in Windows 10 Guest OS

Post by LN_VBox »

Having trouble with setting up the webcam configuration in the Host OS.

Virtual Box Version: Version 5.2.8 r121009 (Qt5.6.3)
Guest OS: MSEdge on Win 10 (X64) 16.16299 Stable (via Microsoft Edge developer tools)
Host OS: macOS Sierra Version 10.12.6

Issue: Webcam not recognized in the Guest OS after installing the recommended extension pack 5.2.8 for webcam support (via Virtual Box downloads), when the Guest OS is launched under devices the webcam is not found in the drop down.

Are there any suggestions on what I should look into to make the proper configuration?

Thanks
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Configuring Webcam support in Windows 10 Guest OS

Post by mpack »

Did you read user manual section 9.7? So what does :-
VBoxManage list webcams
Report before you run any VMs?
LN_VBox
Posts: 6
Joined: 3. Apr 2018, 21:03

Re: Configuring Webcam support in Windows 10 Guest OS

Post by LN_VBox »

I tried the following today:

VBoxManage list webcams

which results in one Video Input Devices (prior to launching VM), then as per tutorial I found online (prior to learning about section 9.7), I tried the following:

VboxManage controlvm "MSEdge - Win10" webcam attach .1

which results in the following errors (if I run the command after launching vm):

VBoxManage: error: Attach emulated USB webcam (VERR_PDM_NO_USB_HUBS)
VBoxManage: error: Details: code VBOX_E_IPRT_ERROR (0x80bb0005), component ConsoleWrap, interface IConsole, callee nsISupports
VBoxManage: error: Context: "WebcamAttach(path.raw(), settings.raw())" at line 2029 of file VBoxManageControlVM.cpp
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Configuring Webcam support in Windows 10 Guest OS

Post by mpack »

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.
LN_VBox
Posts: 6
Joined: 3. Apr 2018, 21:03

Re: Configuring Webcam support in Windows 10 Guest OS

Post by LN_VBox »

Sure thing, here is the log file which was generated after saving and compressing VBox.log (renamed the file name to match).
Attachments
VBox.log.zip
(24.75 KiB) Downloaded 326 times
ChipMcK
Volunteer
Posts: 1095
Joined: 20. May 2009, 02:17
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Windows, OSX
Location: U S of A

Re: Configuring Webcam support in Windows 10 Guest OS

Post by ChipMcK »

LN_VBox wrote:VboxManage controlvm "MSEdge - Win10" webcam attach .1
If I follow the directions in the User Manual, works perfectly.

You might try also following directions.

Code: Select all

VBoxManage controlvm "VM name" webcam attach [host_path|alias [settings]]
The ".1" is not the host_path

List the output from following command

Code: Select all

VBoxManage list webcams
LN_VBox
Posts: 6
Joined: 3. Apr 2018, 21:03

Re: Configuring Webcam support in Windows 10 Guest OS

Post by LN_VBox »

@ChipMcK

So, when I use

VBoxManage list webcams

I get the following output:

Video Input Devices: 1
.1 "FaceTime HD Camera"
CC26326RYTKG1HNBX

then my understanding is '.1' is the alias, when i use the following command

VboxManage controlvm "MSEdge - Win10" webcam attach .1
ChipMcK
Volunteer
Posts: 1095
Joined: 20. May 2009, 02:17
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Windows, OSX
Location: U S of A

Re: Configuring Webcam support in Windows 10 Guest OS

Post by ChipMcK »

LN_VBox wrote:Video Input Devices: 1
.1 "FaceTime HD Camera"
CC26326RYTKG1HNBX
on your Guest the command is

Code: Select all

VboxManage controlvm "MSEdge - Win10" webcam attach CC26326RYTKG1HNBX
LN_VBox
Posts: 6
Joined: 3. Apr 2018, 21:03

Re: Configuring Webcam support in Windows 10 Guest OS

Post by LN_VBox »

@ ChipMcK

I tried the following with a modification to VBoxManage from VboxManage:

In the guest (Windows terminal) if I run the specified command (VBoxManage controlvm "MSEdge - Win10" webcam attach CC26326RYTKG1HNBX), I get the following:

'VBoxManage' is not recognized as an internal or external command, operable program or batch file.

In the host (Mac terminal) if I run the specified command, I get the following:

VBoxManage: error: Attach emulated USB webcam (VERR_PDM_NO_USB_HUBS)
VBoxManage: error: Details: code VBOX_E_IPRT_ERROR (0x80bb0005), component ConsoleWrap, interface IConsole, callee nsISupports
VBoxManage: error: Context: "WebcamAttach(path.raw(), settings.raw())" at line 2029 of file VBoxManageControlVM.cpp
ChipMcK
Volunteer
Posts: 1095
Joined: 20. May 2009, 02:17
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Windows, OSX
Location: U S of A

Re: Configuring Webcam support in Windows 10 Guest OS

Post by ChipMcK »

ChipMcK wrote:
LN_VBox wrote:Video Input Devices: 1
.1 "FaceTime HD Camera"
CC26326RYTKG1HNBX
For your Guest the command is

Code: Select all

VboxManage controlvm "MSEdge - Win10" webcam attach CC26326RYTKG1HNBX
Note: For in place of On
Martin
Volunteer
Posts: 2561
Joined: 30. May 2007, 18:05
Primary OS: Fedora other
VBox Version: PUEL
Guest OSses: XP, Win7, Win10, Linux, OS/2

Re: Configuring Webcam support in Windows 10 Guest OS

Post by Martin »

LN_VBox wrote:VBoxManage: error: Attach emulated USB webcam (VERR_PDM_NO_USB_HUBS)
Do you have USB support enabled in your VM settings?
LN_VBox
Posts: 6
Joined: 3. Apr 2018, 21:03

Re: Configuring Webcam support in Windows 10 Guest OS

Post by LN_VBox »

@Martin

Much appreciated that suggestion worked, so the fix was to enable the USB in Oracle VM VirtualBox Manager

USB -> Enable USB Controller

then, follow the steps listed on 9.7 (as @ChipMcK outlined in the host (MAC) Terminal)

Thank you for the help
Jonah L
Posts: 2
Joined: 8. May 2019, 13:38

Re: [Solved] Configuring Webcam support in Windows 10 Guest OS

Post by Jonah L »

Folks, Just spent time wrestling a webcam passthrough challenge I thought would be useful to share. After capturing the webcam (This was a Bison NB Pro camera) all the virtul machines would detect the webcam but would not get anything except a black picture. What finally worked for me was switching from USB 2.0 EHCI to USB 3.0. Then the webcam worked perfectly. Of course the default for USB is USB 2.0 EHCI for good reason, but some webcams don't work properly unless you enable the USB 3.0 on the VirtualBox Guest. Hope this post helps people out there avoid frustration.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: [Solved] Configuring Webcam support in Windows 10 Guest OS

Post by mpack »

Well thanks for the tip, but only you can know if the device you plugged in expects USB2 or USB3. Unless you're saying it's a USB2 device that for some reason only works properly in a USB3 port?

Also, for clarity a quick summary of USB3 tips: if you plug a USB3 device into a USB3 host port then the device works in USB3 mode. This is settled by the hardware, not by whether the guest OS has driver support for USB3/xHCI. Win7 and earlier don't have native USB3 support.
Post Reply