20

I would like to know how to use my laptop's built-in webcam with android x86 in virtualbox.

I already tried to launch the default "Camera" app that told me that I had to configure a SDCard, what I did with this tutorial : SD card virtualbox

But now I would like to know how to make the VM be aware of my webcam and let it be used by android.

I downloaded the plugin for USB2 hosts but the webcam does not appear in the devices list...

Thank you for your help!

Jon
  • 38,814
  • 81
  • 233
  • 382
pef
  • 231
  • 1
  • 2
  • 7

3 Answers3

8

If anyone is ever viewing this question, the solution for me was to install "Oracle VM VirtualBox Extension Pack". You'll need to follow different setup procedure depending on your OS, however the extension pack itself is available from Oracle Virtualbox: https://www.virtualbox.org/wiki/Downloads.

sireliah
  • 256
  • 2
  • 7
  • 2
    Thanks, to make it work I had to click during boot time on the Devices menu, then Webcams submenu and check the webcam I want to use before Android x86 finished booting. This is useful for apps using a QR code like WhatsApp. However VirtualBox Extension Pack is not open source like I thought, only VirtualBox is open source. – baptx Jun 18 '21 at 16:27
1

In the Android Emulator you can select an Webcam (in the avd-emulator settings menu), try that one first. So you can see if it is actually working with Android

tim687
  • 2,256
  • 2
  • 17
  • 28
0

I am just pasting it here from ASK UBUNTU as it was also a necessary step to activate the USB camera (still works 2023):

The same answer of @Nathan Osman , However , it required to belong to vboxusers group to be able to see all devices on adding one.

sudo usermod -a -G vboxusers $(whoami)

Logout & login again , check if your vboxusers displays in this command :

groups

Source: https://askubuntu.com/questions/4875/how-can-i-use-my-webcam-with-ubuntu-running-in-virtualbox

Ospi
  • 117
  • 1
  • 7