Skip to content
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

Add LXC container #6319

Open
yjiawqgj opened this issue Nov 15, 2024 · 6 comments
Open

Add LXC container #6319

yjiawqgj opened this issue Nov 15, 2024 · 6 comments
Labels
request request for new package

Comments

@yjiawqgj
Copy link

Software Name

LXC

Brief Description

Due to the difference between the DSM system and the standard Linux system, the restrictions are very large. If you want to use some other software, many programs cannot run in the DSM system because APT or YUM is not supported. So I thought of using LXC containers, so that you can use standard LINUX and make full use of the remaining performance of the DSM server.

Website

https://linuxcontainers.org/

Documentation

https://linuxcontainers.org/lxc/documentation/

Build/Installation documentation

https://linuxcontainers.org/lxc/downloads/

Source code

https://github.com/lxc/lxc

OpenSource License

other (please specify below)

Other License

I don't understand what it means

@yjiawqgj yjiawqgj added the request request for new package label Nov 15, 2024
@chickenandpork
Copy link
Member

chickenandpork commented Nov 15, 2024

Hey, this would be cool, but there’s likely some work to get the lxc or lxd doing the right thing and setting up the underlying plumbing.

can you confirm that you’ve tried the docker engine on Synology? Can you share why it’s not adequate?

@yjiawqgj
Copy link
Author

yjiawqgj commented Nov 15, 2024

Hey, this would be cool, but there’s likely some work to get the lxc or lxd doing the right thing and setting up the underlying plumbing.

can you confirm that you’ve tried the docker engine on Synology? Can you share why it’s not adequate?

Because DOCKER and LXC are different. For example, if I want to use LXC to deploy the Openwrt system, and use docker to install openwrt, I can only use one network interface of the host machine (maybe I can use multiple network ports, but I don’t know how to configure it so far). Another example is that I want to install wordpress, but I don’t know how to configure the docker version, the containers are many and complex, and it has to occupy port 80 of the host machine and other problems. Lxc is like a complete Linux system, which can be completely independent of DSM and will not pollute DSM.

@chickenandpork
Copy link
Member

Hey, this would be cool, but there’s likely some work to get the lxc or lxd doing the right thing and setting up the underlying plumbing.
can you confirm that you’ve tried the docker engine on Synology? Can you share why it’s not adequate?

Because DOCKER and LXC are different. For example, if I want to use LXC to deploy the Openwrt system, and use docker to install openwrt, I can only use one network interface of the host machine (maybe I can use multiple network ports, but I don’t know how to configure it so far). Another example is that I want to install wordpress, but I don’t know how to configure the docker version, the containers are many and complex, and it has to occupy port 80 of the host machine and other problems. Lxc is like a complete Linux system, which can be completely independent of DSM and will not pollute DSM.

Many of use have used both lxc and docker, and configure different ports on docker.

What containers are up you wanting to deploy? WRT and Wordpress? Or are these just examples?

one reason I’d prefer to step back towards docker/OCI containers is that some features of standard DSM work with containers — for example, configuring an ingress shows the name of the container. Likely other bits.

lxc often requires kernel modules that are not available — it’s easy enough to build a missing module if the kernel is configured for a module, but not if the kernel param is “N”, for example

@yjiawqgj
Copy link
Author

Hey, this would be cool, but there’s likely some work to get the lxc or lxd doing the right thing and setting up the underlying plumbing.
can you confirm that you’ve tried the docker engine on Synology? Can you share why it’s not adequate?

Because DOCKER and LXC are different. For example, if I want to use LXC to deploy the Openwrt system, and use docker to install openwrt, I can only use one network interface of the host machine (maybe I can use multiple network ports, but I don’t know how to configure it so far). Another example is that I want to install wordpress, but I don’t know how to configure the docker version, the containers are many and complex, and it has to occupy port 80 of the host machine and other problems. Lxc is like a complete Linux system, which can be completely independent of DSM and will not pollute DSM.

Many of use have used both lxc and docker, and configure different ports on docker.

What containers are up you wanting to deploy? WRT and Wordpress? Or are these just examples?

one reason I’d prefer to step back towards docker/OCI containers is that some features of standard DSM work with containers — for example, configuring an ingress shows the name of the container. Likely other bits.

lxc often requires kernel modules that are not available — it’s easy enough to build a missing module if the kernel is configured for a module, but not if the kernel param is “N”, for example

wrt and wordpress are just examples, but there are many other cases. I don't understand what you mean when you say that some functions of standard DSM are only applicable to containers. I also don't understand what you mean when lxc requires "unavailable" modules. I used Google Translate to translate your reply, maybe there are translation errors that make me unable to understand what you said, or maybe there are more advanced LINUX knowledge that makes me unable to understand what you said. If you think I can't understand what you said, please try to give examples or reply without using Linux terms.

@hgy59
Copy link
Contributor

hgy59 commented Nov 25, 2024

@yjiawqgj did you see #4555? is this related to your issue?

@yjiawqgj
Copy link
Author

@yjiawqgj did you see #4555? is this related to your issue?

Yes, but I don't see the package

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
request request for new package
Projects
None yet
Development

No branches or pull requests

3 participants