help getting webcam to work on Ubuntu guest

Discussions related to using VirtualBox on Windows hosts.

help getting webcam to work on Ubuntu guest

Postby vb_user_6128 » 24. Nov 2020, 00:54

I am trying to get my Logitech C615 webcam running on a Ubuntu guest and Windows 10 host. I have read the article on Webcam Passthrough (https://docs.oracle.com/en/virtualizati ... rough.html) and have done the following:

1. Installed the Extension Pack (6.1.16, same version as my VirtualBox installation)
2. Verified my webcam shows up when using the VBoxManage app:

Code: Select all   Expand viewCollapse view
C:\Program Files\Oracle\VirtualBox>vboxmanage list webcams
Video Input Devices: 1
.1 "Logitech HD Webcam C615"
\\?\usb#vid_046d&pid_082c&mi_02#7&3772e1ad&0&0002#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083}


3. Started my Guest OS
4. Run the following using vboxmanage:

Code: Select all   Expand viewCollapse view
C:\Program Files\Oracle\VirtualBox>vboxmanage controlvm "Test Ubuntu" webcam attach .1


5. Verified my webcam appears in the "Devices" -> "Webcams" menu of the VirtualBox session GUI and put a check next to it

6. Tried to test the webcam by running the "cheese" app from the Ubuntu guest OS, which says "no device found".

I've done some searching on the forums but every webcam issue I've found is stuck at a different point in the process. What should I try next to debug this?
vb_user_6128
 
Posts: 17
Joined: 15. Jan 2018, 23:54

Re: help getting webcam to work on Ubuntu guest

Postby vb_user_6128 » 3. Mar 2021, 19:05

Does anyone have any suggestions on what I can try to get this working?
vb_user_6128
 
Posts: 17
Joined: 15. Jan 2018, 23:54

Re: help getting webcam to work on Ubuntu guest

Postby fth0 » 3. Mar 2021, 20:32

Just a guess, but I could imagine that steps 4 and 5 are alternatives to each other, perhaps they can even conflict with each other. What happens if you only use one of them?
fth0
Volunteer
 
Posts: 1776
Joined: 14. Feb 2019, 03:06
Location: Germany
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...

Re: help getting webcam to work on Ubuntu guest

Postby fth0 » 4. Mar 2021, 00:54

I've just verified that steps 4 and 5 are alternatives, but you can use both, and in that case you have 2 (or 4) webcam devices available inside the guest. FWIW, in my own setup cheese also does not work, but guvcview and ffplay do work, so it's not that the webcam would not be available ...
fth0
Volunteer
 
Posts: 1776
Joined: 14. Feb 2019, 03:06
Location: Germany
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...


Return to VirtualBox on Windows Hosts

Who is online

Users browsing this forum: No registered users and 23 guests