Compare languages | Cloud provider — zVirt: подготовка окружения.

Подготовка образа операционной системы

Prepare an operating system image

Вендоры операционных систем обычно предоставляют специальные cloud-сборки своих операционных систем для использования в среде виртуализации. Эти сборки, как правило, содержат драйверы для виртуального оборудования, cloud-init, гостевые агенты систем виртуализации и распространяются в виде образов дисков в форматах IMG или QCOW2. Мы рекомендуем использовать такие cloud-образы в качестве ОС на узлах ваших кластеров.

Operating system vendors typically provide special cloud builds of their operating systems for use in virtualization environments. These builds typically contain virtual hardware drivers, cloud-init, virtualization guest agents, and are distributed as IMG or QCOW2 disk images. We recommend that you use these cloud images as the OS on the nodes in your clusters. The cloud image of the operating system must be placed in the zVirt disk storage. Follow these steps to upload the OS image to the storage:

Cloud-образ операционной системы должен быть размещен в хранилище дисков zVirt. Выполните следующие шаги для загрузки образа ОС в хранилище:

  1. Go to the administration portal to the section zVirt -> Storage -> Disks.
  2. Upload the cloud image of the OS to the repository.
  1. Перейдите в портал администрирования и откройте раздел zVirt -> Хранилище -> Диски.
  2. Загрузите cloud-образ ОС в хранилище.

 Start loading the cloud-image of the OS into the repository

 Начало загрузки cloud-образ ОС в хранилище

 Uploading a cloud-image of the OS to the repository

 Загрузка cloud-образ ОС в хранилище

  1. Wait until the image has finished loading into the storage. The status “OK” should appear in the “Status” column. This completes the preparation of the OS image.
  1. Дождитесь окончания загрузки образа в хранилище. В столбце “Состояние” должен появиться статус “ОК”. На этом подготовка образа ОС завершена.

 Finalizing the download of the cloud-image of the OS to the repository

 Окончание загрузки cloud-образ ОС в хранилище

Prepare a virtual machine template

Подготовка шаблона виртуальной машины

To create a virtual machine template, go to the Compute -> Virtual Machines section of the zVirt Administration Portal and create a new virtual machine with the following parameters:

Для создания шаблона виртуальной машины перейдите в раздел Ресурсы -> Виртуальные машины портала администрирования zVirt и создайте новую виртуальную машину со следующими параметрами:

  • Section General:
  • Template: Blank
  • Operating system: depending on the OS in the cloud image.
  • Optimized for: High Performance.
  • Instance Images: Attach -> Select the previously downloaded cloud-image of the OS, check “Bootable”. No other disks need to be created or attached.
  • Раздел Общее:
  • Шаблон: Blank
  • Операционная система: в зависимости от ОС в cloud-образе.
  • Профиль нагрузки: Высокая производительность.
  • Виртуальные диски: Прикрепить -> Выберите загруженный ранее cloud-образ ОС, установите галочку “Загрузочный”. Другие диски создавать или прикреплять не нужно.

 General section

 Общий раздел

  • Network interfaces do not need to be attached, Deckhouse will create and configure them on the virtual machine by itself during installation.
  • Сетевые интерфейсы прикреплять не нужно, Deckhouse создаст и настроит их на виртуальной машине самостоятельно во время установки.

 Network interfaces

 Сетевые интерфейсы

  • Leave the rest of the parameters as default and create a virtual machine. When the VM creation process is finished, create a template based on it:
  • Остальные параметры оставьте по умолчанию, создайте виртуальную машину. Когда процесс создания ВМ закончится, создайте шаблон на ее основе:
  • Select the created VM in the list and go to the window of creating a new template.
  • Выберите в списке созданную ВМ и перейдите в окно создания нового шаблона.

 VM creation

 Создание ВМ

  • Fill in the template parameters, only the name is mandatory. Enable the parameter Seal Template (Linux only):
  • Заполните параметры шаблона, обязательным является только название. Включите параметр Запечатать шаблон:

 Template parameters

 Параметры шаблона

While the template is being created, the virtual machine and the cloud image disk will go into a state of Image locked. You can check that the template was successfully created in the section Compute -> Templates:

На время создания шаблона виртуальная машина и диск cloud-образа перейдут в состояние Образ заблокирован. Проверить что шаблон был успешно создан можно в разделе Ресурсы -> Шаблоны:

 Template check

 Проверка шаблона