SUSE Multi-Linux Manager Proxy Deployment as a Virtual Machine - VMware

This chapter provides the Virtual Machine settings for deployment of SUSE Multi-Linux Manager 5.1 Proxy as an image. VMware will be used as a sandbox for this installation.

1. 사용 가능한 이미지

The preferred method for deploying SUSE Multi-Linux Manager Proxy is to use one of the following available images. All tools are included in these images simplifying deployment.

Images for SUSE Multi-Linux Manager 5.1 Proxy are available at SUSE Multi-Linux Manager 5.1 VM images.

Table 1. 사용할 수 있는 프록시 이미지
아키텍처 이미지 형식

aarch64

qcow2, vmdk

x86_64

qcow2, vmdk, 원시, 자체 설치 프로그램

2. Virtual Machine Settings - VMware

This section describes VMware configurations, focusing on the creation of an extra virtual disk essential for the SUSE Multi-Linux Manager Proxy storage partition within VMware environments.

This section specifies the minimum requirements. These are suitable for a quick test installation, such as a proxy with one client.

If you want to use a production environment and need background information about disk space, see 하드웨어 요구사항.

절차: VMware 가상 머신 생성
  1. Download SUSE Multi-Linux Manager Proxy .vmdk file then transfer a copy to your VMware storage.

  2. Make a copy of uploaded .vmdk file using VMware web interface. This will convert provided .vmdk file to the format suitable for vSphere hypervisor.

  3. 게스트 OS 제품군 Linux 및 게스트 OS 버전 SUSE Linux Enterprise 15(64비트)를 기반으로 새 가상 시스템을 생성하고 이름을 지정합니다.

  4. Add an additional Hard Disk 2 of 100 GB (or more).

  5. Configure RAM and number of CPUs with minimum values. *)

  6. 필요에 따라 네트워크 어댑터를 설정합니다.

  7. VM의 전원을 켜고 최초 부팅 대화 상자(키보드 레이아웃, 사용권 계약, 표준 시간대, 루트 비밀번호)를 따릅니다.

  8. 설치가 완료되면 루트로 로그인합니다.

  9. 다음 섹션을 진행합니다.

3. Register SL Micro and SUSE Multi-Linux Manager 5.1 Proxy

Procedure: Registering SL Micro and SUSE Multi-Linux Manager 5.1 Proxy
  1. 가상 머신을 부팅합니다.

  2. root 로 로그인합니다.

  3. SCC를 사용하여 SL Micro를 등록합니다.

    transactional-update register -r <REGCODE> -e <your_email>
  4. 재부팅합니다.

  5. Register SUSE Multi-Linux Manager 5.1 Proxy with SUSE Customer Center.

    transactional-update register -p SUSE-Manager-Proxy/5.1/x86_64 -r <REGCODE>
  6. 재부팅합니다.

  7. 시스템 업데이트:

    transactional-update
  8. 업데이트가 적용된 경우 재부팅합니다.

  9. 이 단계는 선택 사항입니다. 그러나 인프라에 사용자 정의 영구 스토리지가 필요한 경우 mgr-storage-proxy 도구를 사용하십시오.

    • For more information, see mgr-storage-proxy --help. This tool simplifies creating the container volumes.

    • 다음 방법으로 명령 사용:

      mgr-storage-proxy <storage-disk-device>

      예:

      mgr-storage-proxy /dev/nvme1n1

      This command will move the persistent storage volumes at /var/lib/containers/storage/volumes to the specified storage device.

      For more information, see

4. 프록시용 활성화 키 생성

Procedure: Creating an Activation Key
  1. Navigate to Systems  Activation Keys , and click Create key.

  2. SLE Micro 6.1을 상위 채널로 사용하여 프록시 호스트에 대한 활성화 키를 만듭니다. 이 키에는 모든 권장 채널과 프록시를 확장 하위 채널로 포함해야 합니다.

  3. 프록시 호스트를 기본 클라이언트로 부스트래핑을 진행합니다.

5. 프록시 호스트를 클라이언트로 부트스트랩

Procedure: Bootstrapping the Proxy Host
  1. 시스템  부트스트랩을 선택합니다.

  2. 프록시 호스트의 필드를 입력합니다.

  3. 드롭다운에서 이전 단계에서 생성한 활성화 키를 선택합니다.

  4. 부트스트랩을 클릭합니다.

  5. 부트스트랩 프로세스가 완료될 때까지 기다립니다. Salt 메뉴를 선택한 후 Salt 키가 나열되고 수락되었는지 확인합니다.

  6. 프록시 호스트를 재부팅합니다.

  7. 시스템 목록에서 호스트를 선택하고 모든 이벤트가 완료된 후 두 번째 재부팅을 트리거하여 온보딩을 완료합니다.

Procedure: Updating the Proxy Host
  1. 시스템 목록에서 호스트를 선택하고 모든 패치를 적용하여 업데이트합니다.

  2. 프록시 호스트를 재부팅합니다.

6. Generate Proxy Configuration

SUSE Multi-Linux Manager 프록시의 구성 아카이브는 SUSE Multi-Linux Manager 서버에서 생성됩니다. 각 추가 프록시에는 자체 구성 아카이브가 필요합니다.

Podman 배포의 경우, 이 프록시 구성을 생성하기 전에 SUSE Multi-Linux Manager 프록시의 컨테이너 호스트가 SUSE Multi-Linux Manager 서버에 클라이언트로 등록되어 있어야 합니다.

프록시 FQDN을 사용하여 등록된 클라이언트가 아닌 프록시 컨테이너 구성을 생성하는 경우(Kubernetes 사용 사례와 같이), 시스템 목록에 새 시스템 항목이 표시됩니다. 이 새 항목은 이전에 입력한 프록시 FQDN 값 아래에 표시되며 시스템 유형은 외부입니다.

6.1. Web UI를 사용하여 프록시 구성 생성

Procedure: Generating a Proxy Container Configuration Using Web UI
  1. Web UI에서 Systems  프록시 구성으로 이동하여 필요한 데이터를 입력합니다.

  2. Proxy FQDN 필드에 프록시의 정규화된 도메인 이름을 입력합니다.

  3. 상위 FQDN 필드에 SUSE Multi-Linux Manager Server 또는 다른 SUSE Multi-Linux Manager Proxy에 대한 정규화된 도메인 이름을 입력하십시오.

  4. 프록시 SSH 포트 필드에 SSH 서비스가 SUSE Multi-Linux Manager Proxy에서 수신 대기하는 SSH 포트를 입력하십시오. 권장 사항은 기본 포트인 8022를 유지하는 것입니다.

  5. In the Max Squid cache size [MB] field type maximal allowed size for Squid cache. Recommended is to use at most 80% of available storage for the containers.

    2GB는 기본 프록시 squid 캐시 크기입니다. 사용자의 환경에 적합하도록 조정해야 합니다.

  6. SSL 인증서 선택 목록에서 SUSE Multi-Linux Manager 프록시에 대해 새 서버 인증서를 생성해야 하는지 또는 기존 인증서를 사용해야 하는지 선택합니다. 생성된 인증서를 SUSE Multi-Linux Manager 기본 제공(자체 서명) 인증서로 간주할 수 있습니다.

    선택에 따라 새 인증서를 생성하기 위해 CA 인증서에 서명할 경로 또는 프록시 인증서로 사용할 기존 인증서 및 해당 키에 대한 경로를 입력하십시오.

    서버에서 생성된 CA 인증서는 /var/lib/containers/storage/volumes/root/_data/ssl-build 디렉토리에 저장됩니다.

    기존 또는 사용자 정의 인증서와 기업 및 중간 인증서의 개념에 대한 자세한 내용은 SSL 인증서 임포트에서 확인할 수 있습니다.

  7. 생성을 클릭하여 SUSE Multi-Linux Manager 서버에 새 프록시 FQDN을 등록하고 컨테이너 호스트에 대한 세부사항이 포함된 구성 아카이브(config.tar.gz)를 생성합니다.

  8. 잠시 후 다운로드할 파일이 표시됩니다. 이 파일을 로컬에 저장합니다.

6.2. Generate Proxy Configuration With spacecmd and Self-Signed Certificate

You can generate a Proxy configuration using spacecmd.

절차: spacecmd 및 자체 서명 인증서를 사용하여 프록시 구성 생성
  1. 컨테이너 호스트에 SSH로 연결합니다.

  2. 서버 및 프록시 FQDN을 바꾸는 다음 명령을 실행합니다.

    mgrctl exec -ti 'spacecmd proxy_container_config_generate_cert -- dev-pxy.example.com dev-srv.example.com 2048 email@example.com -o /tmp/config.tar.gz'
  3. 서버 컨테이너에서 생성된 구성을 복사합니다.

    mgrctl cp server:/tmp/config.tar.gz .

6.3. Generate Proxy Configuration With spacecmd and Custom Certificate

You can generate a Proxy configuration using spacecmd for a custom certificates rather than the default self-signed certificates.

절차: spacecmd 및 사용자 정의 인증서를 사용하여 프록시 구성 생성
  1. 서버 컨테이너 호스트에 SSH로 연결합니다.

  2. 서버 및 프록시 FQDN을 바꾸는 다음 명령을 실행합니다.

    for f in ca.crt proxy.crt proxy.key; do
      mgrctl cp $f server:/tmp/$f
    done
    mgrctl exec -ti 'spacecmd proxy_container_config -- -p 8022 pxy.example.com srv.example.com 2048 email@example.com /tmp/ca.crt /tmp/proxy.crt /tmp/proxy.key -o /tmp/config.tar.gz'
  3. 서버 컨테이너에서 생성된 구성을 복사합니다.

    mgrctl cp server:/tmp/config.tar.gz .

7. 프록시 구성 전송

Web UI는 구성 아카이브를 생성합니다. 이 아카이브는 프록시 컨테이너 호스트에서 사용할 수 있도록 설정해야 합니다.

절차: 프록시 구성 복사
  1. 아직 완료하지 않은 경우 이전 단계에서 생성한 구성 아카이브(config.tar.gz)를 서버 컨테이너에서 서버 호스트로 복사합니다.

    mgrctl cp server:/root/config.tar.gz .
  2. If not already done, copy the files from the server host to the proxy host:

    scp config.tar.gz <proxy-FQDN>:/root
  3. On the proxy host, install the Proxy with:

    mgrpxy install podman config.tar.gz

8. SUSE Multi-Linux Manager 5.1 프록시 시작

이제 mgrpxy 명령으로 컨테이너를 시작할 수 있습니다.

절차: 프록시 시작 및 상태 확인
  1. 다음을 호출하여 프록시 시작:

    mgrpxy start
  2. 다음을 호출하여 컨테이너 상태 확인:

    mgrpxy status

    Five SUSE Multi-Linux Manager Proxy containers should be present and should be part of the proxy-pod container pod:

    • proxy-salt-broker

    • proxy-httpd

    • proxy-tftpd

    • proxy-squid

    • proxy-ssh

8.1. 서비스에 사용자 정의 컨테이너 이미지 사용

기본적으로 SUSE Multi-Linux Manager 프록시 제품군은 각 서비스에 대해 동일한 이미지 버전과 레지스트리 경로를 사용하도록 설정되어 있습니다. 그러나 -tag-image로 끝나는 설치 파라미터를 사용하여 특정 서비스에 대한 기본값을 재정의할 수 있습니다.

예를 들어, 다음과 같이 사용합니다.

mgrpxy install podman --httpd-tag 0.1.0 --httpd-image registry.opensuse.org/uyuni/proxy-httpd /path/to/config.tar.gz

이는 다시 시작하기 전에 registry.opensuse.org/uyuni/proxy-httpds가 사용할 이미지이고 0.1.0이 버전 태그인 httpd 서비스의 구성 파일을 조정합니다.

값을 기본값으로 재설정하려면 해당 파라미터 없이 설치 명령을 다시 실행합니다.

mgrpxy install podman /path/to/config.tar.gz

이 명령은 먼저 모든 서비스의 구성을 전역 기본값으로 재설정한 다음 다시 로드합니다.