.. _Creating a Virtual Machine:

Creating a Virtual Machine
--------------------------

To create a virtual machine, do the following:

#. Prepare an ISO image with a guest operating system to install in the new VM after its creation.

#. On the **COMPUTE** > **IMAGES** tab, click **Add image**, select the ISO, and click **Done** to upload it.

   .. image:: ../../../images/stor_image78.png
      :align: center
      :class: align-center

#. On the **COMPUTE** > **VIRTUAL MACHINES** tab, click **Create VM**.

   .. image:: ../../../images/stor_image70.png
      :align: center
      :class: align-center

#. In the **Create virtual machine** window, specify a **Name** for the new virtual machine, click pencil icons next to all the parameters in succession, and do the following in the corresponding fields and tabs:

   #. Select the uploaded image on the image selection tab and click **Done**.

      .. image:: ../../../images/stor_image70_1.png
         :align: center
         :class: align-center

   #. On the volume management tab, make sure that the default boot volume is large enough to accomodate the guest OS. Optionally, add more volumes. Click **Done**.

      .. image:: ../../../images/stor_image70_2.png
         :align: center
         :class: align-center

   #. Choose a flavor on the flavor selection tab and click **Done**.

      .. image:: ../../../images/stor_image76.png
         :align: center
         :class: align-center

   #. In the network management tab, click **Add network interface**, select a network, and click **Done**.

      .. image:: ../../../images/stor_image70_3.png
         :align: center
         :class: align-center

#. Back in the **Create virtual machine** window, click **Deploy** to create and boot the VM.

#. Once the VM is in the **Active** state, select it, click **Console**, and, in the pop-up window, install the guest OS using the console.

   .. image:: ../../../images/stor_image70_4.png
      :align: center
      :class: align-center

Once the guest OS is installed, the virtual machine is ready and running.
