Got it

How to Delete a VM on the IaaS?

Latest reply: Feb 24, 2022 05:33:12 509 9 5 0 0

Hello everyone!


This post will explain to you how to delete VMs at the IaaS layer. Please have a look at the information below.


ISSUE DESCRIPTION


If a VM is deleted using an incorrect method, the VM is not actually deleted. In this case, delete the VM in the background.


Note

Before deleting the VM, check whether services are running on the VM and whether residual VMs are running on the VM.


DELETING METHOD


1. Find the VM ID.

nova list --all-t |grep VM name


virtual machine ID


2. Find and record the VM disk.

nova show vm-id


nova show vm-id


3. Locate the VM port.


port


4. Delete a VM.

nova delete vm-id


nova delete vm-id


5. Delete a Volume.

cinder delete volume-id


cinder delete volume-id


6. Delete a port.

neutron port-delete port-id


neutron port-delete port-id


Note:

Remember to query before deleting and also remember to query after deleting to check whether it's been deleted.


cinder list | grep volume-id

neutron port list | grep port-id


That's all, thanks!

  • x
  • convention:

Saqibaz
Created Feb 10, 2022 20:00:30

Thanks for sharing
View more
  • x
  • convention:

olive.zhao
olive.zhao Created Feb 11, 2022 05:12:02 (0) (0)
 
faysalji
Moderator Author Created Feb 10, 2022 20:20:27

Good, thanks for showing the process How to Delete a VM on the IaaS?-4658515-1
View more
  • x
  • convention:

olive.zhao
olive.zhao Created Feb 11, 2022 05:12:14 (0) (0)
 
little_fish
Admin Created Feb 15, 2022 08:00:30

Good case.
View more
  • x
  • convention:

user_4358465
Created Feb 18, 2022 15:13:43

Thanks for sharing this study case!
View more
  • x
  • convention:

olive.zhao
olive.zhao Created Feb 24, 2022 07:30:21 (0) (0)
 
MahMush
Moderator Author Created Feb 24, 2022 05:33:12

thanks for discussing it
View more
  • x
  • convention:

olive.zhao
olive.zhao Created Feb 24, 2022 07:30:14 (0) (0)
 

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.
Information Protection Guide
Thanks for using Huawei Enterprise Support Community! We will help you learn how we collect, use, store and share your personal information and the rights you have in accordance with Privacy Policy and User Agreement.