[SOLVED] Create containers based on old files

Just

New Member
Nov 16, 2020
1
0
1
24
Hey,
I had a few troubles installing proxmox so I decided to do a full reinstall. Now I need to create my old containers again. I have all the files but I am still not sure how I would tell proxmox where to find them.
ZaknKXiy3N.png
I need all containers from id 100 to 105.

Any advice would be appreciated :/
 
Hi,

First, if you have not already done so, add the lvmthin to your storage config:
pvesm add lvmthin data --vgname data --thinpool data

Then you can recreate the container configuration files in /etc/pve/lxc/.
The configuration for container 100 may be something like (/etc/pve/lxc/100.conf ):
Code:
arch: amd64
cores: 1
hostname: CT100
memory: 512
net0: name=eth0,bridge=vmbr0,firewall=1,hwaddr=x,type=veth
ostype: container_os
rootfs: data:vm-100-disk-0,size=15G
swap: 512
unprivileged: 1

You can find info on container configuration here: https://pve.proxmox.com/pve-docs/pve-admin-guide.html#pct_configuration
And info on adding storage to storage config here: https://pve.proxmox.com/pve-docs/pve-admin-guide.html#_using_the_command_line_interface
 
Last edited:
  • Like
Reactions: Just