47 lines
2.2 KiB
Diff
47 lines
2.2 KiB
Diff
From b3a943ee226470e2f7ba61b1d7ce5c86b56e001a Mon Sep 17 00:00:00 2001
|
||
From: liqiang <liqiang64@huawei.com>
|
||
Date: Mon, 18 Dec 2023 17:23:54 +0800
|
||
Subject: [PATCH 4/6] update some problem in libvirt readme
|
||
|
||
Signed-off-by: liqiang <liqiang64@huawei.com>
|
||
---
|
||
...344\273\216\351\233\266\346\220\255\345\273\272v1.1.md" | 7 +++----
|
||
1 file changed, 3 insertions(+), 4 deletions(-)
|
||
|
||
diff --git "a/usecases/libvirtd-offload/libvirt\347\233\264\350\277\236\350\201\232\345\220\210\347\216\257\345\242\203\344\273\216\351\233\266\346\220\255\345\273\272v1.1.md" "b/usecases/libvirtd-offload/libvirt\347\233\264\350\277\236\350\201\232\345\220\210\347\216\257\345\242\203\344\273\216\351\233\266\346\220\255\345\273\272v1.1.md"
|
||
index bc47c50..07dbcb4 100644
|
||
--- "a/usecases/libvirtd-offload/libvirt\347\233\264\350\277\236\350\201\232\345\220\210\347\216\257\345\242\203\344\273\216\351\233\266\346\220\255\345\273\272v1.1.md"
|
||
+++ "b/usecases/libvirtd-offload/libvirt\347\233\264\350\277\236\350\201\232\345\220\210\347\216\257\345\242\203\344\273\216\351\233\266\346\220\255\345\273\272v1.1.md"
|
||
@@ -99,9 +99,9 @@ make install
|
||
make role=server
|
||
make install
|
||
```
|
||
-配置工具将会自动安装,然后使用qtcfg命令配置白名单,假设需要增加的白名单为"/var/lib/libvirt/",输入:
|
||
+配置工具将会自动安装,然后使用qtcfg命令配置白名单,假设需要增加的白名单为"/var/lib/libvirt",输入:
|
||
```
|
||
-qtcfg -x /var/lib/libvirt/
|
||
+qtcfg -w udsconnect -x /var/lib/libvirt
|
||
```
|
||
查询白名单为:
|
||
```
|
||
@@ -133,7 +133,6 @@ rexec是一个用c语言开发的远程执行组件,分为rexec client和rexec
|
||
```
|
||
chmod 400 /etc/rexec/whitelist。
|
||
```
|
||
-如果想仅用于测试,可以不进行白名单配置,删除此文件重启rexec_server进程后则没有白名单限制。
|
||
|
||
下载dpu-utilities代码后,进入qtfs/rexec主目录下,执行:`make && make install`即可安装rexec所需全部二进制到/usr/bin目录下,包括了:`rexec、rexec_server`两个二进制可执行文件。
|
||
|
||
@@ -263,7 +262,7 @@ libvirtd -d
|
||
qtcfg -z
|
||
```
|
||
|
||
-查看列举出来的白名单是否包含"/var/lib/libvirt/"
|
||
+查看列举出来的白名单是否包含"/var/lib/libvirt"和"/var/run/rexec"。
|
||
|
||
## **3.5** 拉起虚机
|
||
|
||
--
|
||
2.37.1 (Apple Git-137.1)
|
||
|