.. _Deploying Virtuozzo Storage:

Deploying Virtuozzo Storage
===========================

You can deploy Virtuozzo Storage with management either via command line tools (i.e. CLI) or web management panel (i.e. GUI, recommended). This section lists steps to deploy the recommended setup from scratch.

.. note:: If you are sure you need to deploy Virtuozzo Storage with CLI management instead, see `here <http://docs.virtuozzo.com/virtuozzo_7_installation_guide/installing-virtuozzo/installing-virtuozzo-with-cli.html>`__.

#. Plan your Virtuozzo Storage infrastructure (hardware, networks, redundancy mode) as described `here <http://docs.virtuozzo.com/virtuozzo_7_installation_guide/preparing-for-installation/planning-storage-gui.html>`__.

#. Set up the first Virtuozzo Storage node.

   On it, a container will be created with the Virtuozzo Storage management panel through which you will manage your Virtuozzo Storage clusters. It will also be configured as a storage node that will automatically be registered in Virtuozzo Storage. Finally, Virtuozzo Automator Management Node will be installed on this server. With it, you will easily select Virtuozzo Storage as location for your virtual environments. The Virtuozzo Automator Management Node will be installed in another container. The node will be registered in Virtuozzo Automator automatically.
   
   .. note:: If you already have Virtuozzo Automator set up, you can use it instead. To easily switch to the Virtuozzo Storage management panel, you can install Virtuozzo Storage management plugin for your Virtuozzo Automator as described `here <http://docs.virtuozzo.com/virtuozzo_automator_7_administrators_guide/advanced-tasks/logging-in-to-vstorage-management-panel.html>`__.
   
   To set up the first node, follow these steps:
   
   #. Boot the node from the Virtuozzo distribution and choose **Install Virtuozzo 7 with GUI management** on the installer's welcome screen.

   #. Set up date, time, and keyboard layout, accept EULA, and choose a disk to install Virtuozzo on. For more details on choosing installation destination, see `here <http://docs.virtuozzo.com/virtuozzo_7_installation_guide/installing-virtuozzo/installing-virtuozzo-with-gui.html#choosing-installation-destination>`__.

   #. Open the **VIRTUOZZO STORAGE** screen. On it, choose the role **Management Panel and Storage** and specify the IP address and hostname for your Virtuozzo Storage management panel container. For details, see `here <http://docs.virtuozzo.com/virtuozzo_7_installation_guide/installing-virtuozzo/installing-virtuozzo-with-gui.html#installing-management-panel-and-storage-on-the-first-server>`__.
   
      .. image:: ../../images/vzinstall25.png
         :align: center
         :class: align-center

   #. Open the **VIRTUOZZO AUTOMATOR** screen. On it, choose the role **Management Panel and Compute** and specify the IP address and hostname for your Virtuozzo Automator Management Node container. For details, see `here <http://docs.virtuozzo.com/virtuozzo_7_installation_guide/installing-virtuozzo/installing-virtuozzo-with-gui.html#installing-management-panel-and-compute-on-the-first-server>`__.

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

   #. Complete installation by setting license and root password. For details, see `here <http://docs.virtuozzo.com/virtuozzo_7_installation_guide/installing-virtuozzo/installing-virtuozzo-with-gui.html#finishing-installation>`__.

#. Set up the second and other Virtuozzo Storage nodes.

   Each of these similar storage nodes will be automatically registered in Virtuozzo Storage. In addition, they will be automatically registered in Virtuozzo Automator.
   
   Follow these steps:
   
   #. Boot the node from the Virtuozzo distribution and choose **Install Virtuozzo 7 with GUI management** on the installer's welcome screen.

   #. Set up date, time, and keyboard layout, accept EULA, and choose a disk to install Virtuozzo on. For more details on choosing installation destination, see `here <http://docs.virtuozzo.com/virtuozzo_7_installation_guide/installing-virtuozzo/installing-virtuozzo-with-gui.html#choosing-installation-destination>`__.

   #. Open the **VIRTUOZZO STORAGE** screen. On it, choose the role **Storage** and specify the IP address or hostname of your Virtuozzo Storage management panel container as well as token. For details, see `here <http://docs.virtuozzo.com/virtuozzo_7_installation_guide/installing-virtuozzo/installing-virtuozzo-with-gui.html#installing-storage-on-the-second-and-other-servers>`__.
   
      .. image:: ../../images/vzinstall26.png
         :align: center
         :class: align-center

   #. Open the **VIRTUOZZO AUTOMATOR** screen. On it, choose the role **Compute** and specify the IP address or hostname of your Virtuozzo Automator Management Node container as well as password. For details, see `here <http://docs.virtuozzo.com/virtuozzo_7_installation_guide/installing-virtuozzo/installing-virtuozzo-with-gui.html#installing-compute-on-the-second-and-other-servers>`__.

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

   #. Complete installation by setting license and root password. For details, see `here <http://docs.virtuozzo.com/virtuozzo_7_installation_guide/installing-virtuozzo/installing-virtuozzo-with-gui.html#finishing-installation>`__.

#. Log in to the Virtuozzo Storage management panel at the IP address (or hostname) specified during installation and default port 8888 and set up storage networks as described `here <http://docs.virtuozzo.com/virtuozzo_storage_administrators_guide/managing-virtuozzo-storage/configuring-node-network-interfaces.html>`__.

#. From the Virtuozzo Storage management panel, create a Virtuozzo Storage cluster as described `here <http://docs.virtuozzo.com/virtuozzo_storage_administrators_guide/managing-virtuozzo-storage/creating-virtuozzo-storage-clusters.html>`__.

#. From the Virtuozzo Storage management panel, create datastores to store your virtual machines, containers and their backups in a Virtuozzo Storage cluster as described `here <http://docs.virtuozzo.com/virtuozzo_storage_administrators_guide/exporting-virtuozzo-storage-cluster-dat/managing-datastores.html>`__.

#. In Virtuozzo Automator, click **New...** > **Virtual Environment** on the toolbar and start creating virtual machines and containers. For more details, see `here <http://docs.virtuozzo.com/virtuozzo_automator_7_administrators_guide/managing-virtual-environments/starting-to-create-virtual-environments.html>`__. If you have chosen not to use Virtuozzo Automator, you can create VMs and containers `from CLI <http://docs.virtuozzo.com/virtuozzo_7_users_guide/managing-virtual-machines-and-containers/creating-virtual-machines-and-containers.html>`__.
