D danboid Renowned Member Jul 5, 2012 16 0 66 Aug 4, 2023 #1 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? Thanks
leesteken Distinguished Member Proxmox Subscriber May 31, 2020 7,664 2,519 278 Aug 4, 2023 #2 danboid said: 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? Click to expand... 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).
danboid said: 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? Click to expand... 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).
D danboid Renowned Member Jul 5, 2012 16 0 66 Aug 16, 2023 #3 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
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
LnxBil Distinguished Member Feb 21, 2015 10,242 2,334 303 Saarland, Germany Aug 16, 2023 #4 danboid said: 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 Click to expand... 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. Reactions: danboid
danboid said: 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 Click to expand... 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.