help getting webcam to work on Ubuntu guest

Discussions related to using VirtualBox on Windows hosts.
Post Reply
vb_user_6128
Posts: 21
Joined: 15. Jan 2018, 23:54

help getting webcam to work on Ubuntu guest

Post by vb_user_6128 »

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

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

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: 21
Joined: 15. Jan 2018, 23:54

Re: help getting webcam to work on Ubuntu guest

Post by vb_user_6128 »

Does anyone have any suggestions on what I can try to get this working?
fth0
Volunteer
Posts: 5677
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: help getting webcam to work on Ubuntu guest

Post by fth0 »

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: 5677
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: help getting webcam to work on Ubuntu guest

Post by fth0 »

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 ...
Post Reply