ESXi 하이퍼바이져의 평가판 라이센스를 꼼수를 써서 연장하는 방법에 대해 알아 본다.

VMWare ESXi 5.5 – 1331820, 1623387, 3248547 버전에서 테스트해 봤다.

 

1. sshd 접속 허용하기

아래 포스팅을 확인해서 적용하면 된다.

sshd 활성화 하기

 

2. 라이센스키 복사

– 라이센스키는 ESXi를 처음 설치 후 바로 복사해 놓는다. 그러면 계속 60일을 유지 가능.

1) ssh 접속

2) 데이터스토어에 디렉토리 생성

~ # mkdir /vmfs/volumes/datastore1/license

– 데이터스토어에 저장하는 이유는 재부팅 후 파일이 사라지는 것을 방지하기 위해서다.

3) 파일 복사

– 2개의 파일을 복사

~ # cp /etc/vmware/license.cfg /vmfs/volumes/datastore1/license/

~ # cp /etc/vmware/vmware.lic /vmfs/volumes/datastore1/license/

 

아래 파일이 59일이 남은 라이센스 파일이다.

이미 평가판 라이센스 날짜가 만료된 다른 ESXi 시스템에 복사해서 사용해도 59일로 된다.

ESXi5.5-license_file

 

3. cron 스케쥴링

아래와 같이 스케쥴링을 걸어서 라이센스 남은 날짜가 항상 같은 날짜로 되게 한다.

6시간마다 라이센스 파일을 갱신하도록 설정.

# vi /etc/rc.local.d/local.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.
 
# Gets the cron service pid and simply kills it.
/bin/kill $(cat /var/run/crond.pid)
# The next line writes a typical cron line to the crontab
/bin/echo "00 */6 * * * cp -f /vmfs/volumes/datastore1/license/* /etc/vmware/" >> /var/spool/cron/crontabs/root
# Finally we start the cron service again
/usr/lib/vmware/busybox/bin/busybox crond
 
exit 0

– 재부팅 후에는 /var/spool/cron/crontabs/root 파일에 적용한 사항이 사라진다. 

– 따라서 재부팅 후에도 영구 적용되도록 시작 스크립트에 반영하는 것이다.

– 위와 같이 local.sh를 설정 후 /etc/rc.local.d/local.sh 를 한번 실행해 주면 적용 완료다.

local.sh를 실행 전 cat /var/run/crond.pid 해보고 실행 후 cat /var/run/crond.pid 해보면 pid가 바뀐게 확인 된다.

 

테스트 용도로 사용하는 것으로만 사용하길 바란다.

 

ESXi 5.5 평가판 라이센스 무기한 연장

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다