Hey everyone!
I am trying to get the current disk size of a LXC with its rootfs on the local pool, ext4-based. Nothing tricky. This is on PVE 7.4. The command I am executing, from the node where the LXC is, is as follows:
Which is the same information shown by the equivalent
According to the PVE API documentation on this endpoint, it should return the disk size. What am I doing wrong? Does it require some extra parametre?
Thanks in advance.
I am trying to get the current disk size of a LXC with its rootfs on the local pool, ext4-based. Nothing tricky. This is on PVE 7.4. The command I am executing, from the node where the LXC is, is as follows:
Code:
# pvesh get /nodes/proxmox6/lxc/109/config --output-format=json
{"arch":"amd64","cores":2,"digest":"e4703f43c78da6103a56cbfcb9dc2ef40105ffdf","features":"nesting=1","hostname":"guest1","memory":2048,"nameserver":"192.168.0.253 192.168.0.254","net0":"name=eth0,bridge=vmbr4002,firewall=1,hwaddr=76:67:19:8A:52:40,ip=192.168.0.109/24,mtu=1400,type=veth","onboot":0,"ostype":"debian","rootfs":"volume=local:109/vm-109-disk-0.raw,mountoptions=noatime;lazytime","searchdomain":"domain.com","swap":512,"tags":"debian12;local","unprivileged":1}
Which is the same information shown by the equivalent
pct
command:
Code:
# pct config 109
arch: amd64
cores: 2
features: nesting=1
hostname: guest1
memory: 2048
nameserver: 192.168.0.253 192.168.0.254
net0: name=eth0,bridge=vmbr4002,firewall=1,hwaddr=76:67:19:8A:52:40,ip=192.168.0.109/24,mtu=1400,type=veth
onboot: 0
ostype: debian
rootfs: volume=local:109/vm-109-disk-0.raw,mountoptions=noatime;lazytime
searchdomain: domain.com
swap: 512
tags: debian12;local
unprivileged: 1
According to the PVE API documentation on this endpoint, it should return the disk size. What am I doing wrong? Does it require some extra parametre?
Thanks in advance.