Change default container path

danboid

Renowned Member
Jul 5, 2012
16
0
66
Proxmox defaults to creating new containers under /rpool/data.

I would like to create a separate ZFS pool for my containers and VMs. How do I change the default path where new containers are created?

Thanks
 
Proxmox defaults to creating new containers under /rpool/data.

I would like to create a separate ZFS pool for my containers and VMs. How do I change the default path where new containers are created?
You cannot set a default but you can select per storage what kind of things can be stored there. Remove Container from the Content setting of zfs-local in Datacenter, Storage and it won't be suggested for containers in the future (I assume).
 
I'm having trouble accessing the proxmox GUI currently, I've been trying to access it via ssh portforwarding with no luck, not for 8006/HTTPS nor VNC.

Is there a way to change this setting via the command line or is there a config file I can edit to change where new containers get created?

Thanks
 
Is there a way to change this setting via the command line or is there a config file I can edit to change where new containers get created
Yes, it should be something like this:

Code:
root@proxmox ~ > cat /etc/pve/storage.cfg
dir: local
        path /var/lib/vz
        content vztmpl,iso,backup
        prune-backups keep-last=1
        shared 0

zfspool: local-zfs
        pool rpool/data
        content rootdir,images
        sparse 1

Just create you new dataset and change the pool name. Be aware of any existing container, which will not work anymore after changing the setting.
 
  • Like
Reactions: danboid

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!