Product SiteDocumentation Site

16.13. Creating storage pools using virt-manager

This section includes information on creating different storage pools using the virt manager. In most cases the command line can also be used to perform the same action. To create a storage pool using the CLI, refer to Chapter 11, Storage pools .

16.13.1. Creating a partition-based storage pool using virt-manager

This procedure creates a new storage pool using a partition of a storage device using virt-manager. This same action can also be done using the command line window. For directions on creating a dedicated disk storage pool with the CLI, refer to Section, “Creating a partition-based storage pool using virsh”.
Procedure 16.1. Creating a partition-based storage pool with virt-manager
  1. Open the storage pool settings

    1. In the virt-manager graphical interface, select the host from the main window.
      Open the Edit menu and select Connection Details
      Connection Details
      Figure 16.23. Connection Details

    2. Click on the Storage tab of the Connection Details window.
      Storage tab
      Figure 16.24. Storage tab

  2. Create the new storage pool

    1. Add a new pool (part 1)

      Press the + button (the add pool button). The Add a New Storage Pool wizard appears.
      Choose a Name for the storage pool. This example uses the name guest_images_fs. Change the Type to fs: Pre-Formatted Block Device.
      Storage pool name and type
      Figure 16.25. Storage pool name and type

      Press the Forward button to continue.
    2. Add a new pool (part 2)

      Change the Target Path, Format, and Source Path fields.
      Storage pool path and format
      Figure 16.26. Storage pool path and format

      Target Path
      Enter the location to mount the source device for the storage pool in the Target Path field. If the location does not already exist, virt-manager will create the directory.
      Select a format from the Format list. The device is formatted with the selected format.
      This example uses the ext4 file system, the default Fedora X (was RHEL) file system.
      Source Path
      Enter the device in the Source Path field.
      This example uses the /dev/sdc1 device.
      Verify the details and press the Finish button to create the storage pool.
  3. Verify the new storage pool

    The new storage pool appears in the storage list on the left after a few seconds. Verify the size is reported as expected, 458.20 GB Free in this example. Verify the State field reports the new storage pool as Active.
    Select the storage pool. In the Autostart field, click the On Boot checkbox. This will make sure the storage device starts whenever the libvirtd service starts.
    Storage list confirmation
    Figure 16.27. Storage list confirmation

    The storage pool is now created, close the Connection Details window.