Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[Plugin] LXC Plugin

Featured Replies

  • Author
3 minutes ago, drmetro said:

No the app I want to use doesn’t have any docker image or docker container in unraid community apps , but on github it does have a docker compose yml file but I don’t know how to install it , also there is no active support from the repo admin.

You should really get into the basics first before you start posting everywhere, there is even a Compose plugin for Unraid available but you could install Docker containers from everywhere on Unraid because it's Docker.

  • Replies 899
  • Views 157.4k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • Install SSH Server in Debian based containers:     Method 1 (recommended) :   Attach to the container with "lxc-attach DebianLXC /bin/bash" (replace DebianLXC with your con

  • Is someone here interested in something like a "Button" on the create container page where a Debian Bullseye container is set up with a pretty basic Desktop environment (XFCE4) in conjunction with Tur

  • domrockt
    domrockt

    AWSOMEEEEEEE   

Posted Images

1 minute ago, ich777 said:

You should really get into the basics first before you start posting everywhere, there is even a Compose plugin for Unraid available but you could install Docker containers from everywhere on Unraid because it's Docker.

Whatever is needed is available on community apps , thats the blessing but there is no good tutorial for non tech people like me as how to install docker containers from outside.

 

  • Author
Just now, drmetro said:

Whatever is needed is available on community apps , thats the blessing but there is no good tutorial for non tech people like me as how to install docker containers from outside.

 

There are plenty of tutorials on Youtube or you even can ask ChatGPT nowadays to get into the basics.

24 minutes ago, ich777 said:

I just took a look at the tutorial and it is very well written...

 

If you just need Nvidia GPU in the container then do:

  1. Install the Nvidia Driver plugin on your Unraid Server
  2. Set up LXC
  3. Download the zip file from the linked post and open readme.txt
  4. Create a container and but don't start it
  5. Edit the container config and follow step 6 from readme.txt what to put into the config
  6. Start the container and open up a terminal from the container
  7. Follow everything from step 8 (granted you have all necessary dependencies installed)
  8. Done

 

I can't help any further since I don't have a Nvidia GPU installed on my LXC system however even if you follow the readme.txt from the pinned post step by step you will eventually end up with a container with Nvidia GPU support and a Desktop environment.

Im stuck at step 7 

IMG_1654.jpeg

  • Author
4 minutes ago, drmetro said:

Im stuck at step 7 

Sorry, but this is not the support thread on how to install Nvidia in a LXC container, this is the LXC container support thread from the plugin itself.

 

You have multiple issues and I assume other things failed earlier in the process, again these are all basic things and I can't guide you through everything... Sorry.

Ok , thanks 

  • 3 weeks later...

Hi, I'm having an issue getting the LXC to respect memory limits set in the config file. See the file below:

image.thumb.png.ac09444a009bac3f86b9d157ca50a25d.png

 

But when running the container, it only seems to respect the CPU limits and not the memory limit:

image.thumb.png.bd37f00006d718378e6f9f72055e5926.png

 

Please let me know if I'm doing something wrong. I would really appreciate any help.

Edited by nsal1

  • Author
1 hour ago, nsal1 said:

Please let me know if I'm doing something wrong. I would really appreciate any help.

I'll look into that and report back.

1 hour ago, nsal1 said:

Hi, I'm having an issue getting the LXC to respect memory limits set in the config file. See the file below:

image.thumb.png.ac09444a009bac3f86b9d157ca50a25d.png

 

But when running the container, it only seems to respect the CPU limits and not the memory limit:

image.thumb.png.bd37f00006d718378e6f9f72055e5926.png

 

Please let me know if I'm doing something wrong. I would really appreciate any help.


Did you restart unriad after making the manual config edit. not sure if LXC service needs a reboot after that type of config edit.

  • Author
1 minute ago, bmartino1 said:

not sure if LXC service

LXC doesn't rely on a service and you don't have to restart the server, just the container.

  • Author
3 hours ago, nsal1 said:

But when running the container, it only seems to respect the CPU limits and not the memory limit:

If you set:

lxc.cgroup2.memory.max = 4G

then the memory limit is respected but displayed wrong, I'll push an update to the plugin itself, thanks for the report.

 

EDIT: Update pushed, please update the plugin to version 2025.01.03 and you should see your memory limits correctly on the LXC page.

1 hour ago, ich777 said:

If you set:

lxc.cgroup2.memory.max = 4G

then the memory limit is respected but displayed wrong, I'll push an update to the plugin itself, thanks for the report.

 

EDIT: Update pushed, please update the plugin to version 2025.01.03 and you should see your memory limits correctly on the LXC page.

Wow! That was fast! It's showing correctly now as 4GiB. Thanks for taking care of that so quickly.

I want to move my LXC container from Proxmox to Unraid. Using the command line, I executed the restore command, and it was indicated as successful. However, it is not showing up in the GUI. Am I missing something?

 

thx

Bildschirmfoto_20250104_092903.png

  • Author
2 hours ago, onotop said:

Am I missing something?

Yes, the folder structure is not correct:

- lxc
  - iobroker
    - rootfs
      - bin
      - usr
      - ...
    - config

 

2 hours ago, onotop said:

I executed the restore command

Can you please be a bit more specific which command that you where using?

 

 

If you want to import anything from Proxmox it would be best to create a container with the same distribution and release that you where using for the container on Proxmox but don't start it, then go into the folder from that container, go into rootfs, delete everything in there and extract the contents from your container from Proxmox into there, after that the container should start fine.

lxc-autobackup --restore --name=iobroker --newname=iobroker
I created a backup in Proxmox and converted it into a .tar.xz file. I then moved it to the LXC backup folder in Unraid and specified the folder in the LXC settings. However, the backup didn’t show up in the GUI. After that, I executed the restore command.

  • Author
36 minutes ago, onotop said:

lxc-autobackup --restore --name=iobroker --newname=iobroker
I created a backup in Proxmox and converted it into a .tar.xz file. I then moved it to the LXC backup folder in Unraid and specified the folder in the LXC settings. However, the backup didn’t show up in the GUI. After that, I executed the restore command.

This command is Unraid specific and is only meant to backup and restore containers from and on Unraid.

 

However you can do the process as described above and this shoudl work fine.

 

Main issue is that it seems that Proxmox doesn‘t backup the config and that‘s why you don‘t see anything on Unraid.

Thank you very much for your tip, it worked wonderfully. I still have a small problem, I cannot start an LXC container via the GUI, and the autostart doesn't work either. I have to do it manually via the shell with 'lxc-start iobroker'.

Do you know this phenomenon? And do you have a solution?

  • Author
20 minutes ago, onotop said:

Thank you very much for your tip, it worked wonderfully. I still have a small problem, I cannot start an LXC container via the GUI, and the autostart doesn't work either. I have to do it manually via the shell with 'lxc-start iobroker'.

Do you know this phenomenon? And do you have a solution?

Please post your Diagnostics.

This is a good plugin. I've been using it for a while. Thanks for working on it!

I wish this functionality was built-in to Unraid. Seems like a good fit given Docker and KVM are both built-in.

  • Author
21 minutes ago, Daniel15 said:

This is a good plugin. I've been using it for a while. Thanks for working on it!

Thanks, really much appreciated!

 

20 minutes ago, Daniel15 said:

I wish this functionality was built-in to Unraid.

It might will be at some point, for now it's a plugin and it won't work any different than if it's built in. :)

Hi everyone.

 

I've tried to create a  new LXC using the DebianVNC template using:

 

wget https://github.com/ich777/unraid_lxc_debian_novnc/raw/refs/heads/master/lxc_container_template.xml -O /tmp/lxc_container_template.xml

 

Then I go into:

http://server:81/LXCAddTemplate

 

All the information populates on the screen correctly:

 

image.thumb.png.7c037b07a01999c8df1e1d784b61ae32.png

 

The issue is that pressing on CREATE does nothing. DONE gets me to the LXC page.

 

I've tried in Brave/Brave Incognito/Firefox/Firefox Incognito. Have you seen this on your side?

  • Author
46 minutes ago, djismgaming said:

I've tried in Brave/Brave Incognito/Firefox/Firefox Incognito. Have you seen this on your side?

Thank you for the report, this was an issue with the pattern matching on the LXCAddTemplate site, please update the plugin to 2025.01.09 and it should work again.

16 hours ago, ich777 said:

Do you have Diagnostics for me?

Can I also send it to you via PM?

when I'm in my lx containers cli and like to reboot the container and use the command

reboot

it does shutdown but does not start again. i need to manualy start the lxc in the unraid menu again. Is this normal?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.