Xentools 재설치 (Linux)
    • PDF

    Xentools 재설치 (Linux)

    • PDF

    Article Summary

    Classic 환경에서 이용 가능합니다.

    Linux 서버의 Xentools 재설치 방법을 안내합니다.

    사용하기 전에

    참고
    • Xentools 란, Linux VM의 다양한 정보를 Hypervisor로 제공하는 목적으로 사용되는 Guest Agent입니다.
    • 네이버 클라우드는 NTK(Ncloud Tool Kit)를 통해서 Xentools를 재설치할 수 있습니다.

    NTK 를 활용한 재설치 가이드

    Step 1. Linux VM 접속

    Step 2. NTK 압축 해제 및 실행

    1. NTK가 위치한 경로로 이동
    cd /usr/local/etc
    
    1. 압축 해제
    tar zxvf ntk.tar.gz
    
    • 해당 경로에 ntk.tar.gz 파일이 없거나 최신 버전으로 다운로드하려면 아래 명령을 통해 받을 수 있습니다.
    wget -P /usr/local/etc http://repo.gov-ncloud.com/etc/vmcheck/ntk.tar.gz
    
    1. NTK 실행
    cd /usr/local/etc/ntk
    ./ntk
    

    Step 3. NTK XENTOOLS RE-INSTALL 실행

    1. (E) EXCUTE - << Run System Apps >> 를 클릭해 주십시오.

    compute-xentoolslinux-classic_ntk01.png

    1. (X) XENTOOLS - XENTOOLS RE-INSTALL >> 를 클릭해 주십시오.

    compute-xentoolslinux-classic_ntk02.png

    1. Xentools 버전 확인 및 재설치를 원하는 경우 YES를 클릭해 주십시오. 해당 VM의 Xentools 설치 유무 및 버전을 확인합니다.

    compute-xentoolslinux-classic_ntk03.png

    compute-xentoolslinux-classic_ntk3-2.png

    Step 4. Xentools 재설치 실행

    사용자가 Linux VM 자체에서 Xentools 버전 및 설치 유무를 확인할 수 있습니다 .

    ## CentOS 인 경우
    rpm -qa | grep xe-guest
     
    ## Ubuntu 인 경우
    dpkg -l |grep xe-guest
    
    • 정상적인 Xentools 가 설치되어 있는 경우
      해당 VM에 권장하는 버전의 Xentools 가 설치되어 있는 경우, 정상 설치 메시지가 출력됩니다.

    compute-xentoolslinux-classic_ntk04.png

    • 올바르지 않은 버전으로 Xentools 가 설치되어 있는 경우
      해당 VM에 Xentools가 설치는 되어있으나, Naver Cloud에서 권장하는 버전이 설치되어 있지 않는 경우에 재설치 요청 메시지가 출력됩니다.
      재설치를 원하는 경우에는 YES를 클릭해주십시오. 이전 버전의 Xentools를 삭제하고 권장되는 버전의 Xentools가 재설치됩니다.
      예시로, 현재 Xentools 버전이 7.4.0-1 인 상황에서 7.20.2-1 버전으로 재설치된다면 7.4.0-1 ==> 7.20.2-1 메시지가 출력되면서 재설치가 완료됩니다.

    compute-xentoolslinux-classic_ntk05.png

    compute-xentoolslinux-classic_ntk06.png

    • Xentools가 미설치 되어 있는 경우
      해당 VM에 Xentools가 설치되어있지 않은 경우, 설치 요청 메시지가 출력됩니다.
      설치를 원하는 경우에는 YES를 클릭해주십시오. 권장되는 버전의 Xentools가 설치됩니다.
      예시로, 현재 Xentools 설치안 된 상황에서 7.20.2-1 버전으로 설치된다면 0.0 ==> 7.20.2-1 메시지가 출력되면서 설치가 완료됩니다.

    compute-xentoolslinux-classic_ntk07.png

    compute-xentoolslinux-classic_ntk08.png

    Step 5. VM 리부팅

    Xentools 설치가 완료되면, 서버를 리부팅해주십시오,

    주의
    • 리부팅은 OS 상에서 진행해 주십시오.
    • 콘솔을 통해 재시작할 경우 정상적으로 설치되지 않을 수 있습니다.

    Step 6. Xentools 서비스 상태 확인

    Xentools를 재설치한 후 Xentools Service 상태가 정상인지 확인합니다.

    systemctl status xe-linux-distribution.service
    
    1. 위 명령어를 실행하여 Xentools Service 상태가 정상인지 확인합니다.
    2. Xentools Service 상태가 정상이라면 다음과 같은 결과가 출력됩니다.

    compute-xentoolslinux-classic_ntk10.png

    Step 7. 콘솔에서 서버 상태 확인

    Xentools가 설치 안되어 있거나, 권장하는 버전으로 설치되어 있지 않은 경우에 재부팅 시 OS 상에서는 문제가 없으나 콘솔에서 재시작 상태로 지속될 수 있습니다.

    compute-xentoolslinux-classic_console01_ko.png

    Xentools가 정상적으로 설치된 경우에는 재부팅 시 콘솔에서 운영중 상태로 변경된 것을 확인할 수 있습니다.

    compute-xentoolslinux-classic_console02_ko.png

    스크립트를 활용한 재설치 가이드

    Step 1. Xentools 다운로드

    Linux VM 서버에서 사용할 수 있는 XenTools Download 설치 스크립트를 제공하고 있습니다.
    기존 XenTools Agent는 안전하게 삭제한 후 최신 버전으로 설치됩니다.

    # wget https://kr.object.gov-ncloudstorage.com/xen-tools-install/linux_xentools_install.sh
    # chmod u+x linux_xentools_install.sh
    # ./linux_xentools_install.sh
    
    1. 위 스크립트를 실행하여 Xentools를 설치해 주십시오.
    2. 설치가 완료되면 서버를 리부팅해 주십시오.
    주의
    • 리부팅은 OS 상에서 진행해 주십시오.
    • 콘솔을 통해 재시작할 경우 정상적으로 설치되지 않을 수 있습니다.

    Step 2. Xentools 서비스 상태 확인

    XenTools를 재설치한 후 Xentools Service 상태가 정상인지 확인합니다.

    systemctl status xe-linux-distribution.service
    
    1. 위 명령어를 실행하여 Xentools Service 상태가 정상인지 확인합니다.
    2. Xentools Service 상태가 정상이라면 다음과 같은 결과가 출력됩니다.
      compute-xentoolslinux-vpc-01-ko

    이 문서가 도움이 되었습니까?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.