Seeking a simple way to set default storage for new VMs.

spergberger

New Member
Jun 26, 2024
27
0
1
It seem like there ought to be a simple, elegant way to set or change the default (backing) storage volume for VMs on the pve host.

Would be nice if I could simply type something like:
pvesm set default pool vm0
and have the system switch from the old root pool to the dedicated storage disk/pool.

This worked.
pvesm set local-lvm --disable 1
and
pvesm set vm0 --disable 0

But it's two steps.
 
If I recall correctly, there is no "default" storage.
Instead, it just gets all the storages that fit the "goal" (so storages with the iso-option when selecting iso's and with the disk-option when creating disks). It then auto-selects the first item in that list.
So the solution would be: Create your storage with a name starting with a-k, or (if you don't plan to use storage on that datastore all-together), disable the option to store data there all-together.

For our cluster we even have it set up that, other then 2 sysadmin-users and the root, all other admin-users don't even have access to the storages they should not be using.
 
  • Like
Reactions: spergberger