Hello,
I am trying to create a lxc via the 8.4 api. I created a apitoken on the root user with propagated permissions. Here is the content I am using to send to the api
{
vmid: 9011,
hostname: 'harry',
ostemplate: 'cephfs:vztmpl/debian13-custom-20251002-dev.tar.gz',
storage: 'vm_pool',
rootfs: 'volume=vm_pool,size=3G',
memory: 1536,
cores: 1,
cpulimit: 0.5,
net0: 'name=eth0,bridge=vmbr0,ip=dhcp,tag=20,type=veth,firewall=0',
password: 'balhblah',
swap: 1024,
start: 1,
unprivileged: 1,
cmode: 'shell',
console: true,
description: 'Game Server for harry',
tags: 'level-1, debian13, fvtt, dev',
mp0: 'vm_pool:vm-9011-disk-1,mp=/data,backup=1,size=6G'
}
The response error from the api
data: {
data: null,
message: 'Only root can pass arbitrary filesystem paths. at /usr/share/perl5/PVE/Storage.pm line 581.\n'
}
I don't understand the error. If I am using a token based on the root user. I am using a ceph rbd storage volume called "vm_pool"
Please any help would be appreciated.
Brad
I am trying to create a lxc via the 8.4 api. I created a apitoken on the root user with propagated permissions. Here is the content I am using to send to the api
{
vmid: 9011,
hostname: 'harry',
ostemplate: 'cephfs:vztmpl/debian13-custom-20251002-dev.tar.gz',
storage: 'vm_pool',
rootfs: 'volume=vm_pool,size=3G',
memory: 1536,
cores: 1,
cpulimit: 0.5,
net0: 'name=eth0,bridge=vmbr0,ip=dhcp,tag=20,type=veth,firewall=0',
password: 'balhblah',
swap: 1024,
start: 1,
unprivileged: 1,
cmode: 'shell',
console: true,
description: 'Game Server for harry',
tags: 'level-1, debian13, fvtt, dev',
mp0: 'vm_pool:vm-9011-disk-1,mp=/data,backup=1,size=6G'
}
The response error from the api
data: {
data: null,
message: 'Only root can pass arbitrary filesystem paths. at /usr/share/perl5/PVE/Storage.pm line 581.\n'
}
I don't understand the error. If I am using a token based on the root user. I am using a ceph rbd storage volume called "vm_pool"
Please any help would be appreciated.
Brad