5장. Red Hat Virtualization Manager 설치

RHV-M appliance는 배포 프로세스 중에 설치되지만 필요한 경우 설치를 시작하기 전에 배포 호스트에 설치할 수 있습니다.

# yum install rhvm-appliance

Manager 가상 머신 수동 설치는 지원되지 않습니다.

5.1. 명령줄을 사용하여 셀프 호스트 엔진 배포

명령줄에서 자체 호스팅 엔진을 배포할 수 있습니다. 설정 패키지를 설치한 후 hosted-engine --deploy 명령을 실행하고, 스크립트는 환경의 세부 정보를 수집하고 이를 사용하여 호스트와 관리자를 구성합니다.

사전 요구 사항

  • 관리자와 호스트에 대해 준비된 FQDN입니다. 정방향 및 역방향 조회 레코드는 모두 DNS에서 설정해야 합니다.

절차

  1. 배포 툴을 설치합니다.

    # yum install ovirt-hosted-engine-setup
  2. 네트워크 또는 터미널 중단의 경우 세션이 손실되지 않도록 화면 창 관리자를 사용하여 스크립트를 실행하는 것이 좋습니다. 설치 및 시작 화면:

    # yum install screen
    # screen
  3. 배포 스크립트를 시작합니다.

    # hosted-engine --deploy
    참고

    언제든지 스크립트를 이스케이프하려면 Ctrl+D 키보드 조합을 사용하여 배포를 중단합니다. 세션 제한 시간 또는 연결 중단이 발생하는 경우 screen -d -r 을 실행하여 배포 세션을 복구합니다.

  4. 메시지가 표시되면 Yes 를 입력하여 배포를 시작합니다.

    Continuing will configure this host for serving as hypervisor and will create a local VM with a running engine.
    The locally running engine will be used to configure a new storage domain and create a VM there.
    At the end the disk of the local VM will be moved to the shared storage.
    Are you sure you want to continue? (Yes, No)[Yes]:
  5. 네트워크를 구성합니다. 표시된 게이트웨이가 올바른지 확인하고 Enter 키를 누릅니다. 스크립트에서 호스트의 연결을 확인할 수 있도록 동일한 서브넷에 ping 가능 주소를 입력합니다.

    Please indicate a pingable gateway IP address [X.X.X.X]:
  6. 이 스크립트는 환경의 관리 브리지로 사용할 수 있는 NIC를 감지합니다. 그 중 하나를 입력하거나 Enter 를 눌러 기본값을 적용합니다.

    Please indicate a nic to set ovirtmgmt bridge on: (eth1, eth0) [eth1]:
  7. 가상 시스템 설치에 사용자 지정 어플라이언스를 사용하려면 OVA 아카이브의 경로를 입력합니다. 그러지 않으면 RHV-M appliance를 사용하려면 이 필드를 비워 둡니다.

    If you want to deploy with a custom engine appliance image,
    please specify the path to the OVA archive you would like to use
    (leave it empty to skip, the setup will use rhvm-appliance rpm installing it if missing):
  8. 가상 머신의 CPU 및 메모리 구성을 입력합니다.

    Please specify the number of virtual CPUs for the VM (Defaults to appliance OVF value): [4]:
    Please specify the memory size of the VM in MB (Defaults to maximum available): [7267]:
  9. Manager 가상 머신의 FQDN을 지정합니다(예: 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:
  10. Manager 가상 머신의 도메인을 지정합니다. 예를 들어 FQDN이 manager.example.com 이면 example.com 을 입력합니다.

    Please provide the domain name you would like to use for the engine appliance.
    Engine VM domain: [example.com]
  11. Manager에 대한 루트 암호를 생성하고 이를 다시 입력하여 확인합니다.

    Enter root password that will be used for the engine appliance:
    Confirm appliance root password:
  12. 선택적으로 SSH 공개 키를 입력하여 Manager에 암호를 입력하지 않고 root 사용자로 로그인할 수 있도록 하고 root 사용자에 대한 SSH 액세스를 활성화할지 여부를 지정합니다.

    Enter ssh public key for the root user that will be used for the engine appliance (leave it empty to skip):
    Do you want to enable ssh access for the root user (yes, no, without-password) [yes]:
  13. Manager 가상 머신의 MAC 주소를 입력하거나 무작위로 생성된 가상 머신의 MAC 주소를 수락합니다. Manager 가상 머신에 DHCP를 통해 IP 주소를 제공하려면 이 MAC 주소에 유효한 DHCP 예약이 있는지 확인하십시오. 배포 스크립트는 DHCP 서버를 구성하지 않습니다.

    You may specify a unicast MAC address for the VM or accept a randomly generated default [00:16:3e:3d:34:47]:
  14. 가상 머신의 네트워킹 세부 정보를 입력합니다.

    How should the engine VM network be configured (DHCP, Static)[DHCP]?

    Static 을 지정한 경우 관리자의 IP 주소를 입력합니다.

    중요
    • 고정 IP 주소는 호스트와 동일한 서브넷에 속해야 합니다. 예를 들어 호스트가 10.1.1.0/24인 경우 Manager 가상 시스템의 IP가 동일한 서브넷 범위(10.1.1.1-254/24)에 있어야 합니다.
    • IPv6의 경우 Red Hat Virtualization은 정적 주소 지정만 지원합니다.
    Please enter the IP address to be used for the engine VM [x.x.x.x]:
    Please provide a comma-separated list (max 3) of IP addresses of domain name servers for the engine VM
    Engine VM DNS (leave it empty to skip):
  15. Manager 가상 머신 및 기본 호스트의 항목을 가상 시스템의 /etc/hosts 파일에 추가할지 여부를 지정합니다. 호스트 이름을 확인할 수 있는지 확인해야 합니다.

    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]
  16. SMTP 서버의 이름 및 TCP 포트 번호, 이메일 알림을 보내는 데 사용되는 이메일 주소, 이러한 알림을 수신할 쉼표로 구분된 이메일 주소 목록을 입력합니다. 또는 Enter 를 눌러 기본값을 적용합니다.

    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]:
  17. admin@internal 사용자의 암호를 생성하여 관리 포털에 액세스한 후 다시 입력하여 확인합니다.

    Enter engine admin password:
    Confirm engine admin password:

    이 스크립트는 가상 머신을 생성합니다. RHV-M appliance를 설치해야 하는 경우 다소 시간이 걸릴 수 있습니다. 가상 머신을 생성한 후 스크립트는 지속적으로 정보를 수집합니다.

  18. 사용할 스토리지 유형을 선택합니다.

    Please specify the storage you would like to use (glusterfs, iscsi, fc, nfs)[nfs]:
    • NFS의 경우 버전, 전체 주소 및 스토리지 경로, 마운트 옵션을 입력합니다.

      Please specify the nfs version you would like to use (auto, v3, v4, v4_1)[auto]:
      Please specify the full shared storage connection path to use (example: host:/path): storage.example.com:/hosted_engine/nfs
      If needed, specify additional mount options for the connection to the hosted-engine storage domain []:
    • iSCSI의 경우 포털 세부 정보를 입력하고 자동 감지 목록에서 대상 및 LUN을 선택합니다. 배포 중에 하나의 iSCSI 대상만 선택할 수 있지만 다중 경로를 지원하여 동일한 포털 그룹의 모든 포털을 연결할 수 있습니다.

      참고

      iSCSI 대상을 두 개 이상 지정하려면 자체 호스팅 엔진을 배포하기 전에 다중 경로를 활성화해야 합니다. 자세한 내용은 Red Hat Enterprise Linux DM Multipath 를 참조하십시오. 다른 옵션으로 다중 경로를 설치하고 구성하는 스크립트를 생성하는 Multipath Helper 툴도 있습니다.

      Please specify the iSCSI portal IP address:
      Please specify the iSCSI portal port [3260]:
      Please specify the iSCSI discover user:
      Please specify the iSCSI discover password:
      Please specify the iSCSI portal login user:
      Please specify the iSCSI portal login password:
      
      The following targets have been found:
      	[1]	iqn.2017-10.com.redhat.example:he
      		TPGT: 1, portals:
      			192.168.1.xxx:3260
      			192.168.2.xxx:3260
      			192.168.3.xxx:3260
      
      Please select a target (1) [1]: 1
      
      The following luns have been found on the requested target:
        [1] 360003ff44dc75adcb5046390a16b4beb   199GiB  MSFT   Virtual HD
            status: free, paths: 1 active
      
      Please select the destination LUN (1) [1]:
    • Gluster 스토리지의 경우 스토리지의 전체 주소 및 경로 및 마운트 옵션을 입력합니다.

      중요

      복제본 3 Gluster 스토리지만 지원됩니다. 다음 구성이 있는지 확인합니다.

      • 세 개의 Gluster 서버 모두의 /etc/glusterfs/glusterd.vol 파일에서 ;을(를) ; 설정합니다.

        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
      If needed, specify additional mount options for the connection to the hosted-engine storage domain []:
    • 파이버 채널의 경우 자동 감지 목록에서 LUN을 선택합니다. 호스트 버스 어댑터를 구성하고 연결해야 하며 LUN에 기존 데이터가 포함되어 있지 않아야 합니다. 기존 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]:
  19. Manager 디스크 크기를 입력합니다.

    Please specify the size of the VM disk in GB: [50]:

    배포가 완료되면 하나의 데이터 센터, 클러스터, 호스트, 스토리지 도메인, Manager 가상 시스템이 이미 실행되고 있습니다. 관리 포털에 로그인하여 다른 리소스를 추가할 수 있습니다.

  20. 필요한 경우 ovirt-engine-extension-aaa-ldap-setup 대화형 설정 스크립트를 사용하여 디렉터리 서버를 추가하여 환경에 사용자를 추가할 수 있습니다. 자세한 내용은 관리 가이드 의 외부 LDAP 공급자 구성을 참조하십시오.

Manager 가상 시스템, 이를 실행하는 호스트, 자체 호스팅 엔진 스토리지 도메인은 관리 포털에서 골드 크래운으로 플래그가 지정됩니다.

Red Hat Virtualization Manager 리포지토리를 활성화하는 것은 자동화된 설치의 일부가 아닙니다. Manager 가상 머신에 로그인하여 Content Delivery Network에 등록합니다.