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 build a new KVM instance using the OpenStack command-line interface (CLI), perform the following steps:

  1. Ensure that we have an available Glance image to use:
root@controller:~# openstack image list+--------------------------------------+--------------+--------+| ID                                   | Name         | Status |+--------------------------------------+--------------+--------+| abce08d2-2f9f-4545-a414-32019d41c0cd | ubuntu_16.04 | active |+--------------------------------------+--------------+--------+root@controller:~#
  1. Create a new instance flavor type:
root@controller:~# openstack flavor create --id 0 --vcpus 1 --ram 1024 --disk 5000 kvm.medium+----------------------------+------------+| Field                      | Value      |+----------------------------+------------+ ...

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