LXC Ubuntu 18.04 installing default packages

swizes

New Member
Apr 12, 2020
1
0
1
33
Hello,

I have started using Proxmox for couple of months and I am currently using only LXC for my work because all I need is linux environment. Unfortunately everytime I create a container, I have to install curl and/or other packages, which comes actually default with Ubuntu Server. Is there any way to avoid those manual installations? It would allow me to do my work faster. What I am looking for is a few commands, which would install those default packages
 
You have a few options:
* the most simple probably would be to create one container - configure it to your liking, install all wanted software - and then convert this container to a template - afterwards you clone the template instead of creating new containers.
* an alternative is to use a configuration management system, which you deploy on your containers (then again you would need to install that one initially)

I hope this helps!