Install VMware Tools in CentOS 7

Posted at 2018. 3. 25. 09:28 | Posted in Server/VMware ESXi
반응형
yum install -y perl
yum install -y open-vm-tools
mkdir /mnt/cdrom
mount /dev/cdrom /mnt/cdrom
tar xzvf /mnt/cdrom/VMwareTools-9.4.10-2092844.tar.gz -C /tmp
/tmp/vmware-tools-distrib/vmware-install.pl -d


http://partnerweb.vmware.com/GOSIG/CentOS_7.html

반응형

'Server > VMware ESXi' 카테고리의 다른 글

Install VMware Tools in CentOS  (0) 2016.06.05
UEFI BIOS using USB Boot  (0) 2014.11.04
Install Driver for VMware ESXi Installer  (0) 2014.11.04
Install VMware Tools in Ubuntu  (0) 2014.11.03
Create a VMware ESXi Bootable Flash Drive (USB)  (0) 2014.11.02
//

Disable automatic updates kernel on Ubuntu

Posted at 2017. 12. 20. 11:40 | Posted in Server/Ubuntu
반응형

우분투 설치 후 가만히 냅두면 자동으로 커널이 업그레이드 된다.


우분투 SSH 로그인 했을 때 아래와 같이 재부팅 하라는 메세지가 나오면 커널이 업그레이드 되었을 확률이 있다.


Using username "root".
root@192.168.20.13's password:
Welcome to Ubuntu 16.04.3 LTS (GNU/Linux 4.4.0-45-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

78 packages can be updated.
0 updates are security updates.


*** System restart required ***
Last login: ..... from .....
# _


문제는 이것이 계속 업그레이드 되먼서 이전 커널 파일이 /boot 에 쌓인다.


계속 쌓이다가 /boot 가 100%가 되어버리면 문제가 된다.


주기적으로 관리를 해줘야 하지만 그것도 싫다고 하면... 커널 자동 업그레이드를 비활성화 하자.


# apt-mark hold linux-image-generic linux-headers-generic
linux-image-generic set on hold.
linux-headers-generic set on hold.


출처: https://askubuntu.com/questions/678630/how-can-i-avoid-kernel-updates

반응형

'Server > Ubuntu' 카테고리의 다른 글

Installation Redmine on Ubuntu  (0) 2014.03.26
Installation Maven 3 on Ubuntu  (0) 2014.03.25
Using Xmanager to Ubuntu 10.10  (0) 2011.04.13
Subversion  (0) 2010.08.16
Openfire  (0) 2010.05.25
Webmin  (0) 2009.11.18
Squirrelmail  (0) 2009.11.12
SparkWeb  (0) 2009.11.12
Cacti  (0) 2009.11.12
Apache + SSL  (0) 2009.11.12
//

Install VMware Tools in CentOS

Posted at 2016. 6. 5. 06:07 | Posted in Server/VMware ESXi
반응형

최소 버전의 CentOS는 perl도 없다.


# yum install -y perl


아래 순서대로 실행한다.


# mkdir /mnt/cdrom
# mount /dev/cdrom /mnt/cdrom
# tar xzvf /mnt/cdrom/VMwareTools-9.4.10-2092844.tar.gz -C /tmp
# /tmp/vmware-tools-distrib/vmware-install.pl -d


추후 부전에 따라 gz 파일의 이름이 다를 수도 있다.

반응형

'Server > VMware ESXi' 카테고리의 다른 글

Install VMware Tools in CentOS 7  (0) 2018.03.25
UEFI BIOS using USB Boot  (0) 2014.11.04
Install Driver for VMware ESXi Installer  (0) 2014.11.04
Install VMware Tools in Ubuntu  (0) 2014.11.03
Create a VMware ESXi Bootable Flash Drive (USB)  (0) 2014.11.02
//

UEFI BIOS using USB Boot

Posted at 2014. 11. 4. 22:30 | Posted in Server/VMware ESXi
반응형

Introduce


데스크탑에 VMware ESXi 를 설치하겠다는 도전을 시작해서 드디어 드라이버 다 잡아서 설치를 했더니... 부팅이 안된다... ㅜㅜ..


No Bootable Device ....


눈에 불을 키고 열심히 구글링을 한 결과 해결법이 있었다.


EFI/MBR 같은 부트섹터 관련된 내용이라 걍 따라했다;;


간단한 작업이기도 하고 아래 참조 링크에 설명이 너무 잘 나와 있어서 여기선 대충 설명 하겠다 -_-;;




처음 CD/USB 를 이용하여 설치할 때 처음 나오는 화면이다 여기서 5초 안에 Shift + O 를 누른다. (Edit boot options)



그러면 맨 아래에 커맨드를 입력할 수 있게 나오는데 여기서 runweasel formatwithmbr 을 입력하고 엔터!



그리고 설치를 완료 하면 된다.




Reference


http://www.virt-infrastructure.com/?p=375


http://www.syntecsystems.co.uk/solved-cannot-find-boot-device-following-successful-installation-vmware-esxi-5-0-5-1/


http://sparrowangelstechnology.blogspot.kr/2012/11/no-bootable-device-after-successful.html

반응형
//

Install Driver for VMware ESXi Installer

Posted at 2014. 11. 4. 21:30 | Posted in Server/VMware ESXi
반응형

Introduce


집에 서버급이 아닌 약간 좋은 데스크탑에 VMware ESXi(이하 ESXi) 를 설치하여 혼자 놀려고 하였다.


하지만 서버/워크스테이션이 아닌 일반 데스크탑 하드웨어에 ESXi 를 설치하는 일은 쉽지가 않다...


크게 문제는 두가지가 있었는데.. 하나씩 해결해보자


나의 경우는 아래와 같이 랜카드와 AHCI 가 주된 문제였지만... 혹시나 다른 비슷한 문제로 고통받는 이들을 위해 남긴다.. ㅠㅠ


ASRock Z97 Extreme4

 - Giga PHY Intel® I218V

 - ICH9 / AHCI




소프트웨어 레이드를 지원하지 않는다


메인보드에서 제공하는 레이드는 소프트웨어 레이드이다. ESXi 는 소프트웨어 레이드를 지원하지 않는다고 한다.


레이드 구성을 하지 않고 ESXi 안에서 HDD 여러개를 하나의 데이터스토어로 사용할 수는 있는데 이러다가 HDD 하나 뻑나면? ㄷㄷ


해결법으로 하드웨어 레이드 컨트롤러(Adaptec RAID 6805E)를 구매하였다. 내 돈.. ㅠㅠ





드라이버(랜카드/AHCI 등등)를 수동으로 추가해야 한다.


이 놈이 문제다... 나의 경우는 랜카드 드라이버와 레이드 컨트롤러를 구매하기 전에 AHCI 드라이버가 문제였다.


랜카드 드라이버를 적용하지 않고 설치를 하면 아래와 같은 메세지와 함께 설치가 안된다.



겨우겨우 랜카드 드라이버는 적용해서 다음으로 넘어갔는데 AHCI 드라이버가 안잡혀 있어서 HDD 목록이 안나온다.. ㅜㅜ



해결 방법은 ESXi 설치 이미지에 해당 드라이버를 넣어서 설치해야 한다.


VMware Compatibility Guide 사이트에서 제공해주는 드라이버가 있다면 OK!


파일 확장자가 vib(vSphere Installation Bundle)인 드라이버 파일을 구해야 한다. 나의 경우 아래 3개의 드라이버를 찾아냈다! -_-/


Intel I218V / SATA-XAHCI / Adaptec RAID 6805E


만약 ESXi 용 드라이버를 구할 수 없다면 직접 리눅스 깔고 드라이버 잡아서 vib 파일을 만들어야 할 것이다. ㅠㅠ



드라이버를 구했으면 설치 이미지에 넣어야 한다.


ESXi-Customizer-PS 를 다운로드 받자.


VMware vSphere PowerCLI 에서 아래와 같이 명령을 실행하면 자동으로 ISO 이미지 파일을 만들어 준다.


PowerCLI D:\ESXi> .\ESXi-Customizer-PS-v2.3.ps1 -pkgDir D:\ESXi\vibs


Script to build a customized ESXi installation ISO or Offline bundle using the VMware PowerCLI ImageBuilder snapin

(Call with -help for instructions)


Logging to C:\Users\Antop\AppData\Local\Temp\ESXi-Customizer-PS.log ...


Running with PowerShell version 4.0 and VMware vSphere PowerCLI 5.5 Release 1 build 1295336


Connecting the VMware ESXi base depot ... [OK]


Getting ImageProfiles, please wait ... [OK]


Using ImageProfile ESXi-5.5.0-20141004001-standard ...

(dated 09/19/2014 01:44:42, AcceptanceLevel: PartnerSupported,

For more information, see http://kb.vmware.com/kb/2087364.)


Loading Offline bundles and VIB files from D:\ESXi\vibs ...

   Loading D:\ESXi\vibs\Adaptec_Inc_bootbank_scsi-aacraid_5.5.5.2.1.40301-1OEM.550.0.0.1331820.vib ... [OK]

      Add VIB scsi-aacraid 5.5.5.2.1.40301-1OEM.550.0.0.1331820 [OK, replaced 1.1.5.1-9vmw.550.0.0.1331820]

   Loading D:\ESXi\vibs\e1000e-3.1.0.2-glr.vib ... [OK]

      Add VIB net-e1000e 3.1.0.2-glr [New AcceptanceLevel: CommunitySupported] [OK, replaced 1.1.2-4vmw.550.1.15.1623387]

   Loading D:\ESXi\vibs\sata-xahci-1.24-1.x86_64.vib ... [OK]

      Add VIB sata-xahci 1.24-1 [OK, added]


Exporting the ImageProfile to 'D:\ESXi\ESXi-5.5.0-20141004001-standard-customized.iso'. Please be patient ...



All done.


PowerCLI D:\ESXi>


ISO 파일이 만들어졌다... 이걸로 설치 하자. ㅠㅠ





Reference


http://www.vmware.com/resources/compatibility/search.php


http://www.v-front.de/


http://vibsdepot.v-front.de/wiki

 


 

File

 

aacraid-1.2.1.40301-offline_bundle-1440192.zip

 

net-e1000e-3.1.0.2-glr-offline_bundle.zip

 

sata-xahci-1.24-1-offline_bundle.zip

 

ESXi-Customizer-PS-v2.3.ps1

 

반응형

'Server > VMware ESXi' 카테고리의 다른 글

Install VMware Tools in CentOS 7  (0) 2018.03.25
Install VMware Tools in CentOS  (0) 2016.06.05
UEFI BIOS using USB Boot  (0) 2014.11.04
Install VMware Tools in Ubuntu  (0) 2014.11.03
Create a VMware ESXi Bootable Flash Drive (USB)  (0) 2014.11.02
//

Install VMware Tools in Ubuntu

Posted at 2014. 11. 3. 23:30 | Posted in Server/VMware ESXi
반응형

Introduce


VMware ESXi 에다가 Ubuntu 설치 했는데 VMware Tools 깔아야 될 거 같아서 해보도록 한다.



아마 다른 리눅스/유닉스 계열도 거의 같은 방법일 것이다.


아래 환경에서 하였다.


VMware ESXi 5.5

VMware vSphere Client 5.5.0

Ubuntu Server 14.04.1 LTS




먼서 VM 생성 후 우분투를 설치한 후 부팅(로그인) 하자.


콘솔 창의 메뉴에서 VM - 게스트 - VMware Tools 설치/업그레이드 선택.



안내 창이 나오면 확인 버튼 클릭.



이제 우분투 내에서 아래의 순서대로 하자.


마운트 대상이 될 디렉토리 하나 생성 해놓자.


$ sudo mkdir /mnt/cdrom


위의 메뉴에서 Tools 설치를 선택 했으면 자동으로 시디를 넣은 것 처럼 되어 있다. 마운트 하자


$ sudo mount /dev/cdrom /mnt/cdrom


거기에 있는 gz 파일을 /tmp 쪽에 압축 해제하자.


$ sudo tar xzvf /mnt/cdrom/VMwareTools-9.4.10-2092844.tar.gz -C /tmp


실행!


$ sudo /tmp/vmware-tools-distrib/vmware-install.pl


open-vm-tools are available from the OS vendor and VMware recommends using

open-vm-tools. See http://kb.vmware.com/kb/2073803 for more information.

Do you still want to proceed with this legacy installer? [no] y


.. 나머지는 그냥 다 엔터 치거나 적절히 선택 하자 -_-;;


이제 다시 확인 해보면 설치가 된 것으로 나온다~





Reference


http://www.youtube.com/watch?v=cpQcP_MPqeI


반응형

'Server > VMware ESXi' 카테고리의 다른 글

Install VMware Tools in CentOS 7  (0) 2018.03.25
Install VMware Tools in CentOS  (0) 2016.06.05
UEFI BIOS using USB Boot  (0) 2014.11.04
Install Driver for VMware ESXi Installer  (0) 2014.11.04
Create a VMware ESXi Bootable Flash Drive (USB)  (0) 2014.11.02
//

Create a VMware ESXi Bootable Flash Drive (USB)

Posted at 2014. 11. 2. 02:08 | Posted in Server/VMware ESXi
반응형

Introduce


요즘 윈도우나 리눅스 같은 OS 설치 시 CD/DVD 가 아닌 USB 에 설치 파일을 넣어서 설치를 한다.


마찬가지로 ESXi도 USB로 설치할 수 있도록 세팅해보자. ㅎㅎ


선택할 수 있을만 한 방법은 두가지가 있다.


※ 먼저 USB를 FAT32 로 포멧 해놓자.





Using UltraISO


먼저 ISO 파일을 그냥 불러오자.



VMware ESXi 설치 이미지 파일을 선택한다.



"부팅 가능"을 확인하자.



부팅 - 디스크 이미지 기록 메뉴를 선택한다.



디스크 드라이브: USB 드라이브 선택하고 쓰기 버튼 클릭.



경고 뜬다. 예(Y) 버튼 클릭.



성공적으로 굽기 완료!



부팅을 해보자.





Using UNetbootin


ISO 이미지를 USB 로 가능하게 만들어주는 프로그램으로 UNetbootin 이라는 것이 있드라. -_-


실행 후 ISO 파일을 선택하고 만들 USB 드라이브를 선택한다.



진행 중...



3. Installing Bootloader 단계에서 아래와 같이 물어보면 그냥 Yes to All 버튼 클릭.



완료.



이제 USB 부팅 하면 된다.

반응형

'Server > VMware ESXi' 카테고리의 다른 글

Install VMware Tools in CentOS 7  (0) 2018.03.25
Install VMware Tools in CentOS  (0) 2016.06.05
UEFI BIOS using USB Boot  (0) 2014.11.04
Install Driver for VMware ESXi Installer  (0) 2014.11.04
Install VMware Tools in Ubuntu  (0) 2014.11.03
//

Installation Redmine on Ubuntu

Posted at 2014. 3. 26. 00:54 | Posted in Server/Ubuntu
반응형

우분투에서 Readmine 설치하는데 이것저것 짜잘한 에러가 많이 난다... 그래서 정리한다.


아무것도 설치되지 않은 Ubuntu 12.04 를 기준으로 한다.


참조

http://www.redmine.org/projects/redmine/wiki/HowTo_Install_Redmine_in_Ubuntu

http://openarisu.tistory.com/231




Preparation


apache2 와 데이터베이스(mysql, postgresql 중 하나)가 필요하다. mysql 로 하겠다.


# apt-get install apache2 software-properties-common librmagick-ruby ruby-rmagick mysql-server mysql-client mysql-common


데이터베이스(mysql)의 root 계정 비밀번호 설정



root 비밀번호 재입력



mod_passenger 설치


# apt-get install libapache2-mod-passenger

a2enmod passenger

/etc/init.d/apache2 restart


gem 설치


gem install rake -v 0.8.7

Fetching: rake-0.8.7.gem (100%)

Successfully installed rake-0.8.7

1 gem installed

Installing ri documentation for rake-0.8.7...

Installing RDoc documentation for rake-0.8.7...


gem install fastercsv

Fetching: fastercsv-1.5.5.gem (100%)

Successfully installed fastercsv-1.5.5

1 gem installed

Installing ri documentation for fastercsv-1.5.5...

Installing RDoc documentation for fastercsv-1.5.5...


# gem install bundler

Fetching: bundler-1.5.3.gem (100%)

Successfully installed bundler-1.5.3

1 gem installed

Installing ri documentation for bundler-1.5.3...

Installing RDoc documentation for bundler-1.5.3...




Installation


redmine 설치


# apt-get install python-software-properties

add-apt-repository ppa:ondrej/redmine

You are about to add the following PPA to your system:

 Redmine, Rails and other dependencies needed to run Redmine on Ubuntu Precise.


The repository seem to be stable again.  However please note that many plugins are not compatible with 2.x releases, so think before you update.  Also there might be some glitches when upgrading, so if you think you found one, please send the report with as many information you can gather to me.


NOTE: Unfortunatelly it seems to be virtually impossible to backport Redmine to anything older than Ubuntu 12.04 due entangled circular build dependencies in ruby packages.


NOTE: It should be possible to run redmine in this repository with ruby1.9.1 (1.9.3).


PLEASE READ: If you like my work and want to give me a little motivation, please consider donating: https://deb.sury.org/pages/donate.html

 More info: https://launchpad.net/~ondrej/+archive/redmine

Press [ENTER] to continue or ctrl-c to cancel adding it

엔터

gpg: keyring `/tmp/tmpMM_hPJ/secring.gpg' created

gpg: keyring `/tmp/tmpMM_hPJ/pubring.gpg' created

gpg: requesting key E5267A6C from hkp server keyserver.ubuntu.com

gpg: /tmp/tmpMM_hPJ/trustdb.gpg: trustdb created

gpg: key E5267A6C: public key "Launchpad PPA for Ondřej Surý" imported

gpg: Total number processed: 1

gpg:               imported: 1  (RSA: 1)

OK


# apt-get update

# apt-get install redmine redmine-mysql


<Yes> 선택



데이터베이스는 mysql 선택



root 계정의 비밀번호 입력



redmine 계정의 비밀번호 입력



redmine 비밀번호 재입력





Configuration


passenger.conf 파일에서 아래와 같이 추가


# vi /etc/apache2/mods-available/passenger.conf


<IfModule mod_passenger.c>

  PassengerRoot /usr

  PassengerRuby /usr/bin/ruby

  PassengerDefaultUser www-data

</IfModule>


security 파일 수정 ("OS" → "Prod")


vi /etc/apache2/conf.d/security


ServerTokens Prod


퍼미션 변경


# chmod a+x /usr/share/redmine/public

chmod 755 /usr/share/redmine/public


Gemfile.lock 파일을 웹 계정 소유로 넘겨줌


# touch /usr/share/redmine/Gemfile.lock

# chown www-data:www-data /usr/share/redmine/Gemfile.lock


Gemfile 파일을 수정


# vi /usr/share/redmine/Gemfile


source 'https://rubygems.org'


gem 'fastercsv'


local_gemfile = File.join(File.dirname(__FILE__), "Gemfile.local")

...



여기서부터는 Apache2 의 VIrtualHost 관련된 부분이다. 여기는 각자의 설정대로 하면 된다.


아래의 설명은 /var/www 을 redmine 경로로 대체하여 사용하는 방법이다.


default 파일 수정(2줄 추가)


# vi /etc/apache2/sites-available/default


        DocumentRoot /var/www

        <Directory />

                Options FollowSymLinks

                RailsBaseURI /

                PassengerResolveSymlinksinDocumentRoot on

                AllowOverride None

        </Directory>


apache2 의 루트 경로를 redmine 경로로 대체


# a2enmod rewrite

Enabling module rewrite.

To activate the new configuration, you need to run:

  service apache2 restart


# cd /var

# mv www ww2

# ln -s /usr/share/redmine/public www

# /etc/init.d/apache2 restart




Test


메인화면 떳다...이제.. 놀자..




반응형

'Server > Ubuntu' 카테고리의 다른 글

Disable automatic updates kernel on Ubuntu  (1) 2017.12.20
Installation Maven 3 on Ubuntu  (0) 2014.03.25
Using Xmanager to Ubuntu 10.10  (0) 2011.04.13
Subversion  (0) 2010.08.16
Openfire  (0) 2010.05.25
Webmin  (0) 2009.11.18
Squirrelmail  (0) 2009.11.12
SparkWeb  (0) 2009.11.12
Cacti  (0) 2009.11.12
Apache + SSL  (0) 2009.11.12
//