Deleting virtual system instances

You can delete a virtual system instance when it is no longer needed. By deleting a virtual system instance, you release all the cloud resources, making them available for placement decisions.

Before you begin

You must specifically be granted all access to the virtual system instance or have the Workload resources administration with Full permission to complete this task.

About this task

When a virtual system instance is stopped, the cloud resources are not released. The processor usage and the memory allocation associated with the virtual system instance affects placement decisions made by the system. Though the virtual system instance is not actively running, placement decisions are still affected. The cloud resources assigned to this virtual system instance are maintained to ensure that they are available if the virtual system instance is redeployed into the cloud. Deleting the virtual system instance releases the resources and the virtual system instance is no longer a factor in placement decisions.
When removing a deployed virtual system instance that was previously joined in an Active Directory domain, you must delete the corresponding domain computer account. Failure to delete the domain computer account of a deleted domain-joined virtual system instance may produce unexpected results in the domain, such as, domain join failures or addition of computer accounts to unwanted locations with possible unwanted permissions. Use one of the following options to delete the domain computer account:
  • If the virtual system instance is online, manually delete the domain computer account from the virtual system instance, or ask your domain administrator to delete the computer account from the domain controller.
  • If the virtual system instance is already deleted, ask your domain administrator to delete the computer account from the domain controller.
To automate deletion of a domain computer account for a corresponding virtual system instance prior to its deployment, follow these steps:
  • Develop a script package to delete a computer account from a computer client.
  • Add the script package to the Cloud Pak System catalog. Set the Executes field to at virtual system deletion.
  • You can insert this script package into patterns used to deploy a virtual system instance in a domain environment. For flexibility, allow for an alternative user login to use the script package.
For information about Windows domains in the environment profile, see the Related tasks section.
Note: After deleting a virtual system instance, the virtual machine instances that belong to that virtual system are also deleted. However, when you open the IBM® Cloud Pak Software Monitoring Portal, those deleted virtual machine instances might still be visible in the Physical view. These virtual machines instances are not active and can be ignored.

Procedure

  1. Click Patterns > Virtual System Instances.
  2. Select the virtual system instance that you want to delete and click Delete on the toolbar.
  3. In the confirmation dialog box that is displayed, specify the deletion options:
    Delete the virtual system history and log files as well
    When deleting a virtual system instance, you can delete history information and logs from that virtual system instance. To retain this information, ensure that the Delete the virtual system history and log files as well check box is cleared.
    If this virtual system instance contains any scripts that are run at virtual system instance deletion, the check box must be cleared. Otherwise, you cannot see the logs from the run of that script.
    Note: Scripts that are run at virtual system instance deletion are run only if the virtual system instance is running when it is deleted.
  4. Click OK to delete the virtual system instance with the parameters that you specified.

Results

The virtual system instance is deleted from the cloud.

What to do next

You can create a virtual system instance by deploying a pattern or you can access any virtual system instance that is started. For more information about creating a virtual system instance by deploying a pattern, or about accessing a virtual system instance, see the Related tasks section.