2.3. 部署自承载引擎
使用
hosted-engine --deploy
或者 Cockpit 用户界面初始化自承载引擎部署之后,您需要问答一系列问题,才能配置主机和 Manager 虚拟机。部署脚本中的字段会预先填充默认答案(如果存在);请根据需要更改或输入您的答案。
在本流程中,部署问题以文本的格式呈现。在 Cockpit 用户界面中,如果出现提示,请点击
。
过程 2.4. 部署自承载引擎
开始部署
选择开始部署。During customization use CTRL-D to abort. Continuing will configure this host for serving as hypervisor and create a VM where you have to install the engine afterwards. Are you sure you want to continue? (Yes, No)[Yes]:
During customization use CTRL-D to abort. Continuing will configure this host for serving as hypervisor and create a VM where you have to install the engine afterwards. Are you sure you want to continue? (Yes, No)[Yes]:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 下载 RHV-M Virtual Appliance
如果尚未手动下载 RHV-M Virtual Appliance,您可以在部署期间下载和安装它。请选择来下载 RHV-M Virtual Appliance。The oVirt engine appliance is now required to deploy hosted-engine. You could get oVirt engine appliance installing ovirt-engine-appliance rpm. Do you want to install ovirt-engine-appliance rpm? (Yes, No) [Yes]:
The oVirt engine appliance is now required to deploy hosted-engine. You could get oVirt engine appliance installing ovirt-engine-appliance rpm. Do you want to install ovirt-engine-appliance rpm? (Yes, No) [Yes]:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 配置存储
选择要使用的存储类型。Please specify the storage you would like to use (glusterfs, iscsi, fc, nfs3, nfs4)[nfs3]:
Please specify the storage you would like to use (glusterfs, iscsi, fc, nfs3, nfs4)[nfs3]:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - 对于 NFS 存储类型,使用 FQDN 或 IP 地址指定它的完整地址,并指定共享存储域的路径名。
Please specify the full shared storage connection path to use (example: host:/path): storage.example.com:/hosted_engine/nfs
Please specify the full shared storage connection path to use (example: host:/path): storage.example.com:/hosted_engine/nfs
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - 对于 iSCSI,指定 iSCSI 门户 IP 地址、端口、用户名和密码,并从自动检测到的列表中选择一个目标名。在部署过程中只能选择一个 iSCSI 目标:
Please specify the iSCSI portal IP address: Please specify the iSCSI portal port [3260]: Please specify the iSCSI portal user: Please specify the iSCSI portal password: Please specify the target name (auto-detected values) [default]:
Please specify the iSCSI portal IP address: Please specify the iSCSI portal port [3260]: Please specify the iSCSI portal user: Please specify the iSCSI portal password: Please specify the target name (auto-detected values) [default]:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - 对于 Gluster 存储类型,使用 FQDN 或 IP 地址指定它的完整地址,并指定共享存储域的路径名。
重要
当前只支持 replica 3 Gluster 存储。请确认已进行了以下配置:- 在所有 3 个 Gluster 服务器的
/etc/glusterfs/glusterd.vol
文件中,把rpc-auth-allow-insecure
设置为on
。option rpc-auth-allow-insecure on
option rpc-auth-allow-insecure on
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - 对卷进行以下配置:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Please specify the full shared storage connection path to use (example: host:/path): storage.example.com:/hosted_engine/gluster_volume
Please specify the full shared storage connection path to use (example: host:/path): storage.example.com:/hosted_engine/gluster_volume
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - 对于光纤通道设备,必须对主机的总线适配器进行配置和连接,
hosted-engine
脚本会自动检测到有效的 LUN。LUN 不能包括任何已存在的数据。Copy to Clipboard Copied! Toggle word wrap Toggle overflow
配置网络
部署过程中会检测可用作当前环境管理网桥的网络接口控制器(NIC)。iptables was detected on your computer, do you wish setup to configure it? (Yes, No)[Yes]:
iptables was detected on your computer, do you wish setup to configure it? (Yes, No)[Yes]:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Please indicate a nic to set ovirtmgmt bridge on: (eth1, eth0) [eth1]:
Please indicate a nic to set ovirtmgmt bridge on: (eth1, eth0) [eth1]:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 请指定可连接的网关 IP 地址 [X.X.X.X]:
请指定可连接的网关 IP 地址 [X.X.X.X]:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 配置虚拟机
此脚本会自动检测可用的 RHV-M Virtual Appliance;请选择适用的设备。The following appliance have been found on your system: [1] - The oVirt Engine Appliance image (OVA) [2] - Directly select an OVA file Please select an appliance (1, 2) [1]:
The following appliance have been found on your system: [1] - The oVirt Engine Appliance image (OVA) [2] - Directly select an OVA file Please select an appliance (1, 2) [1]:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 选择连接到虚拟机的或 控制台类型。Please specify the console type you would like to use to connect to the VM (vnc, spice) [vnc]:
Please specify the console type you would like to use to connect to the VM (vnc, spice) [vnc]:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 如果想要 cloud-init 对 Manager 虚拟机进行初始配置,则选Yes
。选择 来使用 cloud-init 执行任务,如设置 root 密码、配置网络、配置主机名、为engine-setup
提供应答文件、在引导时运行engine-setup
。另外,如果已有存在的 cloud-init 脚本,则可以选择 来使用这个脚本实现更高级 cloud-init 功能。Would you like to use cloud-init to customize the appliance on the first boot (Yes, No)[Yes]?
Would you like to use cloud-init to customize the appliance on the first boot (Yes, No)[Yes]?
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Would you like to generate on-fly a cloud-init ISO image (of no-cloud type) or do you have an existing one (Generate, Existing)[Generate]?
Would you like to generate on-fly a cloud-init ISO image (of no-cloud type) or do you have an existing one (Generate, Existing)[Generate]?
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 注意
如需了解与 cloud-init 相关的更多信息,请参阅 https://cloudinit.readthedocs.org/en/latest/。为 Manager 虚拟机指定 FQDN。Please provide the FQDN you would like to use for the engine appliance. Note: This will be the FQDN of the engine VM you are now going to launch. It should not point to the base host or to any other existing machine. Engine VM FQDN: (leave it empty to skip): manager.example.com
Please provide the FQDN you would like to use for the engine appliance. Note: This will be the FQDN of the engine VM you are now going to launch. It should not point to the base host or to any other existing machine. Engine VM FQDN: (leave it empty to skip): manager.example.com
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 如果未采用默认设置,请指明 Manager 使用的域名称。Please provide the domain name you would like to use for the engine appliance. Engine VM domain: [domain.example.com]
Please provide the domain name you would like to use for the engine appliance. Engine VM domain: [domain.example.com]
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 指明是否在启动 Manager 时自动执行engine-seup
,并作为监测服务重新启动 Manager 虚拟机。Automatically execute engine-setup on the engine appliance on first boot (Yes, No)[Yes]?
Automatically execute engine-setup on the engine appliance on first boot (Yes, No)[Yes]?
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Automatically restart the engine VM as a monitored service after engine-setup (Yes, No)[Yes]?
Automatically restart the engine VM as a monitored service after engine-setup (Yes, No)[Yes]?
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 为 Manager 输入 root 密码。Enter root password that will be used for the engine appliance (leave it empty to skip): p@ssw0rd
Enter root password that will be used for the engine appliance (leave it empty to skip): p@ssw0rd
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Confirm appliance root password: p@ssw0rd
Confirm appliance root password: p@ssw0rd
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 输入一个您日后能以 root 用户身份登录到 Manager 的 SSH 公开密钥,并指明是否为 root 用户激活 SSH 访问权限。Enter ssh public key for the root user that will be used for the engine appliance (leave it empty to skip): ssh-rsa AAAAB3NzaBlyc2EAAAADAQABAAABAQDN79V0/3Y3R0iyoCvu7fbw0Mtggm7tHb76yMA4asmU2DBk7ql3AguTNAK9p7Hkc1FANjXGvAZh2vBk+OFN51F/mqe4mgWM1CrpJcsM5ouReT+HkJpMb2f8tU14ZGVRuB/JYfwzsXhs6Jx6Nhh810yqlduTODRDhR9tOtvmtv4cb5VoJhlpppsQOkVxGfB7fPRVucw5PMAUJDwFsOqvtqjuvbGniMYvSZwhv7Nw5Su8WOpMnyr3WfUfDdIAWli5rk4hBHWRZC4zbRsZK03V8wua3PZE0sX3iNvJy4g/s5ynwLytTz7zPXjdyTsYm7BMX8IDhariXY10cYso+fIfjyjf example@redhat.com
Enter ssh public key for the root user that will be used for the engine appliance (leave it empty to skip): ssh-rsa AAAAB3NzaBlyc2EAAAADAQABAAABAQDN79V0/3Y3R0iyoCvu7fbw0Mtggm7tHb76yMA4asmU2DBk7ql3AguTNAK9p7Hkc1FANjXGvAZh2vBk+OFN51F/mqe4mgWM1CrpJcsM5ouReT+HkJpMb2f8tU14ZGVRuB/JYfwzsXhs6Jx6Nhh810yqlduTODRDhR9tOtvmtv4cb5VoJhlpppsQOkVxGfB7fPRVucw5PMAUJDwFsOqvtqjuvbGniMYvSZwhv7Nw5Su8WOpMnyr3WfUfDdIAWli5rk4hBHWRZC4zbRsZK03V8wua3PZE0sX3iNvJy4g/s5ynwLytTz7zPXjdyTsYm7BMX8IDhariXY10cYso+fIfjyjf example@redhat.com
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Do you want to enable ssh access for the root user (yes, no, without-password) [yes]:
Do you want to enable ssh access for the root user (yes, no, without-password) [yes]:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 指定 Manager 磁盘大小和存储器大小。Please specify the size of the VM disk in GB: [50]:
Please specify the size of the VM disk in GB: [50]:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Please specify the memory size of the VM in MB (Defaults to appliance OVF value): [4096]:
Please specify the memory size of the VM in MB (Defaults to appliance OVF value): [4096]:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 指定 Manager 使用的 CPU 类型和使用的虚拟 CPU 的数量。Copy to Clipboard Copied! Toggle word wrap Toggle overflow Please specify the number of virtual CPUs for the VM [Defaults to appliance OVF value: 4]:
Please specify the number of virtual CPUs for the VM [Defaults to appliance OVF value: 4]:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 为 Manager 虚拟机指定一个 MAC 地址,或采用随机生成的地址。在虚拟机上安装操作系统之前,可使用 MAC 地址更新您的 DHCP 和 DNS 服务器。如果需要通过 DHCP 为 Manager 虚拟机提供 IP 地址,请确保在 DHCP 配置中具备该 MAC 地址的有效预留。部署脚本不会为您配置 DHCP 服务器。You may specify a MAC address for the VM or accept a randomly generated default [00:16:3e:77:b2:a4]:
You may specify a MAC address for the VM or accept a randomly generated default [00:16:3e:77:b2:a4]:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 指定虚拟机的网络连接详情。How should the engine VM network be configured (DHCP, Static)[DHCP]?
How should the engine VM network be configured (DHCP, Static)[DHCP]?
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 如果您指定静态,请输入 Manager 的 IP 地址。Please enter the IP address to be used for the engine VM [10.x.x.x]:
Please enter the IP address to be used for the engine VM [10.x.x.x]:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Please provide a comma-separated list (max3) of IP addresses of domain name servers for the engine VM Engine VM DNS (leave it empty to skip):
Please provide a comma-separated list (max3) of IP addresses of domain name servers for the engine VM Engine VM DNS (leave it empty to skip):
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Add lines for the appliance itself and for this host to /etc/hosts on the engine VM? Note: ensuring that this host could resolve the engine VM hostname is still up to you (Yes, No)[No]
Add lines for the appliance itself and for this host to /etc/hosts on the engine VM? Note: ensuring that this host could resolve the engine VM hostname is still up to you (Yes, No)[No]
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 配置自承载引擎
指定admin@internal
用户访问管理门户所使用的密码。提供 SMTP 服务器的名称和 TCP 端口号、用于发送事件通知的电子邮件地址,以及需要接收事件通知的电子邮件地址的列表(以逗号分隔)。Enter engine admin password: p@ssw0rd
Enter engine admin password: p@ssw0rd
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Confirm engine admin password: p@ssw0rd
Confirm engine admin password: p@ssw0rd
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Please provide the name of the SMTP server through which we will send notifications [localhost]:
Please provide the name of the SMTP server through which we will send notifications [localhost]:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Please provide the TCP port number of the SMTP server [25]:
Please provide the TCP port number of the SMTP server [25]:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Please provide the email address from which notifications will be sent [root@localhost]:
Please provide the email address from which notifications will be sent [root@localhost]:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Please provide a comma-separated list of email addresses which will get notifications [root@localhost]:
Please provide a comma-separated list of email addresses which will get notifications [root@localhost]:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 配置预览
在进入下一步前,系统会显示已输入的配置值,并提示您确认这些信息。Please confirm installation settings (Yes, No)[Yes]: Yes
Please confirm installation settings (Yes, No)[Yes]: Yes
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
部署过程中将创建 Manager 虚拟机,启动
ovirt-engine
和高可用性服务,并把主机和共享存储域连接到 Manager 虚拟机。
当
hosted-engine
部署成功完成后,Red Hat Virtualization Manager 便已完成配置并在您的主机上运行。Manager 已经配置好了数据中心、集群、主机、Manager 虚拟机,以及 Manager 虚拟机专用的共享存储域。
重要
以 admin@internal 用户身份登录以便继续配置 Manager 并添加其它资源。您必须为数据中心创建另外一个数据域,对新建的数据域进行初始化,用于托管常规的虚拟机数据,并使它对 Manager 虚拟机可见。如需了解不同的存储选项和添加数据存储域的方法,请参阅管理指南中的存储部分。
把您的 Red Hat Virtualization Manager 和一个目录服务器相关联,这样便可以向环境中添加额外的用户。Red Hat Virtualization 支持多种目录服务器类型,包括:Red Hat Directory Server(RHDS)、Red Hat Identity Management(IdM)、 Active Directory,以及其它一些类型。您需要使用
ovirt-engine-extension-aaa-ldap-setup
交互设置脚本在您的环境中添加目录服务器。如需了解更多相关信息,请参阅管理指南中的配置一个外部 LDAP 供应商。
您在配置过程中提供的答案将被保存为一个文件,您可以使用它来进行灾难恢复。如果没有使用
--generate-answer=<file>
参数指定目标地址,默认在 /etc/ovirt-hosted-engine/answers.conf
中生成应答文件。