# Установка гостевых агентов и драйверов в Linux

Гостевые агенты и драйверы предоставляются через репозитории HOSTVM.

Примечание: ВМ CentOS 8 используют службу *qemu-guest-agent*, которая установлена и включена по умолчанию, вместо службы *ovirt-guest-agent*.

Для ручной установки гостевого агента необходимо выполнить процедуру, описанную ниже:

1\.     Подключиться к ВМ;

2\.     Проверить наличие активного репозитория:

●       для CentOS 6:

```
#yum repolist
```

3\.     Установить гостевой агент и зависимости:

●       для CentOS 6 или 7, служба ovirt-guest-agent:

```
# yum install ovirt-guest-agent-common
```

●       для CentOS 8, служба qemu-guest-agent:

```
# yum install qemu-guest-agent
```

4\.     Запустить и включить службу *ovirt-guest-agent*:

●       для CentOS 6:

```
# service ovirt-guest-agent start
# chkconfig ovirt-guest-agent on
```

●       для CentOS 7:

```
# systemctl start ovirt-guest-agent
# systemctl enable ovirt-guest-agent
```

5\.     Запустить и включить службу *qemu-guest-agent*:

●       для CentOS 6:

```
# service qemu-ga start
# chkconfig qemu-ga on
```

●       для CentOS 7 или 8:

```
# systemctl start qemu-guest-agent
# systemctl enable qemu-guest-agent
```

После завершения установки гостевые агенты и драйверы будут передавать информацию об утилизации ресурсов ВМ в HOSTVM Manager. Дополнительные настройки гостевого агента можно указать в файле */etc/ovirt-guest-agent.conf*


---

# 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://kb.pvhostvm.ru/hostvm-server/rukovodstvo-po-administrirovaniyu/vm/gostevye-agenty-hostvm-instrumenty-i-draivery/ustanovka-gostevykh-agentov-i-draiverov-v-linux.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.
