- Back to Home »
- Linux PC »
- Attach webcam to VirtualBox
Tuesday, December 31, 2019
1. Download and install VirtualBox_Extension_Pack
Check version of installed VirtualBox and download extension pack for this VirtualBox version
root# vboxmanage extpack install Oracle_VM_VirtualBox_Extension_Pack-5.1.30-118389.vbox-extpack
2. Enable USB controller
3. List up camera by below command
user$ VBoxManage list webcams
Video Input Devices: 1
.1 "Integrated_Webcam_HD: Integrate"
/dev/video0
4. Start virtual machine (ex: pi)
5. Attach camera to started machine
user$ vboxmanage controlvm "pi" webcam attach .1
with:
- pi: virtual machine name
- .1 : camera device list up by step 3
Note: Using VLC to test on virtual machine "pi"