Virtualbox webcam

Based on this documentation  dirived originally from the Virtualbox documentation


To list the webcams that are installed on the system and available to VirtualBox, use the command: 


VBoxManage list webcams


Sample output:

$> VBoxManage list webcams
Video Input Devices: 1
.1 "Laptop_Integrated_Webcam_HD: In"


Now must link the device /dev/video0 with the target virtual machine (the guest) (my guest is named Windows10)

$> VBoxManage controlvm Windows10 webcam attach /dev/video0


Verify the new configuration:

$> VBoxManage controlvm Windows10 webcam list