O'Reilly logo

KVM Virtualization Cookbook by Konstantin Ivanov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How to do it...

To terminate a running instance, perform the following steps:

  1. Obtain the name or ID of the instance to be terminated:
root@controller:~# openstack server start ubuntu_instanceroot@controller:~# openstack server list+---------------------------+-----------------+--------+------------------+--------------+| ID                        | Name            | Status | Networks         | Image Name   |+---------------------------+-----------------+--------+------------------+--------------+| 0f4745b1-...-9eaa1f9bb08f | ubuntu_instance | ACTIVE | nat=192.168.0.11 | ubuntu_16.04 |+---------------------------+-----------------+--------+------------------+--------------+root@controller:~#
  1. Delete the instance by providing the name:
root@controller:~# openstack server delete ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required