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",
...
 

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!