Create a Storage Pool
Using the Virtual machines page in the web console, Cockpit
administrators can create a storage pool as needed on the managed host system. By default, a
storage pool is provided in the /var/lib/libvirt/images
directory.
Note:
For information about how to create storage pools using thevirsh
commands, see Working With Storage for KVM Guests.
What Do You Need?
- The Cockpit web console must be installed and accessible.
For details, see these topics: Install and Enable Cockpit and Log in to the Cockpit Web Console.
- The
Cockpit-machines
add-on application must be installed in the web console and the Oracle Linux virtualization packages must be installed and enabled on the host system.For more information, see Install Cockpit-Machines and Enable Virtualization.
Steps
Using the Cockpit web console, follow these steps to create a storage pool on the managed host system.
- In the navigation pane, click Virtual machines, and then on the
Virtual Machines page click Storage Pools.
The Storage Pools page appears.
- In the Storage Pools page, click Create Storage
Pool
The Storage Pool dialog appears.
- In the Storage Pool dialog, specify the following properties and
then click Create.
Connection Select either a System or User session storage pool connection. Name In the Name text box, enter a unique name for the storage pool. Type In the Type drop down list box, select one of the following storage pool types. - File system directory
Requires path on host's file system.
- Network file system
Requires path on host's file system, host name, and the directory on the server being exported.
- ISCSI target
Requires path on host's file system, host name, and iSCSI target IQN.
- Physical disk device
Requires path on host's file system, physical device disk on host, and format.
- LVM volume group.
Requires host name, iSCSI target IQN, and iSCSI initiator IQN.
For more information about each type of storage pool, see https://libvirt.org/storage.html.
Target path Note:
The Target path property isn't required for LVM volume group storage pool types.In the Target path text box, specify the file path for the storage pool on the host system.
Start pool when host boots Do one of the following: - (Default) Select the checkbox to automatically start the storage pools upon powering on the host.
- Clear the checkbox to prevent starting the storage pool upon powering on the host.
The newly added storage pool instance appears on the Storage Pools page in a deactivated state.
- File system directory
-
In Storage Pools page, navigate to the newly added storage pool and perform any of the following:
- Click the [>] icon to view the new added storage pool properties.
- Click Activate to activate the newly added storage pool.