.. _Keeping Your System Up To Date:

Keeping Your System Up To Date
==============================

This chapter explains the ways to keep your hardware node up to date. The components you need to take care of are the following:

-  Virtuozzo software,

-  virtual machines and containers hosted on the server.

To apply major updates that usually include new kernel versions, follow the instructions below:

.. note:: You can find out if a major update is available by running ``yum info virtuozzo-release`` and comparing the ``Version`` values of the installed and available packages. If the versions differ in the third number, for example, ``7.0.4`` is installed and ``7.0.5`` is available, a major update has been released.

#. Stop all running virtual environments on the server that is to be updated, or migrate them to other Virtuozzo 7 servers to avoid their downtime. 

#. Update the server as described in :ref:`Updating All Components`.

#. Restart the server to update the kernel.

#. Start the virtual environments or migrate them back to the updated server, depending on what you did in step 1.

#. Perform steps 1-4 for other Virtuozzo servers that need to be updated.

   .. note:: Steps 1-4 can be also performed via Virtuozzo Automator.

#. If you use Virtuozzo Automator: 

   #. Update the container ``va-mn`` either via VA (see `Updating System software <http://docs.virtuozzo.com/virtuozzo_automator_7_administrators_guide/updating-software/updating-system-software.html>`__) or by running the following command on the server:

      ::

          # prlctl exec va-mn yum update

   #. Restart the container to apply the update:

      ::

          # prlctl restart va-mn

#. If you use Virtuozzo Storage management panel: 

   #. Update the container ``vstorage-ui`` either via the management panel (see `Managing Virtuozzo Storage Updates <http://docs.virtuozzo.com/virtuozzo_storage_administrators_guide/managing-virtuozzo-storage/managing-updates.html>`__) or by running the following command on the server:

      ::

          # prlctl exec vstorage-ui yum update

   #. Restart the container to apply the update.

      ::

          # prlctl restart vstorage-ui

.. toctree::
   :caption: In this chapter:
   :maxdepth: 3
   :numbered:

   updating-virtuozzo
   updating-virtuozzo-kernel-with-readykernel
   updating-software-in-virtual-machines
   updating-containers

