Throw a virtual camera into a VM

Ldmit

Active Member
Dec 14, 2019
19
0
41
45
Installed the v4l2loopback package and hung it on /dev/video0. How to insert /dev/video0 device into VM?


PS: PVE 6.2
 
Hi,

can use USB passthrough to use this cam in the VM.
 
Then spice client USB redirect?

I have one question when the USB cam is not at the server why you install v4l2loopback not in the VM?
 
Finally figured it out and what should I say - IT WORKS LIKE A CHARM! PROXMOX <3

Redirected a USB webcam through the SPICE viewer (remote-viewer) under Linux and used it as android camera to register a new WhatsApp Web application within the virtualized WhatsApp installation (Android x86).

Also wrote a (German) article about this: https://andersgood.de/blog/whatsapp-virtualisieren-und-clientunabhaengig-nutzen

Hope this helps.