Apache CloudStack org홈페이지에 가서 소스코드를 다운 받아 repository를 만들어 설치를 하는 방법은 다음 링크 참조.
http://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.1.1/html/Installation_Guide/sect-source-verify.html 최근 릴리즈 된 4.1.1버전 소스코드 다운 로드 링크 다음 참조.
http://cloudstack.apache.org/downloads.html
2. OS환경 설정 (ve08,ve04,ve09)
# hostname -f
알수 없는 host 가 나오면 vi /etc/hosts 에 10.0.1.8 ve08.localdomain ve08 추가 하면 됨.
혹은
# vi /etc/hostname
ve04
# hostname –F /etc/hostname
# hostname -f
ve08.localdomain # service network restart
# vi /etc/selinux/config
permissive로 수정 (disabled로 하면 cloudstack과 database초기화 시 문제 생김)
# setenforce Permissive
# yum install ntp
# service ntpd start
nfs 설정
(ve09)
# mkdir -p /export/primary
# mkdir -p /export/secondary
# vi /etc/exports 에 /export *(rw,sync,no_root_squash) 추가.
# exportfs –a
(ve09,ve08,ve04)
# vi /etc/sysconfig/nfs (주석 풀기)
# yum install cloud-client (약 30min)
vhd-utl 파일 다운로드
# cd /usr/share/cloudstack-common/scripts/vm/hypervisor/xenserver
# wget http://download.cloud.com.s3.amazonaws.com/tools/vhd-util
# jasypt-1.9.0.jar파일 다운 로드 필요하다는 메시지 뜨면 아래 링크로 다운 받음 /usr/share/cloudstack-common/lib에 다운 받음
http://repo1.maven.org/maven2/org/jasypt/jasypt/1.9.0/jasypt-1.9.0.jar
Mysql user name:cloud [ OK ]
Mysql user password:password [ OK ]
Mysql server ip:localhost [ OK ]
Mysql server port:3306 [ OK ]
Mysql root user name:root [ OK ]
Mysql root user password: [ OK ]
Checking Cloud database files ... [ OK ]
Checking local machine hostname ... [ OK ]
Checking SELinux setup ... [ OK ]
Detected local IP address as 10.0.1.8, will use as cluster management server node IP[ OK ]
Preparing /etc/cloudstack/management/db.properties [ OK ]
Applying /usr/share/cloudstack-management/setup/create-database.sql [ OK ]
Applying /usr/share/cloudstack-management/setup/create-schema.sql [ OK ]
Applying /usr/share/cloudstack-management/setup/create-database-premium.sql [ OK ]
Applying /usr/share/cloudstack-management/setup/create-schema-premium.sql [ OK ]
Applying /usr/share/cloudstack-management/setup/server-setup.sql [ OK ]
Applying /usr/share/cloudstack-management/setup/templates.sql [ OK ]
Applying /usr/share/cloudstack-bridge/setup/cloudbridge_db.sql [ OK ]
Applying /usr/share/cloudstack-bridge/setup/cloudbridge_schema.sql [ OK ]
Applying /usr/share/cloudstack-bridge/setup/cloudbridge_multipart.sql [ OK ]
Applying /usr/share/cloudstack-bridge/setup/cloudbridge_index.sql [ OK ]
Applying /usr/share/cloudstack-bridge/setup/cloudbridge_multipart_alter.sql [ OK ]
Applying /usr/share/cloudstack-bridge/setup/cloudbridge_bucketpolicy.sql [ OK ]
Applying /usr/share/cloudstack-bridge/setup/cloudbridge_policy_alter.sql [ OK ]
Applying /usr/share/cloudstack-bridge/setup/cloudbridge_offering.sql [ OK ]
Applying /usr/share/cloudstack-bridge/setup/cloudbridge_offering_alter.sql [ OK ]
Processing encryption ... [ OK ]
Finalizing setup ... [ OK ]
CloudStack has successfully initialized database, you can check your database configuration in /etc/cloudstack/management/db.properties
# cloudstack-setup-management
# service cloudstack-management restart (다시 시작 시)
# tail -f /usr/share/cloudstack-management/logs/management-server.log (로그 확인)
DEBUG [cloud.server.StatsCollector] (StatsCollector-1:null) HostStatsCollector is running...
DEBUG [cloud.server.StatsCollector] (StatsCollector-2:null) VmStatsCollector is running...
DEBUG [cloud.server.StatsCollector] (StatsCollector-3:null) StorageCollector is running...
(정확히 설치 됨)
Web browser에서 http://150.183.249.94:8008/client 로 접속
User: admin
Password: password
다음 단계를 위한 템플릿 다운
/usr/share/cloudstack-common/scripts/storage/secondary/cloud-install-sys-tmplt -m /mnt/secondary/ -u http://download.cloud.com/templates/4.2/systemvmtemplate-2013-06-12-master-kvm.qcow2.bz2 -h kvm -F
# sudo /usr/lib64/cloud/common/scripts/storage/secondary/cloud-install-sys-tmplt -m /mnt/secondary -u http://download.cloud.com/templates/acton/acton-systemvm-02062012.qcow2.bz2 -h kvm -F
템플릿 다운받은 다음 만약 ms와 분리된 nfs server로 설정할 경우 꼭 umount /mnt/secondary 하고 이 디렉토리 삭제 한다.
Here are the correct links for 4.2.0:
Xenserver : http://download.cloud.com/templates/4.2/systemvmtemplate-2013-07-12-master-xen.vhd.bz2
KVM : http://download.cloud.com/templates/4.2/systemvmtemplate-2013-06-12-master-kvm.qcow2.bz2
VMware : http://download.cloud.com/templates/4.2/systemvmtemplate-4.2-vh7.ova
host 하이퍼바이저 설치(cloud-agent)
KVM Hypervisor Host Installation http://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.1.1/html/Installation_Guide/hypervisor-kvm-install-flow.html
Citrix XenServer? Installation for CloudStack http://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.1.1/html/Installation_Guide/citrix-xenserver-installation.html
VMware vSphere Installation and Configuration http://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.1.1/html/Installation_Guide/vmware-install.html
(ve04, ve09)
note: 4.1버전의 agent는 OS버전과 맞지 않아서 enable되지 않기 때문에 여기서 4.0.2버전 설치
# hostname –f
# yum install ntp
# vi /etc/yum.repos.d/cloudstack.repo
Management Server IP: 10.0.1.8
Zone ID: default //zone 이름
Pod ID: default //pod 이름
Cluster ID: default //cluster 이름
VM creation bridge: cloudbr0 // vm생성할 브릿지 설정