본문 바로가기
OS/linux

centos 7 cloudstack 4.13 설치 방법

by Knowledge Store In Hyunsoft 2019. 9. 22.

reset 
yum -y remove virt-manager libvirt libvirt-python python-virtinst libvirt-client
yum -y remove qemu-kvm qemu-img


yum -y install qemu-kvm qemu-img
yum -y install virt-manager libvirt libvirt-python python-virtinst libvirt-client


#yum groupinstall "Virtualization Hypervisor"
yum groupinstall "Virtualization*"


systemctl stop firewalld
systemctl disable firewalld
systemctl status firewalld


yum install -y wget



setenforce 0
sed -i 's/^SELINUX=enforcing$/SELINUX=permissive/' /etc/selinux/config


1. mysql 설치
yum -y install http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm
yum -y install mysql-server

vi /etc/my.cnf
[mysqld] # add
innodb_rollback_on_timeout=1
innodb_lock_wait_timeout=600
max_connections=350
log-bin=mysql-bin
binlog-format = 'ROW'

systemctl start mysqld

# mysql root 비번 변경
/usr/bin/mysqladmin -u root password 'passwd1234'




2.nfs 설치
mkdir -p /export/primary
mkdir -p /export/secondary

vi /etc/exports

/export  *(rw,async,no_root_squash) 추가

yum -y install nfs-utils nfs-utils-lib
systemctl enable nfs
systemctl restart nfs


확인
showmount -e  127.0.0.1


2. cloud stack 설치

wget http://download.cloud.com.s3.amazonaws.com/tools/vhd-util && chmod 755 vhd-util
mv vhd-util /usr/share/cloudstack-common/scripts/vm/hypervisor/xenserver

#vhd-util 실행 오류시 
yum -y install libuuid.i686



#cloudstack-management

cat <  /etc/yum.repos.d/cloudstack.repo
[cloudstack]
name=cloudstack
#baseurl=http://cloudstack.apt-get.eu/centos/\$releasever/4.13/
baseurl=http://blog.8888stock.com/centos/\$releasever/4.13/
enabled=1
gpgcheck=0
EOF

cat /etc/yum.repos.d/cloudstack.repo




yum -y install cloudstack-management

cloudstack-setup-databases cloud:passwd1234@localhost --deploy-as=root:passwd1234

cloudstack-setup-management






/usr/share/cloudstack-common/scripts/storage/secondary/cloud-install-sys-tmplt -m /export/secondary -u http://download.cloudstack.org/templates/acton/acton-systemvm-02062012.vhd.bz2 -h xenserver -F
/usr/share/cloudstack-common/scripts/storage/secondary/cloud-install-sys-tmplt -m /export/secondary -u http://download.cloudstack.org/templates/acton/acton-systemvm-02062012.qcow2.bz2 -h kvm -F

/usr/share/cloudstack-common/scripts/storage/secondary/cloud-install-sys-tmplt -m /export/secondary -u http://blog.8888stock.com/cloudstack/acton-systemvm-02062012.vhd.bz2 -h xenserver -F
/usr/share/cloudstack-common/scripts/storage/secondary/cloud-install-sys-tmplt -m /export/secondary -u http://blog.8888stock.com/cloudstack/acton-systemvm-02062012.qcow2.bz2 -h kvm -F






#host
yum -y install cloud-agent
systemctl start cloudstack-agent




#gui 모드 전환
yum -y groupinstall "GNOME Desktop" "Graphical Administration Tools"
ln -sf /lib/systemd/system/runlevel5.target /etc/systemd/system/default.target

728x90

댓글