Throw a virtual camera into a VM

Ldmit

Member
Dec 14, 2019
11
0
6
42
Installed the v4l2loopback package and hung it on /dev/video0. How to insert /dev/video0 device into VM?


PS: PVE 6.2
 

wolfgang

Proxmox Staff Member
Oct 1, 2014
6,496
492
103
Hi,

can use USB passthrough to use this cam in the VM.
 

wolfgang

Proxmox Staff Member
Oct 1, 2014
6,496
492
103
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.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get your own in 60 seconds.

Buy now!