Deleted container rootfs disk

sobertillnoon

New Member
Mar 31, 2026
3
0
1
I deleted the wrong partition that contained my container rootfs. I have an "unused" copy of that disk still but no backup. I tried editing the lcx conf to move the old disk to the rootfs but when starting it I get an error "TASK ERROR: missing 'arch' - internal error at /usr/share/perl5/PVE/LXC.pm line 724"

Is there anything I can do do get the rootfs back using that unused disk?
 
Sounds like you mangled the container configuration file. If you don't have a backup (that also contains the original container configuration file) then please show the configuration file for people here to try to fix it.
 
The following is my CT configuration.

Code:
cores: 10
features: mount=nfs
hostname: downloader
memory: 16384
nameserver: 1.1.1.1 8.8.8.8 9.9.9.9
net0: name=eth0,bridge=vmbr0,firewall=1,gw=192.168.1.1,hwaddr=BC:24:11:BE:C0:ED,ip=192.168.1.50/24,type=veth
onboot: 1
ostype: centos
startup: order=998,up=120
swap: 512
rootfs: NVME:100/vm-100-disk-0.raw,size=5G
unused0: NVME:100/vm-100-disk-0.raw
lxc.cgroup2.devices.allow: c 10:200 rwm
lxc.mount.entry: /dev/net dev/net none bind,create=dir
 
Last edited:
Adding arch:amd64 to the top fixed it. I don't know how I accidentally deleted that. I must have hit a key combo in nano on accident. Still new to nano, been a vi user my whole life. Thank you for the info.

side note: It is a privileged container. I was young and stupid. I will get the nfs store added to the datacenter and added as a mountpoint in the ct config so I can remove the privilege.
 
Still new to nano, been a vi user my whole life.
vi is also installed on Proxmox, but good for you to try new things.
side note: It is a privileged container. I was young and stupid. I will get the nfs store added to the datacenter and added as a mountpoint in the ct config so I can remove the privilege.
I'm not so sure you can change a privileged container to unprivileged or vice versa. You probably need to recreate it anew. Now, first make a backup of this container!