-
Notifications
You must be signed in to change notification settings - Fork 379
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kodi container on proxmox/LXC #387
Comments
Running x11docker by a systemd service is a quite special setup.
Some lines in the verbose output look odd:
x11docker should detect CMD or ENTRYPOINT in the image, but it didn't.
|
**In first thanks to reply and support. I'll do that and this is the output.**
Here the output about python version and docker inspect:
If needed or can help, i get a new fresh lxc with ubuntu 18.04 and launch a set of command that you suggest. |
I am not sure how the system is set up. I don't know proxmox and you tell something about lxc. Please try if docker can run at all:
If this shows some directory names and does not show an error, docker is able to run. (Within an lxc container it is likely to fail.) How do you access the system? Remotely over ssh? Is a monitor attached? |
Monitor is attached. |
This is an error of your system setup and independent from x11docker. Please fix that first.
This is a bit confusing, because lxc and docker are two different software solutions using the same linux kernel features. You can either use lxc or docker. So you don't use lxc here but only docker. |
I have installed an LXC with ubuntu 18.04, then inside, I have installed docker. Not needeed docker? only LXC is enough?
Done, i don't understand what do this command, anyway output video, is the same, proxmox, not others things, right? |
This time the command worked. Did you change anything?
x11docker supports docker, but not LXC. If you have a monitor attached: Is there an X server already running, e.g. with some desktop on it? |
To fix this, I read this thread and i execute these commands: ( from reinstall Apparmor link inside this thread )
I have another LXC with docker and portainer: So i guess to say, that works docker inside LXC. I'm not an expert anyway.
Proxmox is debian host. https://en.wikipedia.org/wiki/Proxmox_Virtual_Environment So have a base system in debian that contain only basilar packages to execute proxmox. Into proxmox you can create lxc container , virtual machine etc I hope to be clear. If i install kodi in host, works, because is in the main, with proxmox. But is wrong do that, because host OS, need to be clear as possible, to avoid any trouble, and also because if i reboot kodi, reboot all virtual machine. And also docker or virtual machine, is better for backup. With a virtual machine, i can make a gpu passthrough, but not audio, because i can do that, but like i said, audio is in a group with also ethernet and other stuff, so isn't possible use only audio passthrough for a virtual machine, and ethernet for others in the same time. LXC i guess do that because use the host kernel. |
Thank you for the system description. i try to understand it.
So you have found and fixed the issue, good. In the LXC where you want to run x11docker, can you run other graphical applications, for example Edit: What do you get if you try to run X server Xorg directly, e.g. |
|
|
So even if you have a graphical desktop, it is not available in the LXC container.
So you cannot run an additional Xorg in the LXC container. Is there a recommended way to run graphical applications in a LXC container in proxmox? |
Basically I see two possible ways now: |
Seems to be empty. I have an LXC with docker, GPU passthrough, portainer, that use ffmpeg, so to don't waste cpu, i make gpu passthrough for ffmpeg. But i didn't have any output video. This is the container lxc info:
Where Now the LXC kodi container, have the similar configuration:
From this link, seems that is possible in LXC, have an output |
If you want to go this way, please try out. Once you get e.g. |
I follow roght now this procedure, but how can i start xterm ? which command ? I can follow this guide but the most of things, are already done in my LXC, so when i finish to do this tutorial, how can i test xterm ? |
As you did above: Just type
xterm is a terminal emulator that needs a graphical X server. Nothing special, just some arbitrary desktop application. It serves as a simple test case if graphical applications work at all. |
I have installed
And istalled a lot of things Then in the config of lxc container, i setup this:
In according about this tutorial And now I have video output. So seems that output is possible, but how can we setup kodi and not ubuntu? kodi status is always stopped anyway and i guess this installation is dirty in this way.
|
Try to run directly, not through systemd:
|
|
It seems it is not possible to run an additional Xorg in LXC. |
weston is already installed Here debug about weston:
|
Try: I mean
|
|
Oh, x11docker tried to run with option
or:
|
|
It seems there is a pulseaudio issue that causes x11docker to fail in debug mode.
|
|
I can't help much here. Those are LXC related issues, and I have no experience at all with LXC. |
I have installed in the host, so outside lxc container, Intel GPU top to see GPU usage. And with kodi in docker, every video started, works, smooth and GPU is busy for that, then after 10 secs, gpu stop to use and cpu come up a lot, so video stuttering, frame drops... So i have tried to install kodi not in docker in this xubuntu:
But same story, GPU accelleration, works for some seconds, then is cutted by someone, and cpu come up, video freeze. There isn't a debug for that ? Because before to install docker and kodi in the host ( outside lxc ), i wish to try to have kodi into lxc, not in docker like i try now, but same story, so if there is a debug or log, maybe is possible to fix it ? Seems that the actual config: LXC > xubuntu> docker > kodi = gpu works only for 10 seconds, then video freeze and gpu 0%, CPU +90% and video stuttering, frame drops... So I have tried: LXC > xubuntu > kodi = same story So the without a debug, i can say that if the result is the same, to try without others variable: How can I install kodi into LXC and have output audio video? LXC can't handle it by yourself, so need to use weston or x11docker ? so kodi need to install anyway in docker ? I wish to try an installation as clean as possible without xubuntu, to try for the last time, and if doesn't works, I asked you how to follow your suggest, about to install docker into the host ( outside lxc ), and try in this way, like your post |
kodi normally prints a lot of messages in terminal. Maybe there is some hint what is going wrong.
As I said, I can't help you how to set up LXC. I have no experience with it. You should rather ask in a LXC community. |
In xubuntu, if i try vainfo, i can see that
Maybe can help? |
There has been a ticket that points to an issue regarding VAAPI versions, maybe that helps: ehough/docker-kodi#17 |
After a lot of days, weeks, night, waste time without success, i wish to try the last chance, and follow your suggest to install kodi into host directly with docker. Please can you help me in this way and give exact which command ? Because if also in this way, i have drop frame and gpu doesn't used, i use kodi into firestick and I'll use my nuc only for proxmox. |
This should work:
|
I have installed docker and portainer in the proxmox host, so now if doesn't works here, i leave this project. Anyway, i can start kodi with:
I can see output in hdmi, but i can't move with keyboard and mouse. I didn't find how to. This is my output:
EDIT: I have installed:
And doens't works always mouse and keyboards, but also kodi doesn't start anymore
nano 90-xpra-virtual.conf
|
Let's have a look at the first messages:
You are running x11docker as root. Are you running on a graphical desktop? |
I didn't use a graphic desktop, infact I'm on ssh into my nuc where is installed proxmox, (host is debian based). NUC with proxmox, and keyboard and mouse usb, NUC connected via HDMI to a monitor. With another pc, I use SSH to launch kodi for now. NUC with proxmox, have by default a proxmox shell, so i can login by root and use shell via HDMI, or by ssh. Anyway i have tried to launch kodi, also not only via ssh but also via proxmox shell, same issue, i can't move mouse and keyboard. As you can see from these screenshot, that are proxmox shell via HDMI:
Also in ssh same story:
I guess that there is only root user, maybe i can try to create another user ? ( how can i do that ? )
Maybe because I have installed docker under root. |
Please run further tests directly, not over ssh. ssh can cause issues on its own. Please show me the output of
It seems However, the user (root or unprivileged) wasn't the problem here, I was misleaded by the message |
Isn't privileged ? So i have glitch and no gpu ? I have va-driver-all installed on host. Need to install it in other place ? |
x11docker gives enough privileges in the docker command to access the GPU. To run some tests, please pull image
glxgears should show a framerate at about 60 fps. Try also:
Please show me the output of:
|
Works but glitch: Only in local, if i try to launch in ssh i have an error: Local: In ssh:
I suspect that there is a problem about GPU HW in the host. I mean kernel or gpu driver. I tried to install Libreelec that is a Kodi with under an OS, linux, but you can't have access on it, only in kodi, and works GPU HW. So you think that I can try to install kodi in the host, outside docker, and see if GPU HW works? Because maybe if doesn't works, it is the issue , need to be solve. ( I guess ) |
That is possible. Do you also get the glitches with |
dsfdfs.mp4Seems no trouble with this. vainfo say that:
EDIT: HW fault isn't possible, because as I said, I have tried to install Libreelec that is kodi under an OS linux, maked for kodi. And works. But of course, use the entire system for that, so useless use a nuc only for that. |
Maybe comparing with
|
inside lxc
This is on terminal in xubuntu, always inside lxc container: This one is the command that you suggest, launched inside lxc xubuntu terminal: |
I thought you would run and debug on proxmox host? |
Please run this on proxmox host and compare with the output of
|
This is in the host proxmox: And this one is when i launch this command, that start kodi, so i can't see any logs, and when i exit from kodi, i can see it: Maybe i'm wrong and i need to launch this command in another way ? |
Ok, right. Please add
|
The issue might still be a different VAAPI version. I recommend to build a custom kodi image based on the same debian version that your proxmox system is based on. That might fix the remaining issues. |
Hi
I wish to install Kodi in lxc docker container, on Proxmox, and exist a git about that
But no luck, please can you help me ?
I make all logs that i can get, here
I really really wish to have kodi in docker with audio and video hdmi.
The text was updated successfully, but these errors were encountered: