How can I simply change the default VM/LXC storage location?


Sep 11, 2019
Hi all -- please bear with me as I am completely new to Proxmox and I'm trying to figure out everything step by step. My own research hasn't helped me yet to answer a few questions I have.

Short summary:
  • I have installed Proxmox on 2x 32GB SSDs configured as ZFS during the installation. So far so good.
  • I have 2x 500GB SSDs now that I want to use for storing and retaining ALL the VMs and containers I am about to create going forward.
  • I have configured the 2x500GB SSDs as a ZFS pool, named "VM-store".






I've modified the storage.cfg file as follows, without any success though:

dir: local
path /var/lib/vz
content vztmpl,backup,iso

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

zfspool: VM-store
        pool VM-store
        content rootdir,images,backup,iso,vztmpl
        nodes pve

I'm clearly missing something very basic here, so I would appreciate any help and recommendations for additional reading :).
Update: I tried creating a Directory type storage and pointed it to the /VM-store location, which is (in theory) the ZFS RAID1 pool I have created. This allows me to select this location as a target for my LXC container I am trying to create.

Is this the right way to do it (i.e. create a ZFS pool and then create a Directory storage type "on top")? Or am I messing things up? Do I have the ZFS benefits (mirroring in this case) if I do it this way?


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!