Throw a virtual camera into a VM

Ldmit

New Member
Dec 14, 2019
11
0
1
41
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
Staff member
Oct 1, 2014
6,496
477
103
Hi,

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

Ldmit

New Member
Dec 14, 2019
11
0
1
41
usb camera cannot be thrown, the server is located in the DC
 

wolfgang

Proxmox Staff Member
Staff member
Oct 1, 2014
6,496
477
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.
 
  • Like
Reactions: Moayad

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!