Add a storage pool
A libvirt storage pool identifies storage for VM disk images. ZRS creates directory-backed pools, with either a plain host directory or a mounted ZFS dataset as the location.
Create a pool #
- Open Pools under VMs and select New pool.
- Enter a pool name, for example
vm-disks. - Choose the location as described below.
- Leave Start on host boot enabled if the pool should start with the host.
- Select Create pool.
ZRS creates and starts the libvirt pool. The pool then appears in storage pickers for VM disks.
Use a host directory #
Enter an absolute Directory, such as /srv/vm-disks. With the ZFS location chooser, select Other path first. The directory is created if it does not exist.
The path is on the ZRS server, not the browser’s computer.
Use ZFS storage #
- New dataset: choose the parent under Create in, enter the Dataset name, and select VM disks under Used for.
- Existing dataset: select a mounted dataset available in the picker. The pool uses its mountpoint.
A libvirt storage pool and a ZFS pool are different objects. This flow creates a dataset within an existing ZFS pool, not a new ZFS pool from physical disks.
Rescan files #
After copying image files into the pool directory outside ZRS, select Rescan to refresh libvirt’s file listing.