# Cài đặt Veeam Agent cho RHEL 9.2

## <mark style="color:green;">Tổng quan</mark> <a href="#introduction" id="introduction"></a>

Tài liệu này hướng dẫn cài đặt **Veeam Backup Agent trên Linux cho RHEL 9.2.**

## <mark style="color:green;">Quy trình</mark> <a href="#id-2.-guidance" id="id-2.-guidance"></a>

* Hệ điều hành: RHEL 9.2, kernel 5.14.0-362.13.1.el9\_3.x86\_64
* Veeam repository:  veeam-release-el9-1.0.8-1.x86\_64.rpm
* Veeam Agent: veeam-6.0.3.1221-1.el9.x86\_64
* Veeam blksnap module: blksnap-6.0.3.1221-1

{% tabs %}
{% tab title="1. Cài đặt với non-UEFI Secure" %}
**Bước 1: Tải về Veeam repository**

Veeam repository cho Linux có thể tìm thấy tại [![](https://repository.veeam.com/favicon.ico)Index of /backup/linux/agent/rpm/el/9/x86\_64/](https://repository.veeam.com/backup/linux/agent/rpm/el/9/x86_64/) . Trên trang này, chọn "veeam-release-el9-1.0.8-1.x86\_64.rpm", “blksnap-6.0.3.1221-1.noarch.rpm”, “veeam-6.0.3.1221-1.el9.x86\_64.rpm“.

<div align="left"><figure><img src="/files/fgzc2ZyAplVCmyQoURqT" alt=""><figcaption></figcaption></figure></div>

**Bước 2: Cài đặt Veeam và các phụ thuộc**

* Điều này sẽ tải về một tệp RPM. Bạn có thể không tải trực tiếp tệp này từ trang web vào máy Linux của mình vì máy chủ của bạn có thể không có GUI hoặc trình duyệt web. Để giải quyết vấn đề này, tốt nhất bạn nên tải tệp RPM về máy tính của mình, sau đó sử dụng WinSCP hoặc MobaXterm để sao chép tệp RPM vào máy chủ qua SSH.
* Sau khi tệp RPM có mặt trên máy chủ, cài đặt nó và các phụ thuộc:

```
# sudo rpm -ivh veeam-release-el9-1.0.8-1.x86_64.rpm
# sudo subscription-manager repos --enable codeready-builder-for-rhel-9-$(arch)-rpms
# sudo dnf install \
https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
# sudo yum install dkms perl kernel-modules-extra -y
# sudo rpm -ivh blksnap-6.0.3.1221-1.noarch.rpm
# sudo rpm -ivh veeam-6.0.3.1221-1.el9.x86_64.rpm
```

Các mô-đun bdevfilter và blksnap sẽ được tạo trong thư mục `/lib/modules/$(uname -r)/extra`.

```
[root@rhel9 ~# ls /lib/modules/$(uname -r)/extra
bdevfilter.ko.xz  blksnap.ko.xz
```

We can confirm that this module has not loaded by running lsmod, and grepping for blksnap.  We will see that grep returns no output.

```
[root@rhel9 ~]# lsmod | grep blksnap
```

**Bước 3: Insert mô-đun bdevfilter và blksnap**

Chúng ta cần tải mô-đun vào kernel đang chạy bằng lệnh `insmod`:

```
[root@rhel9 ~]# sudo insmod /lib/modules/$(uname -r)/extra/bdevfilter.ko.xz
[root@rhel9 ~]# sudo insmod /lib/modules/$(uname -r)/extra/blksnap.ko.xz
[root@rhel9 ~]# lsmod | grep blksnap
blksnap               217088  0
bdevfilter             20480  1 blksnap
```

Tại thời điểm này, các backup dựa trên agent sẽ chạy ổn, tuy nhiên mô-đun tải sẽ không tồn tại nếu bạn khởi động lại máy. Bạn cần tạo một tệp có tên `/etc/modules-load.d/bdevfilter.conf` và `/etc/modules-load.d/blksnap.conf`, và đảm bảo rằng chúng chứa tên của mô-đun kernel. Bạn cũng sẽ cần chạy `depmod` để thêm mô-đun kernel đã tải vào danh sách phụ thuộc mô-đun kernel.

```
[root@rhel9 ~]# sudo depmod
[root@rhel9 ~]# sudo echo bdevfilter > /etc/modules-load.d/bdevfilter.conf
[root@rhel9 ~]# sudo echo blksnap > /etc/modules-load.d/blksnap.conf
[root@rhel9 ~]# cat /etc/modules-load.d/bdevfilter.conf
bdevfilter
[root@rhel9 ~]# cat /etc/modules-load.d/blksnap.conf
blksnap
```

Khi khởi động lại máy chủ RHEL, các mô-đun bdevfilter và blksnap sẽ tự động được tải làm mô-đun kernel.

```
[root@rhel9 ~]# uptime && lsmod | grep blksnap
 17:43:06 up 18 min,  1 user,  load average: 0.00, 0.00, 0.00
blksnap               217088  0
bdevfilter             20480  1 blksnap
```

Và các backup dựa trên agent của chúng ta sẽ hoạt động chính xác.
{% endtab %}

{% tab title="Second Tab" %}

{% endtab %}
{% endtabs %}


---

# 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://docs.higiocloud.vn/hi-gio-user-guide-vn/back-up-as-a-service/1.-hi-gio-baas/workaround/cai-dat-veeam-agent-cho-rhel-9.2.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.
