10.5. 在 Compute 配置文件中添加 Red Hat Virtualization 详情
使用这个流程将 Red Hat Virtualization 硬件设置添加到计算配置集中。当您使用这个计算配置集在 KVM 上创建主机时,这些设置会自动填充。
要使用 CLI 而不是 Satellite Web UI,请参阅 CLI 过程。
流程
- 在 Satellite Web UI 中,导航到 Infrastructure > Compute Profiles。
- 在 Compute Profiles 窗口中,点现有计算配置集的名称,或者单击 Create Compute Profile,输入 Name,然后单击 Submit。
- 点 Red Hat Virtualization 计算资源的名称。
- 在 Cluster 列表中选择 Red Hat Virtualization 环境中的目标主机集群。
- 从 Template 列表中,选择用于 Cores 和 Memory 设置的 RHV 模板。
- 在 Cores 字段中,输入要分配给新主机的 CPU 内核数。
- 在 Memory 字段中,输入分配给新主机的内存量。
- 从 Image 列表中,选择要用于基于镜像的置备的镜像。
在 网络接口 区域中,为主机网络接口输入网络参数。您可以创建多个网络接口。但是,至少有一个接口必须指向 Capsule 管理的网络。对于每个网络接口,请输入以下详情:
- 在 Name 字段中输入网络接口的名称。
- 在 Network 列表中选择您要使用的逻辑网络。
在 Storage 区域,输入主机的存储参数。您可以为主机创建多个卷。对于每个卷,请输入以下详情:
- 在 Size (GB) 中,输入新卷的大小(以 GB 为单位)。
- 从 存储域 列表中,选择卷的存储域。
- 在 Preallocate disk 中,选择 thin provisioning 或 preallocation of the full disk。
- 在 Bootable 列表中,选择是否希望可引导的卷或不可启动的卷。
- 点 Submit 保存计算配置集。
CLI 过程
运行以下命令来创建计算配置集:
hammer compute-profile create --name "Red Hat Virtualization CP"
# hammer compute-profile create --name "Red Hat Virtualization CP"
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 要为 compute 配置集设置值,请输入以下命令:
hammer compute-profile values create --compute-profile "Red Hat Virtualization CP" \ --compute-resource "My_RHV" \ --interface "compute_interface=Interface_Type,compute_name=eth0,compute_network=satnetwork" \ --volume "size_gb=20G,storage_domain=Data,bootable=true" \ --compute-attributes "cluster=Default,cores=1,memory=1073741824,start=true""
# hammer compute-profile values create --compute-profile "Red Hat Virtualization CP" \ --compute-resource "My_RHV" \ --interface "compute_interface=Interface_Type,compute_name=eth0,compute_network=satnetwork" \ --volume "size_gb=20G,storage_domain=Data,bootable=true" \ --compute-attributes "cluster=Default,cores=1,memory=1073741824,start=true""
Copy to Clipboard Copied! Toggle word wrap Toggle overflow