Creating an LXC (Linux Container) image of Frigate for use on Proxmox etc #5448
Replies: 16 comments 67 replies
-
I was thinking to start on this as well, how far did you come? What did you try? |
Beta Was this translation helpful? Give feedback.
-
Very interested in this. I tried the Docker-in-a-VM with USB port pass-through, but hit the problem of the Coral dongle randomly disconnecting and bringing down all of Frigate. For both Edge TPU and Quicksync the recommendation is to run as close to the metal as possible, rather than attempt a VM pass-through. Would LXC accomplish this? |
Beta Was this translation helpful? Give feedback.
-
I needed to move frigate away from my home assistant machine because i have some issue. Now my issues are still there but the usb coral works fine. I run docker in lxc with usb passthrough the only issue i have is that on reboot of my proxmox server the usb hub adres changes and i need to change that in the lxc config. Still looking for a fix for that. |
Beta Was this translation helpful? Give feedback.
-
I would be curious if something like this would work: https://bobcares.com/blog/convert-docker-image-to-lxd/ |
Beta Was this translation helpful? Give feedback.
-
Nicolai, thanks for the elaborate explanation!
Question: in the backup/LXC mode, how does the *user* perform an upgrade?
Your explanation of how the maintainer updates is clear, but the user will
have additional custom config files and media.
Would the idea be to use externally mounted volumes, like with docker?
…On Sat, May 20, 2023, 12:36 PM Blake Blackshear ***@***.***> wrote:
Are you aware of any other open source projects that provide a Proxmox
compatible LXC like this?
—
Reply to this email directly, view it on GitHub
<#5448 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAMFGJLEGHYNXPIRGTKHTGDXHDXILANCNFSM6AAAAAAUYE4KBM>
.
You are receiving this because you commented.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
Is there anything we can do to advance this? I would love an official LXC method of installing frigate. |
Beta Was this translation helpful? Give feedback.
-
Thats exactly what I used to get started. Post script, and the docker script Also, wrote a script ( need to refined it, haven't had time) to setup the lxc with coral, and gpu once created. https://github.com/Dvalin21/ProxHeader_Nvidia_Coral and this one for enabling iommu https://github.com/Dvalin21/enable_iommu_proxmox at that point, just go in create the folders and run docker. |
Beta Was this translation helpful? Give feedback.
-
Attention, after the kernel update to 6.5.11-4-pve, the Coral accelerator no longer runs. |
Beta Was this translation helpful? Give feedback.
-
@hvanoch |
Beta Was this translation helpful? Give feedback.
-
Ever-so-slight bump on this issue. Same boat, been running frigate on docker inside KVM on proxmox. Works very well, but would prefer to not run a full KVM to do this. You can export your running docker container like so:
which leaves you with a tar file you can, in theory, turn into an LXC template, or copy over the top of an existing ubuntu LXC, but I suspect more work is needed. Anyone closer to a full "template" that can be used? (these are fantastic : https://github.com/tteck/Proxmox/ -- was hoping to either find one there, or help create one that lives there) |
Beta Was this translation helpful? Give feedback.
-
Following my latest comment and a few months of working with the bare-metal, I decided to go the cluster route and repurpose my mini PC. I used a I hope this short guide will save you time. In short, I replaced Ubuntu with Proxmox, joined the cluster, and followed the below to make it run the first time. There are host and LXC parts to follow: The host part
Once rebooted, ensure the
The above is crucial and we need some information e.g., I also use Intel graphics to serve decoding.
The same as above
Follow the onscreen instructions (can be default at this point), install It will create a Edit the config file of the LXC using
Add the following at the bottom of the file
Reboot your LXC. The LXC part
My sample frigate config for the hardware
Paste the below:
The above is useful so you will see the output and verify if Frigate executed successfully. |
Beta Was this translation helpful? Give feedback.
-
I figured out my issue after some deeper searching, I have removed
"#hwaccel_device - /dev/dri/renderD128" and it has all come to life ok.
Thank you very much, my CPU is no longer pegged to 100% now that it is
using the Coral finally :)
…On Mon, 25 Mar 2024 at 18:30, alienatedsec ***@***.***> wrote:
@BradleyFord <https://github.com/BradleyFord>
The Streams Info needs to expose a port to access the page you mentioned.
Read #10316 <#10316>
I would need to see your config.yml to advise further. What is in the
Frigate logs?
—
Reply to this email directly, view it on GitHub
<#5448 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACOZ72BC2VYP3EPGYSTIF3Y2ADELAVCNFSM6AAAAAAUYE4KBOVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DSMBRGI2DQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
Same here, no issues with the setup of docker in lxc but I had to make the container privileged to ensure everything runs smoothly. |
Beta Was this translation helpful? Give feedback.
-
Just to shine in for new readers. You CAN run Frigate on an unprivileged LXC container. But will need to fix some problems with hardware configuration if you want to use Google Coral or iGPU. I had make some notes for myself but maybe it helps others:
Also I moved the media folter to a mounted NAS directory to exclude them from my LXC backups. |
Beta Was this translation helpful? Give feedback.
-
There's now a Proxmox unprivileged LXC creation script for Frigate available in https://github.com/tteck/Proxmox/ with an active discussion thread: tteck/Proxmox#2711 Haven't tried it myself but others are reporting success, Will probably move from my own docker setup if I can confirm that everything works. Nick / Blake, if it works, could be a good way to help folks get up and running with Frigate. (side note: Scrypted is currently recommending LXC as preferred install option.) |
Beta Was this translation helpful? Give feedback.
-
I've been following the guide and I have frigate working, thank you :-)
The log shows:
I've down some googling, but cannot find what the valid arguments for LIBVA_DRIVER_NAME are? |
Beta Was this translation helpful? Give feedback.
-
Discussed in a couple of places, and I thought useful to have a dedicated topic. I am using Proxmox but in theory this is relevant to any other hypervisor that doesn't natively support Docker.
Given that:
...theoretically there could be a simple process to take a pre-built Frigate Docker image and convert it into an LXC template.
I have made a start on attempting this and will see how it goes. Key areas of interest I can think of are going to be architectures, hardware support, upgrading between releases.
Beta Was this translation helpful? Give feedback.
All reactions