# Установка oVirt Engine в режиме self-hosted без доступа в Интернет

В случае, если у хоста, на котором планируется развернуть oVirt Engine, отсутствует доступ в Интернет, возможно выполнить установку в Offline режиме.

Загрузите актуальную версию RPM пакета, содержащего образ Engine, из репозитория: <https://resources.ovirt.org/pub/ovirt-4.5/rpm/el8/x86_64/>

> Для загрузки можно использовать одно из зеркал официального репозитория: <https://resources.ovirt.org/pub/yum-repo/mirrorlist>

Скопируйте RPM пакет на хост, на котором планируется развернуть ВМ Engine. Установите RPM пакет:

```
dnf --disablerepo='*' install -y ./ovirt-engine-appliance-4.5-20221026100732.1.el8.x86_64.rpm
```

Проверьте, что в каталоге /usr/share/ovirt-engine-appliance/ присутствует файл ovirt-engine-appliance-4.5-20221026100732.1.el8.ova (имя файла может отличаться).

Если вы не настраивали локальные зеркала репозиториев, то отключите доступ ко всем репозиториям на хосте:

```
mkdir /etc/yum.repos.d/old
mv /etc/yum.repos.d/*.repo /etc/yum.repos.d/old/
```

> Рекомендуется настроить локальные зеркала репозиториев для загрузки обновлений и исправлений CentOS и oVirt и выполнить обновление хоста с помощью команды `dnf update` перед установкой Engine.

Список репозиториев можно получить командой:

```
dnf repolist all
```

Очистите кэш хоста:

```
rm -rf /var/cache/dnf
dnf clean all && dnf update
```

Запустите установку oVirt Engine с дополнительным параметром **he\_offline\_deployment=true**:

```
hosted-engine --deploy --4 --ansible-extra-vars=he_offline_deployment=true
```

Если в процессе установки Engine возникает ошибка:

```
[ ERROR ] fatal: [localhost]: FAILED! => {"msg": "The ipaddr filter requires python's netaddr be installed on the ansible controller"}
[ ERROR ] Failed to execute stage 'Closing up': Failed executing ansible-playbook
```

выполните команду:

```
export PYTHONPATH=/usr/lib/python3.6/site-packages/
```

И запустите установку заново.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://omnimod.gitbook.io/ovirt/ustanovka/ustanovka-ovirt-engine-v-rezhime-self-hosted-bez-dostupa-v-internet.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
