Query container private area location

brickZA

New Member
Jun 14, 2012
6
0
1
Hi,

Is there a way to query the location of a container's private area? One can set it when creating a container using vzctl --private, but I would like to find the private area for an existing container. One could hard-code the assumption as /var/lib/vz/private/CTID, but this seems potentially future-unproof :)

Thanks
Neilen
 
The API returns the assiciated storage, for example:

# pvesh get /nodes/localhost/openvz/101/config

...
"storage" : "local",
...
 
Dietmar,

The API returns the assiciated storage, for example:

# pvesh get /nodes/localhost/openvz/101/config

...
"storage" : "local",
...

Thanks for the info. I would however still like to know how to resolve "storage" : "local" into a file system path.
 
Thanks for the info. I would however still like to know how to resolve "storage" : "local" into a file system path.

All filesystem based storage have a 'path' property:

# pvesh get /storage/local

...
"path" : "/var/lib/vz",
...