使用C:\Program Files\Oracle\VirtualBox\VBoxManage.exe工具加载摄像头
1,显示可用摄像头
C:\Program Files\Oracle\VirtualBox>VBoxManage list webcams
Video Input Devices: . "Integrated Webcam" \\?\usb#vid_0c45&pid_671e&mi_00#&20843a0f&&#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global
2,显示可用虚拟机
C:\Program Files\Oracle\VirtualBox>VBoxManage list vms
"Ubuntu" {c43e6950-1ded-46d5-b592-35cb7ccb4a8b}
3,加载WEBCAM
C:\Program Files\Oracle\VirtualBox>VBoxManage controlvm "Ubuntu" webcam attach ”\\?\usb#vid_0c45&pid_671e&mi_00#&20843a0f&&#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global“
4,虚拟机中查看摄像头
ls /dev/video0
5,打开摄像头
cheese(如果没有,需要安装)