Show Table of Contents
第 1 章 使用 CLI
Red Hat Virtualization 包括了一个命令行接口(CLI - Command Line Interface),用户可以在不使用标准网站接口的情况下,使用 CLI 连接到 Red Hat Virtualization Manager。CLI 还包括了一个脚本运行系统,系统管理员可以使用脚本来从客户端上直接执行一些需要定期执行的系统维护操作。
重要
Red Hat Virtualization Manager 版本 4 包括了 Red Hat Enterprise Linux 7 的 CLI 版本 3.6。这个版本的 CLI 使用 Python SDK 版本 3.6 和 REST API 版本 3 的兼容模式。
1.1. 安装 CLI
在客户端上安装 Red Hat Virtualization CLI:
- 以
root用户身份登录到客户端系统。 - 在 Content Delivery Network 中注册您的系统,提示时输入您的客户门户网站(Customer Portal)的用户名和密码:
# subscription-manager register
- 找到
Red Hat Virtualization订阅池并记录下池 ID。# subscription-manager list --available
- 使用上一步中找到的池标识符在该系统中添加
Red Hat Virtualization权利。# subscription-manager attach --pool=pool_id
- 启用所需存储库:
# subscription-manager repos --enable=rhel-7-server-rhv-4.0-rpms
- 安装 CLI 软件包和依赖的软件包:
# yum install ovirt-engine-cli

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.