Questo contenuto non è disponibile nella lingua selezionata.
2.3. Deploying the Self-Hosted Engine
hosted-engine --deploy
or the Cockpit user interface, you are asked a series of questions to configure the host and Manager virtual machine. The fields in the deployment script are pre-populated with a default answer if one is available; change or enter your answers as necessary.
Procedure 2.4. Deloying the Self-hosted Engine
Beginning Deployment
Selectto begin the deployment.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 Downloading the RHV-M Virtual Appliance
If you have not manually downloaded the RHV-M Virtual Appliance, you can download and install it during deployment. Selectto download the 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 Configuring Storage
Select the type of storage to use.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 - For NFS storage types, specify the full address, using either the FQDN or IP address, and path name of the shared storage domain.
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 - For iSCSI, specify the iSCSI portal IP address, port, user name and password, and select a target name from the auto-detected list. You can only select one iSCSI target during the deployment.
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 - For Gluster storage, specify the full address, using either the FQDN or IP address, and path name of the shared storage domain.
Important
Only replica 3 Gluster storage is supported. Ensure the following configuration has been made:- In the
/etc/glusterfs/glusterd.vol
file on all three Gluster servers, setrpc-auth-allow-insecure
toon
.option rpc-auth-allow-insecure on
option rpc-auth-allow-insecure on
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Configure the volume as follows:
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 - For Fibre Channel, the host bus adapters must be configured and connected, and the
hosted-engine
script will auto-detect the LUNs available. The LUNs must not contain any existing data.Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Configuring the Network
The deployment detects possible network interface controllers (NICs) to use as a management bridge for the environment.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 Please indicate a pingable gateway IP address [X.X.X.X]:
Please indicate a pingable gateway IP address [X.X.X.X]:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Configuring the Virtual Machine
The script will automatically detect the RHV-M Virtual Appliances available; select the appropriate 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 Select theor console type to connect to the virtual machine.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 SpecifyYes
if you want cloud-init to perform the initial configuration of the Manager virtual machine. Specify for cloud-init to performs tasks like setting the root password, configuring networking, configuring the host name, injecting an answers file forengine-setup
to use, and runningengine-setup
on boot. Optionally, select if you have an existing cloud-init script to take care of more sophisticated functions of 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 Note
For more information on cloud-init, see https://cloudinit.readthedocs.org/en/latest/.Specify the FQDN for the Manager virtual machine.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 Specify the domain name to use for the Manager if different from the default.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 Specify whether to automatically executeengine-setup
when the Manager first boots, and to restart the Manager virtual machine as a monitored service.Important
If you select No you still have the option of runningengine-setup --accept-defaults
to automatically accept all questions that have default answers. This option should be used with caution and only if you are familiar with engine-setup.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 Enter the root password for the Manager.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 Enter an SSH public key that will allow you to later log in to the Manager as the root user, and specify whether to enable SSH access for the root user.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 Specify the Manager disk size and memory size.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 Specify the CPU type to be used by the Manager and the number of virtual CPUs to use.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 Specify a MAC address for the Manager virtual machine, or accept a randomly generated one. The MAC address can be used to update your DHCP and DNS server before installing the operating system on the virtual machine. If you want to provide the Manager virtual machine with an IP address via DHCP, ensure that you have a valid DHCP reservation for that MAC address. The deployment script will not configure the DHCP server for you.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 Specify the networking details of the virtual machine.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 If you specified Static, enter the IP address of the Manager.Important
The static IP address must belong to the same subnet as the host. For example, if the host is in 10.1.1.0/24, the Manager virtual machine's IP must be in the same subnet (10.1.1.1-254/24).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 Configuring the Self-hosted Engine
Specify a password for theadmin@internal
user to access the Administration Portal. Provide the name and TCP port number of the SMTP server, the email address used to send email notifications, and a comma-separated list of email addresses to receive these notifications.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 Configuration Preview
Before proceeding, the configuration values entered are displayed, and prompts for confirmation to proceed with these values.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 The deployment creates the Manager virtual machine, starts theovirt-engine
and high availability services, and connects the host and shared storage domain to the Manager virtual machine.When thehosted-engine
deployment completes successfully, the Red Hat Virtualization Manager is configured and running on your host. The Manager has already configured the data center, cluster, host, the Manager virtual machine, and a shared storage domain dedicated to the Manager virtual machine.Important
Log in as the admin@internal user to continue configuring the Manager and add further resources. You must create another data domain for the data center to be initialized to host regular virtual machine data, and for the Manager virtual machine to be visible. See Storage in the Administration Guide for different storage options and on how to add a data storage domain.Link your Red Hat Virtualization Manager to a directory server so you can add additional users to the environment. Red Hat Virtualization supports many directory server types; for example, Red Hat Directory Server (RHDS), Red Hat Identity Management (IdM), Active Directory, and many other types. Add a directory server to your environment using theovirt-engine-extension-aaa-ldap-setup
interactive setup script. For more information, see Configuring an External LDAP Provider in the Administration Guide.The answers you gave during configuration are saved to a file to help with disaster recovery. If a destination is not specified using the--generate-answer=<file>
argument, the answer file is generated at/etc/ovirt-hosted-engine/answers.conf
.Subscribing to the Required Entitlements
Subscribe the Manager virtual machine to the required entitlements. See Subscribing to the Required Entitlements in the Installation Guide for more information.