Add, Edit, or Remove Disks
Using the VM [name] page, Cockpit administrators can manage virtual disks associated with a VM instance. Available disk management actions include: adding a new disk instance, editing properties associated with an attached disk instance, and removing a disk instance.
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.
- One or more virtual machine instances must already exist on the host system.
- For more information about managing virtual disks, see Managing Virtual Disks in the Oracle Linux: KVM User's Guide.
Steps
Using the Cockpit web console, follow these steps to manage virtual disks associated with a VM instance.
- In the Cockpit navigation pane, click Virtual machines.
The Virtual machines page appears.
- In the Virtual machines page, click the name of the virtual
machine of interest.
The Virtual machines [VM name] page appears.
-
In Virtual machines [VM name] page, navigate to the Disk section and perform any of the following actions:
Add disk (new, existing, custom) Perform these steps: - Click Add disk.
- In the dialog, select a source option and then configure the required
properties:
Source options:
- Create. Select to add new virtual disk.
- Existing. Select to attach existing virtual disk.
- Custom. Select to add disk image or CD/DVD disk.
Configuration properties:
- Pool. In the list box, select the storage pool from which the virtual disk is to be attached.
- Volume. In the list box, select a storage volume for the virtual disk to be attached
- Persistence. This option is available only when
the VM is running.
To make the virtual disk persistent, select the Always attach check box. Otherwise clear the check box to make the virtual disk transient.
- Cache. In the list box, select the applicable cache mode for the virtual network interface.
- Bus. In the list box, select the applicable bus type for the virtual network adapter.
- Click Add to attach the disk to the VM instance.
Edit an attached disk Perform these steps:
- Click Edit.
- In the dialog, change the applicable properties.
- Click Save to save the changes.
Remove an attached disk Perform these steps:
- Click Remove.
- In the confirmation dialog, click Remove to detach the disk from the VM instance.