Results 1 to 7 of 7

Thread: Trying to configure webcam on VM

  1. #1
    Join Date
    May 2018
    Beans
    4

    Trying to configure webcam on VM

    Hello everyone,

    I'm trying to make my webcam work on linux via VM.
    I've check some tutorials on how to make VM to detect your integrated camera, but cheese doesn't detect any..
    When i do
    Code:
     lsusb
    i get :
    Code:
    Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub 
    Bus 001 Device 002: ID 80ee:0021 VirtualBox USB Tablet 
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    I think that my camera should be the second result but how can I tell linux that this is my camera ?

    Thanks for your help !

  2. #2
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    14,241
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: Trying to configure webcam on VM

    Inside the hypervisor, you have to pass the USB device through to the VM for exclusive use. The hostOS cannot have access to it.
    Doing it via virt-manager is pretty easy. I suspect other VM GUI tools have a way to do this as well.

  3. #3
    Join Date
    May 2018
    Beans
    4

    Re: Trying to configure webcam on VM

    This is actually what I've done (I think) :
    But linux still doesn't detect it, maybe I've some manipulation to do that I don't know..
    Last edited by tesch; May 16th, 2018 at 05:13 PM.

  4. #4
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    14,241
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: Trying to configure webcam on VM

    I didn't think USB v1.1 was fast enough for webcams?

  5. #5
    Join Date
    May 2018
    Beans
    4

    Re: Trying to configure webcam on VM

    I've tryed them all actually and none of them is working, the camera is detected by VM but it still doesn't working..



    It worked strangly yesterday, the webcam wasn't detected as a webcam but as a USB device. And when I started the VM the webcam was detected by cheese but it was all black.. And then the VM just crashed. I did it several time but it was the same everytime. I tryed today to do it again, but it wasn't the case and it just back to the previous problem
    Last edited by tesch; May 17th, 2018 at 02:00 PM.

  6. #6
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    14,241
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: Trying to configure webcam on VM

    Guest additions current?
    Is v4l2 loaded?
    Do any other USB devices passthrough?

    Black from any video usually means the driver settings are off.

    Don't forget that any changes to the VM settings requires a VM restart, at minimum.

    Have you tried other management programs besides cheese?

    BTW, I've never used vbox on a Linux host and stopped using it completely around 2012-ish due to stability problems.

  7. #7
    Join Date
    May 2018
    Beans
    4

    Re: Trying to configure webcam on VM

    I tryed with another user and it doesn't worked (if this is what you meant)
    Yes I just download it, but it doesn't chage anything..
    So I can actually select my webcam :


    So I tryed to select it and I get this error :

    I've seen on Internet that I should delete something on my registers but I don't have the one they talk about..


    Then I tryed with an USB key and this time I get this error :


    Yes I've also tried fswebcam, which light the led of my camera but then I've the error :
    Timed ou waiting for frame !
    No frames captured.

    Yeah i see that now.. I'm kind of regretting to use VM..

    I've also one strange thing is that my camera seems to be detectded but there is some kind of a free space that I can select :

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •