[SOLVED] PVE7to8 warning

ducs4rs

Member
Apr 13, 2021
36
5
13
66
On my test system I ran PVE7to8 and got this warning on my only LXC vm

WARN: CT 102 - volume 'vm_images:102/vm-102-disk-1.raw' (in config) - storage does not have content type 'rootdir' configured. WARN: Proxmox VE enforces stricter content type checks since 7.0. The guests above might not work until the storage configuration is fixed.
Here is my LXC configuration

root@pvesm1:/etc/pve/lxc# cat 102.conf arch: amd64 cores: 1 hostname: nas2 memory: 2048 net0: name=eth0,bridge=vmbr0,firewall=1,gw=192.168.1.254,hwaddr=66:6C:7C:C1:B6:B7,ip=192.168.1.20/24,type=veth ostype: debian rootfs: vm_images:102/vm-102-disk-1.raw,size=8G swap: 2048 unprivileged: 1

what do I need to change to fix this warning, or just ignore it?
 
The more intersting part would be your storage config: cat /etc/pve/storage.cfg
 
Last edited:
On my test system I ran PVE7to8 and got this warning on my only LXC vm

WARN: CT 102 - volume 'vm_images:102/vm-102-disk-1.raw' (in config) - storage does not have content type 'rootdir' configured. WARN: Proxmox VE enforces stricter content type checks since 7.0. The guests above might not work until the storage configuration is fixed.
Here is my LXC configuration

root@pvesm1:/etc/pve/lxc# cat 102.conf arch: amd64 cores: 1 hostname: nas2 memory: 2048 net0: name=eth0,bridge=vmbr0,firewall=1,gw=192.168.1.254,hwaddr=66:6C:7C:C1:B6:B7,ip=192.168.1.20/24,type=veth ostype: debian rootfs: vm_images:102/vm-102-disk-1.raw,size=8G swap: 2048 unprivileged: 1

what do I need to change to fix this warning, or just ignore it?
As @Dunuin suggested, check your storage configuration. The storage vm_images might be missing a content rootdir, which must be present for storages which should allow to store containers on them. You can add this by editing the contents of the storage itself via the WebUI (recommended) or by editing it in the storage config, accordingly.
 
As @Dunuin suggested, check your storage configuration. The storage vm_images might be missing a content rootdir, which must be present for storages which should allow to store containers on them. You can add this by editing the contents of the storage itself via the WebUI (recommended) or by editing it in the storage config, accordingly.
That was it, thanks

dir: vm_images path /tank/vm_images/ content images prune-backups keep-all=1 shared 1

changed to

dir: vm_images path /tank/vm_images/ content rootdir,images prune-backups keep-all=1 shared 1
 
  • Like
Reactions: Chris

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!