Red Hat Training

A Red Hat training course is available for Red Hat Virtualization

2.3. 셀프 호스트 엔진 배포

hosted-engine --deploy 또는 Cockpit 사용자 인터페이스를 사용하여 셀프 호스트 엔진 배포를 시작하고 나면 호스트 및 Manager 가상 머신을 설정하는 일련의 질문이 표시됩니다. 배포 스트립트에 있는 필드는 사용 가능한 기본 응답으로 미리 채워집니다. 필요한 경우 응답을 변경하거나 입력하십시오.
이 절차에서 배포 질문은 텍스트 형식으로 제공됩니다. 메시지가 나타나면 Cockpit 사용자 인터페이스에서 다음을 클릭하십시오.

절차 2.4. 셀프 호스트 엔진 배포

  1. 배포 시작

    를 선택하여 배포를 시작합니다.
    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]:
  2. 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]:
    
  3. 스토리지 설정

    사용할 스토리지 유형을 선택합니다.
    Please specify the storage you would like to use (glusterfs, iscsi, fc, nfs3, nfs4)[nfs3]:
    • NFS 스토리지 유형의 경우 FQDN 또는 IP 주소를 사용하여 전체 주소를 지정하고 공유 스토리지 도메인의 경로 이름을 지정합니다.
      Please specify the full shared storage connection path to use (example: host:/path): storage.example.com:/hosted_engine/nfs
    • 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]:
    • Gluster 스토리지의 경우 FQDN 또는 IP 주소를 사용하여 전체 주소를 지정하고 공유 스토리지 도메인의 경로 이름을 지정합니다.

      중요

      복제 3 Gluster 스토리지만 지원됩니다. 다음 설정이 완료되었는지 확인하십시오.
      • 세 개의 모든 Gluster 서버에 있는 /etc/glusterfs/glusterd.vol 파일에서 rpc-auth-allow-insecureon으로 설정합니다.
        option rpc-auth-allow-insecure on
      • 다음과 같이 볼륨을 설정합니다.
        gluster volume set volume cluster.quorum-type auto
        gluster volume set volume network.ping-timeout 10
        gluster volume set volume auth.allow \*
        gluster volume set volume group virt
        gluster volume set volume storage.owner-uid 36
        gluster volume set volume storage.owner-gid 36
        gluster volume set volume server.allow-insecure on
      Please specify the full shared storage connection path to use (example: host:/path): storage.example.com:/hosted_engine/gluster_volume
    • 파이버 채널의 경우 호스트 버스 어댑터를 설정 및 연결해야 하며, hosted-engine 스크립트는 사용 가능한 LUN을 자동으로 감지합니다. LUN에는 기존 데이터가 존재하지 않아야 합니다.
      The following luns have been found on the requested target:
      [1]     3514f0c5447600351       30GiB   XtremIO XtremApp
      										status: used, paths: 2 active
      			
      [2]     3514f0c5447600352       30GiB   XtremIO XtremApp
      										status: used, paths: 2 active
      
      Please select the destination LUN (1, 2) [1]:
  4. 네트워크 설정

    배포에서 가능한 네트워크 인터페이스 컨트롤러(NIC)를 감지하여 환경에 대한 관리 브리지로 사용합니다.
    iptables was detected on your computer, do you wish setup to configure it? (Yes, No)[Yes]:
    Please indicate a nic to set ovirtmgmt bridge on: (eth1, eth0) [eth1]:
    Please indicate a pingable gateway IP address [X.X.X.X]:
  5. 가상 머신 설정

    스크립트에서 자동으로 사용 가능한 RHV-M Virtual Appliances를 감지합니다. 적절한 어플라이언스를 선택합니다.
     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]:
    vnc 또는 spice 콘솔 유형을 선택하여 가상 머신에 연결합니다.
    Please specify the console type you would like to use to connect to the VM (vnc, spice) [vnc]:
    cloud-init가 Manager 가상 머신의 초기 설정을 수행하도록 하려면 를 지정합니다. cloud-init가 root 암호 설정, 네트워크 설정, 호스트 이름 설정, engine-setup에서 사용할 응답 파일 추가, 부팅 시 engine-setup 실행 등의 작업을 수행하도록 하려면 Generate를 지정합니다. 선택적으로 cloud-init의 더욱 정교한 기능을 처리하는 기존 cloud-init 스크립트가 있는 경우 Existing을 선택합니다.
    Would you like to use cloud-init to customize the appliance on the first boot (Yes, No)[Yes]?
    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]?

    참고

    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
    기본값이 아닌 경우 Manager에 사용할 도메인 이름을 입력합니다.
    Please provide the domain name you would like to use for the engine appliance.
    Engine VM domain: [domain.example.com]
    Manager가 처음 부팅될 때 자동으로 engine-seup을 실행할지와 모니터링된 서비스로 Manager 가상 머신을 다시 시작할지를 지정합니다.
    Automatically execute engine-setup on the engine appliance on first boot (Yes, No)[Yes]?
    Automatically restart the engine VM as a monitored service after engine-setup (Yes, No)[Yes]?
    Manager의 root 암호를 입력합니다.
    Enter root password that will be used for the engine appliance (leave it empty to skip): p@ssw0rd
    Confirm appliance root password: p@ssw0rd
    나중에 Manager에 root 사용자로 로그인하는 데 사용할 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
    Do you want to enable ssh access for the root user (yes, no, without-password) [yes]:
    Manager 디스크 크기 및 메모리 크기를 지정합니다.
    Please specify the size of the VM disk in GB: [50]:
    Please specify the memory size of the VM in MB (Defaults to appliance OVF value): [4096]:
    Manager에서 사용할 CPU 유형과 사용할 가상 CPU 수를 지정합니다.
    The following CPU types are supported by this host:
    - model_SandyBridge: Intel SandyBridge Family
    - model_Westmere: Intel Westmere Family
    - model_Nehalem: Intel Nehalem Family
    - model_Penryn: Intel Penryn Family
    - model_Conroe: Intel Conroe Family
    Please specify the CPU type to be used by the VM [model_SandyBridge]:
    Please specify the number of virtual CPUs for the VM [Defaults to appliance OVF value: 4]:
    Manager 가상 머신에 대해 MAC 주소를 지정하거나 임의로 생성된 주소를 허용합니다. MAC 주소는 가상 머신에 운영 체제를 설치하기 전에 DHCP 및 DNS 서버를 업데이트하는 데 사용할 수 있습니다. DHCP를 통해 Manager 가상 머신에 IP 주소를 제공하려는 경우 해당 MAC 주소에 유효한 DHCP 예약이 있는지 확인하십시오. 배포 스크립트는 DHCP 서버를 설정하지 않습니다.
    You may specify a MAC address for the VM or accept a randomly generated default [00:16:3e:77:b2:a4]:
    가상 머신의 네트워킹 상세 정보를 지정합니다.
    How should the engine VM network be configured (DHCP, Static)[DHCP]?
    Static을 지정한 경우 Manager의 IP 주소를 입력합니다.
    Please enter the IP address to be used for the engine VM [10.x.x.x]:
    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):
    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]
  6. 셀프 호스트 엔진 설정

    admin@internal 사용자가 관리 포털에 액세스하기 위한 암호를 입력합니다. SMTP 서버의 이름 및 TCP 포트 번호, 이메일 알림 전송에 사용되는 이메일 주소, 이러한 알림을 수신할 쉼표로 구분된 이메일 주소 목록을 입력합니다.
    Enter engine admin password: p@ssw0rd
    Confirm engine admin password: p@ssw0rd
    Please provide the name of the SMTP server through which we will send notifications [localhost]:
    Please provide the TCP port number of the SMTP server [25]:
    Please provide the email address from which notifications will be sent [root@localhost]:
    Please provide a comma-separated list of email addresses which will get notifications [root@localhost]:
  7. 설정 미리 보기

    진행하기 전에 입력한 설정 값이 표시되며 이러한 값으로 진행할지 확인하는 메시지가 나타납니다.
    Please confirm installation settings (Yes, No)[Yes]: Yes
배포에서 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에 생성됩니다.