Alternatively, you can configure storage pools, leaving the resource management of
step 1 to libvirt. A
storage pool consists of a set of volumes, such as
The image files of a host directory
The image files residing on a disk or the partition of
a disk
The image files residing on a network file system
The logical volumes of a volume group
A live virtual server migration is only possible for storage
pools backed by image files residing on a network file
system.
Figure 1 shows a
storage pool backed by the image files of a directory:Figure 1. Storage pool backed by the image files of a directory
Figure 2 shows a
storage pool backed by the logical volumes of a volume group:Figure 2. Storage pool backed by the logical volumes of a volume group
To provide the volumes of a storage pool as virtual block devices for a virtual server:
Create the resources which back the storage pool.
Make resources backing the volumes accessible for the virtual server.
Figure 3 shows a storage pool backed
by a host directory. The volumes of the storage
pool are configured as virtual block devices of different virtual servers:Figure 3. Storage pool volumes configured as virtual block devices
Define and start the storage pool before defining the virtual server.
Manage the storage pool and its volumes by using
the commands described in Managing storage pools.