11.Nas_1


새창 작성 수정 목록 링크 Edit G카랜다 HDD HDD HDD 게시물 주소 복사


●esxi작업) [VMware] ESXi ver 7.0.2 부팅시 스크립트 자동 실행하기

♨ 카랜더 일정 :
  • 링크

  • 첨부

  • 컨텐츠 정보

    본문

    ● [VMware] ESXi 부팅시 스크립트 실행하기

    esxi ver7.0.2 에서 자동 실행 파일

    nano /etc/rc.local.d/local.sh

    추가내용

    # nano edit start 202208151525

    # find / -name nano

    cp /vmfs/volumes/6167e460-4819a5ce-dfc1-1cfd08738685/ESXi_backup/nano-2.2.2-3.1.x86_64/usr/bin/nano /bin/nano


    3232235521_1660544803.355.png

    [root@localhost:/vmfs/volumes/6167e460-4819a5ce-dfc1-1cfd08738685/ESXi_backup] cat  /etc/rc.local.d/local.sh
    #!/bin/sh ++group=host/vim/vmvisor/boot
    # local configuration options
    # Note: modify at your own risk!  If you do/use anything in this
    # script that is not part of a stable API (relying on files to be in
    # specific places, specific tools, specific output, etc) there is a
    # possibility you will end up with a broken system after patching or
    # upgrading.  Changes are not supported unless under direction of
    # VMware support.
    # Note: This script will not be run when UEFI secure boot is enabled.
    # ==================  add ..................start  ===============
    # this filename :  /etc/rc.local.d/local.sh
    # vm auto start
    # VM_autostart_test2_ip11_dsm7_1.sh
    # VM_autostart_11qkr_ds3615_dsm7.sh
    cd /vmfs/volumes/6167e460-4819a5ce-dfc1-1cfd08738685/ESXi_backup
    /vmfs/volumes/6167e460-4819a5ce-dfc1-1cfd08738685/ESXi_backup/VM_autostart_11qkr_ds3615_dsm7.sh &
    /vmfs/volumes/6167e460-4819a5ce-dfc1-1cfd08738685/ESXi_backup/VM_autostart_test3.sh &
    cd ~
    # teregram message at esxi start
    # TOKEN = 5245210519:AAGAiz3V3Eiv-HxPdx-??????Yyey04
    # CHATID = 778???077
    esxcli network firewall ruleset set -e true -r httpClient &
    # wget --post-data="chat_id=CHATID&text=ESXi_6.7_Booted_Completed" https://api.telegram.org/botTOKEN/sendMessage
    wget --post-data="chat_id=778557077&text=ESXi70_Booted_ok" https://api.telegram.org/bot5245210519:AAGAiz3V3Eiv-HxPdx-??????TYyey04/sendMessage
    esxcli network firewall ruleset set -e false -r httpClient &
    # nano edit start 202208151525
    # find / -name nano
    cp /vmfs/volumes/6167e460-4819a5ce-dfc1-1cfd08738685/ESXi_backup/nano-2.2.2-3.1.x86_64/usr/bin/nano /bin/nano
    
    # usb start 202208151537
    /etc/init.d/usbarbitrator start
    chkconfig usbarbitrator on
    # ===================================== add....end =========
    exit 0
    [root@localhost:/vmfs/volumes/6167e460-4819a5ce-dfc1-1cfd08738685/ESXi_backup]
    

    파일 정보

    3232235521_1660544864.9488.png

    파일저장위치

    ls /vmfs/volumes/6167e460-4819a5ce-dfc1-1cfd08738685/ESXi_backup/ -lrt

    3232235521_1660546884.5938.png

    아래는 정보 참조 바랍니다.

    부팅하는 동안 명령을 실행하도록 ESX/ESXi에서 rc.local 또는 local.sh 파일 수정(2043564)


    최종 업데이트: 2021. 10. 8.카테고리: 방법총 조회수: 73286 13구독하다

    목적

    이 문서에서는 부팅 프로세스 동안 ESX/ESXi에서 명령을 실행하도록 rc.local 또는 local.sh 파일을 수정하는 방법에 대한 정보를 제공합니다. 이 프로세스는 사용된 ESX/ESXi 버전에 따라 다릅니다. 참고: 보안 부팅(UEFI)의 보안 강화로 인해 이러한 옵션을 사용할 수 없습니다.

    해결

    ESX/ESXi 부팅 프로세스 중에 명령을 실행하려면 rc.local 또는 local.sh 구성 파일이 수정됩니다.



    참고 : VMware에서는 이러한 파일을 수정하지 않을 것을 권장합니다. 특별한 사용 사례 시나리오에서 또는 VMware 기술 지원의 지시가 있는 경우에만 이러한 파일을 수정해야 합니다. 대부분의 ESX/ESXi 구성 옵션 및 드라이버 매개변수는 재부팅 후에도 지속되며 다른 방법을 사용하여 설정됩니다. 자세한 내용 은 ESX/ESXi용 고급 옵션 구성(1038578) 및 ESX/ESXi에서 고급 드라이버 모듈 매개변수 구성(1017588) 을 참조하십시오 .

    ESXi 5.1/5.5/6.x/7.x

    ESXi 5.1 부팅 프로세스 중에 명령을 실행하려면 /etc/rc.local.d/ 디렉토리 에 있는 local.sh 파일 을 수정하십시오.

    추가예)

     ethtool --pause vmnic0 autoneg off

    를 추가하는 방법

    local.sh 파일 을 수정하려면 :

    nano 에디터를 이용 수정

    cd /etc

    nano local.sh

    예를 들면 다음과 같습니다.

    • #!/bin/sh
    • #!/bin/sh
    • # local configuration options
    • # Note: modify at your own risk!  If you do/use anything in this
    • # script that is not part of a stable API (relying on files to be in
    • # specific places, specific tools, specific output, etc) there is a
    • # possibility you will end up with a broken system after patching or
    • # upgrading.  Changes are not supported unless under direction of
    • # VMware support.

    • # Note: This script will not be run when UEFI secure boot is enabled.

    • ethtool --pause vmnic0 autoneg off
    • exit 0

    이 예에서 흐름 제어, 자동 협상을 비활성화 하는 ethtool 명령은 exit 0 행 위에 추가됩니다.

    참고 :

    • exit 0 행 뒤에 추가된 명령 은 실행되지 않습니다.
    • 종료 0 전에 추가 명령을 추가할 수 있습니다 .
    • 명령은 나열된 순서대로 실행됩니다.
    • 일반적으로 local.sh 파일 의 권한을 수정할 필요는 없습니다 . ESXi 5.1에서는 기본적으로 루트 사용자에게 이 파일에 대한 읽기 및 쓰기 권한이 있습니다.
    • UEFI 보안 부팅이 활성화되면 스크립트가 실행되지 않습니다.

    • ESXi 4.x/5.0

      Note: The information in this section applies only to ESXi, and not to ESX.

       

      To execute a command during the ESXi 4.x and 5.0 boot process, modify the rc.local file located at the /etc/ directory.

       

      To modify the rc.local file:

      1. Open the rc.local file using the vi editor. For more information, see Editing configuration files in VMware ESXi and ESX (1017022).
      2. Add the commands to be executed at the end of the file. For example:

        #!/bin/sh

        export PATH=/sbin:/bin

        log() {
        echo "${1}"
        /bin/busybox logger init "${1}"
        }

        # execute all service retgistered in ${rcdir} ($1 or /etc/rc.local.d)
        if [ -d "${1:-/etc/rc.local.d}" ] ; then
        for filename in $(find "${1:-/etc/rc.local.d}" | /bin/busybox sort) ; do
        if [ -f "${filename}" ] && [ -x "${filename}" ]; then
        log "running ${filename}"
        "${filename}"
        fi
        done
        fi

        # disables flow control auto-negotiation for vmnic0


        ethtool --pause vmnic0 autoneg off

        In this example, the ethtool command to disable flow control, auto-negotiation is added at the end of the file, on a new line.

        Notes:
        • Additional commands are added on separate lines within the file.
        • The commands are executed in the order listed.
        • Commands are disabled using the # characters at the beginning of the line.
        • Usually, it is not necessary to modify the permissions of the /etc/rc.local file. In ESXi 4.x and 5.0, by default, the root user has read and write permissions on this file.

     https://11q.kr 에 등록된 자료 입니다. ♠ 정보찾아 공유 드리며 출처는 링크 참조 바랍니다♠1.png

    [ 추가 정보 ... 더보기) ]
    뷰PDF 1,2



    office view

    관련자료

    댓글목록

    등록된 댓글이 없습니다.

    목록

    새창 작성 수정 목록 링크 Edit G카랜다 HDD HDD HDD 게시물 주소 복사




    Total 1,678 / 28 Page
    [ Debian 10 Linux에 Apache Web Server를 재설치하는 방법 ]

    Debian 10 Linux에 Apache Web Server를 재설치하는 방법■ 문제 발생 재 설치 합니다https://linuxize.com…

    [ 데비안 10의 모든 서비스를 나열하는 방법 ]

    데비안 10의 모든 서비스를 나열하는 방법데비안 10에서 실행되는 전체 서비스를 보려면 다음 명령을 실행할 수 있습니다.ls /etc/init.…

    [ MiBox3 EddyLab에디션 셋탑 공구 설치 와 adb_scrcpy 화면 미러링 컨트롤 기본 설치 화면캡… ] 댓글 2

    MiBox3 EddyLab에디션 셋탑 공구 설치 와adb_scrcpy 화면 미러링 컨트롤 기본 설치 화면캡춰 기본 설치기기본 설치 후adb_sc…

    [ Android용 스위치 제어 on 정보 어플 클릭하면 실행되지 않고 메뉴가 나오면 스위치 제어 off 하… ]

    Android용 스위치 제어 정보이 정보는 Android 5.0 이상을 실행하는 기기에만 적용됩니다.스위치 제어를 사용하면 터치스크린 대신 한 …

    [ PlayerDebug를 원격으로 매핑 ]

    PlayerDebug를 원격으로 매핑https://discourse.osmc.tv/t/map-playerdebug-to-remote/38586홈…

    [ linux에서 find 로 특정 파일에서 문자열 검색 방법 ]

    linux에서 find 로 특정 파일에서 문자열 검색 방법리눅스을 배우고 명령어를 배우는 방법에 참조 파일을 작성 보관 찾아 보기를 합니다파일을…

    [ 초보를 위한 도커 안내서 - 설치하고 컨테이너 실행하기 ]

    초보를 위한 도커 안내서 - 설치하고 컨테이너 실행하기https://subicura.com/2017/01/19/docker-guide-for-b…

    [ 재설치) android tv ver 9 termux 설치후 ubuntu 와 s**a2설치 작업 ] 댓글 1

    재설치) android tv ver 9 termux 설치후 ubuntu 와 s...a2설치 작업# ssh putty 접속 설치# 중간에 ssh …

    [ 음악 파일 일괄 변경및 태그일괄수정 알송 이용하기 ]

    음악 파일 일괄 변경및 태그일괄수정 알송 이용하기일부 노래가 번호로 되어 있어 일괄수정합니다알송으로 진행다시 파일 이름 정리 후 일괄 태그정리 …

    [ 허용되는 앱 it지원팀에 문의 하세요 ]

    ■ ▶ ☞ 정보찾아 공유 드리며 출처는 링크 참조 바랍니다 ♠ . ☞ 본자료는 https://11q.kr 에 등록 된 자료 입니다♠.

    [ ** 시놀로지 도커용 Tvheadend 자동설치 작업 => 도커의 좋은점 바로 삭제후 간단히 재설치 가능 ] 댓글 5

    ** 시놀로지 도커용 Tvheadend 자동설치 작업 => 도커의 좋은점 바로 삭제후 간단히 재설치 가능추가없이 tv_grab_klive …

    [ 포토샵으로 사각형 모서리 라운드 둥굴게 사진 만들기 ]

    포토샵으로 사각형 모서리라운드둥굴게 사진 만들기포토샵으로 사각형 모서리 둥글게 만들기! 간단한 방법조건) 필수레이어 복제후 사본만 선택 사본만 …

    [ ● kodi strm maker로 생성한 *strm* 영화제목 변경하기/지우기 [SQL] 데이터 치환(변경)… ]

    ● kodi strm maker로 생성한*strm* 영화제목 변경하기/지우기[SQL] 데이터 치환(변경)하기첨부파일 경로가 변경이 되었거나 그 …

    [ ● Synology DSM 7용 opkg(Entware)를 통해 패키지 설치 ]

    ●Synology DSM 7용 opkg(Entware)를 통해 패키지 설치시놀로지 dsm 패캐지소스 추가부분 설치가 안되는 증상 나타남내 Syn…

    [ ● 패키지 업로드 dsm7.0 에서 파일 형식이 올바르지 않습니다. 패키지 개발자에게 문의 하십시요 ...… ]

    ● 패키지 업로드 dsm7.0 에서 파일 형식이 올바르지 않습니다. 패키지 개발자에게 문의 하십시요 ...설치 불가 ☞https://11q.kr…

    [ 7.0버전 관련무 내용 으로 봉인)기본인식 //에러 ● esxi 서버의 vm생성 cpu 가상화가 아닌 일… ]

    ● esxi 서버의 vm생성 cpu 가상화가 아닌 일반 PC로 인식되는것을 확인 한 사례7.0버전에서 적용유무 확인 ,적용 불가능하며 기본 인식…

    [ ● pve 환경 직렬 포트 자습서의 Synology ]

    ●pve 환경 직렬 포트 자습서의 Synology [KVM]ProxMox 설명이네요 시놀로지는 시작할 때마다 어둡고 움직이지 않고 리눅스 시작 …


    ♥간단_메모글♥


    최근글


    새댓글



    PHP 안에 HTML ☞ 홈페이지 화면갱신 시간은 ♨
    ▶ 2024-06-29 16:35:36

    오늘의 홈 현황


    • 현재 접속자♨ 558 명
    • 오늘 가입자※ 3 명
    • 어제 가입자※ 4 명
    • 주간 가입자※ 8 명
    • 오늘 방문자 1,747 명
    • 어제 방문자 2,007 명
    • 최대 방문자 13,042 명
    • 전체 방문자 4,402,909 명
    • 전체 게시물※ 8,664 개
    • 전체 댓글수※ 24,795 개
    • 전체 회원수 11,077 명

    QR코드


    ☞ QR코드 스캔은 kakao앱 자체 QR코드

    알림 0








    최신글↑