13.9. Removing virtual machine storage by using the web console


If you no longer require a virtual disk attached to a virtual machine (VM), or if you want to free up host storage resources, you can use the web console to do any of the following:

  • Detach the virtual disk from the VM.
  • Delete the virtual disk and its content.
  • Deactivate the storage pool related to the virtual disk.
  • Delete the storage pool related to the virtual disk.

Prerequisites

Procedure

  1. To detach a virtual disk from a VM, use the following steps:

    1. In the Virtual Machines interface, click the VM from which you want to detach a disk.

      A new page opens with an Overview section with basic information about the selected VM and a Console section to access the VM’s graphical interface.

    2. Scroll to Disks.

      The Disks section displays information about the disks assigned to the VM, as well as options to Add or Edit disks.

    3. On the right side of the row for the disk that you want to detach, click the Menu button .
    4. In the drop-down menu that appears, click the Remove button.

      A Remove disk from VM? confirmation dialog box appears.

    5. In the confirmation dialog box, click Remove. Optionally, if you also want to remove the disk image, click Remove and delete file.

      The virtual disk is detached from the VM.

  2. To delete the disk, do one of the following:

    1. If the disk is managed as a storage volume, click Storage Pools at the top of the Virtual Machines tab. Click the name of the storage pool that contains the disk. Click Storage Volumes. Select the storage volume you want to remove. Click Delete 1 Volume.

      # virsh vol-delete --pool RHEL-storage-pool test-disk2
    2. If the disk is a file not managed as a storage volume (for example if it was created by qemu-img), you must use a graphical file manager or the command line to delete it. The RHEL web console currently does not support deleting individual files.
  3. To deactivate a storage pool, use the following steps.

    When you deactivate a storage pool, no new volumes can be created in that pool. However, any VMs that have volumes in that pool will continue to run. This is useful, for example, if you want to limit the number of volumes that can be created in a pool to increase system performance.

    1. Click Storage Pools at the top of the Virtual Machines tab. The Storage Pools window appears, showing a list of configured storage pools.
    2. Click Deactivate on the storage pool row.

      The storage pool is deactivated.

  4. To completely remove a storage pool, use the following steps:

    1. Click Storage Pools on the Virtual Machines tab.

      The Storage Pools window appears, showing a list of configured storage pools.

    2. Click the Menu button of the storage pool you want to delete and click Delete.

      A confirmation dialog appears.

    3. Optional: To delete the storage volumes inside the pool, select the corresponding check boxes in the dialog.
    4. Click Delete.

      The storage pool is deleted. If you selected the checkbox in the previous step, the associated storage volumes are deleted as well.

Verification

Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2026 Red Hat
返回顶部