question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I can confirm frigate run on ESX 7.0 (ubuntu server 20.04) with google coral and ffmpeg hardware acceleration

See original GitHub issue

I didn’t know where to write but I can confirm that frigate works very well on ESX 7.0. I think it is worth adding this information to the readme file since there is information about Proxmox. My server configuration is based on the Xeon E3 1275v2 processor. Ubuntu works as one of the systems and frigate works on it in the docker. Google coral is connected not as a USB device but via the PCI Passtrough function together with the USB 3.1 gen2 controller. I used a PCIE controller. I disconnected the IGPU graphics card from the ESX server (not showing esx video) and made it available via Ubuntu PCI Passtrough. In the docker, just add the access options to the GPU device and it just works for 3 weeks. Advantages: trouble-free connection of Google Coral as if it were a physical computer and the operation of hardware acceleration of ffmpeg decoding.


Screenshoot Screenshoot Screenshoot Screenshoot Screenshoot Screenshoot


{“asfalt”:{“camera_fps”:5.0,“capture_pid”:37,“detection_fps”:0.0,“frame_info”:{“detect”:1605478179.349492,“process”:0.0},“pid”:38,“process_fps”:5.0,“skipped_fps”:0.0},“brama”:{“camera_fps”:5.2,“capture_pid”:54,“detection_fps”:13.2,“frame_info”:{“detect”:1605478179.549442,“process”:0.0},“pid”:55,“process_fps”:5.2,“skipped_fps”:0.0},“budowa”:{“camera_fps”:5.0,“capture_pid”:48,“detection_fps”:0.0,“frame_info”:{“detect”:1605478179.465885,“process”:0.0},“pid”:50,“process_fps”:5.0,“skipped_fps”:0.0},“detection_fps”:18.3,“detectors”:{“coral”:{“detection_start”:0.0,“inference_speed”:7.71,“pid”:16}},“poludnie”:{“camera_fps”:5.1,“capture_pid”:40,“detection_fps”:0.0,“frame_info”:{“detect”:1605478179.444079,“process”:0.0},“pid”:44,“process_fps”:5.1,“skipped_fps”:0.0},“stodola”:{“camera_fps”:5.0,“capture_pid”:58,“detection_fps”:0.0,“frame_info”:{“detect”:1605478179.688275,“process”:0.0},“pid”:62,“process_fps”:5.0,“skipped_fps”:0.0},“taras”:{“camera_fps”:5.0,“capture_pid”:52,“detection_fps”:5.1,“frame_info”:{“detect”:1605478179.655248,“process”:0.0},“pid”:53,“process_fps”:5.0,“skipped_fps”:0.0}}

sudo docker run --rm --name frigate --privileged --shm-size=1024m --device /dev/dri:/dev/dri -v /dev/bus/usb:/dev/bus/usb -v /home/ws/frigate/config:/config:ro -v /etc/localtime:/etc/localtime:ro -p 5000:5000 -e FONTCONFIG_PATH='/etc/fonts' -e FRIGATE_RTSP_PASSWORD='password' blakeblackshear/frigate:0.7.3-amd64

https://tinkertry.com/vmware-vsphere-esxi-7-gpu-passthrough-ui-bug-workaround The guy from the link above was doing everything right but he had some strange problem, I suspect the reason was doing everything in one go. Please restart after each step in esx settings. So we can not turn off the esx graphics card without restart, set passtrouch to enable, connect gpu to the virtual machine and usb controller. This is a job for 4x reboot esx.

on esx paste: esxcli system settings kernel set -s vga -v FALSE is only way to passtrough GPU and on virtual machine set in parameters: svga.preset = FALSE

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:22 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
manalishi70commented, Dec 30, 2021

I can confirm the following setup is working:

  1. ESXi 6.0U3 on Dell T3610 XEON E5-1650v2 image

  2. NVIDIA K600 Passthrough image

  3. UBUNTU 20.04 with Docker 20.10.12 and Nvidia-Docker 2.8.0

  4. NVIDIA-SMI: Driver Version: 470.86 CUDA Version: 11.4 6 CAMS connected nvdia-smi on host image

nvdia-smi in container image

0reactions
dailowcommented, Nov 4, 2022

@MEntOMANdo the internal USB3 ports were recognised by esx, but not available for pass through. I purchased one of these (£20 “StarTech.com 2 Port PCI Express USB 3.0 Controller Card w/ SATA Power - USB adapter - PCIe - USB 3.0 x 2 - PEXUSB3S23” ) which is on the HCL and works perfectly.

I added a PCI pass through device with the Coral device selected and that’s all - think this is your edit comment, if so this is exactly what I’ve done.

Docker-vm-config

Currently getting Inference Speed =< 8.1 - which I’m quite happy with.

I think my issue running this under HA was the id was changing sometimes which causes Frigate to crash out. Since hosting directly in Docker it’s worked flawlessly (touch wood!) and also uses less CPU by a large amount (10W).

I’m not running pass through for the Intel adapter for HW accel, as Ubuntu crashes during boot with this enabled. As I’m drawling less power it’s not a major to fix for now. One day…

Did you have to add anything to the VMX file for this to work? For some reason I get USB errors when using this exact same card after it runs for a bit. I verified I don’t see the same issue on my Mac, so I know it is not the cable/coral itself. Maybe the PCI-E card is bad, but it only happens when I use a USB 3.0 cable. If I use a USB 2.0 cable and force it to run at lower speeds it works fine.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Google Coral and ESXI 7 - Home Assistant Community
I can confirm frigate run on ESX 7.0 (ubuntu server 20.04) with google coral and ffmpeg hardware acceleration - frigate (gitmemory.com).
Read more >
Installation - Frigate Docs
Frigate is a Docker container that can be run on any Docker host including as ... Frigate needs access to underlying hardware for...
Read more >
Frigate + Coral + ESXi : r/homeassistant - Reddit
I'm thinking of building an Ubuntu 20.04 VM for Frigate to run on and attaching the USB Coral through passtrough on this VM...
Read more >
glove_vocab.250k.txt - Bar Ilan NLP Lab
the . and to of a in " is for : i ) that ( you it on - with 's this by...
Read more >
News Amersham on the Hill hdM - ALBA.Net
Armin kistenmacher, Plant 3d ortho, Top selling modern art paintings, ... Esther monsech, Run game in windowed mode windows 8, Gmt 7 to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found