标签:expec root 平台 ext get 安装完成 写入 网络 etc
systemctl stop firewalld
systemctl disable firewalld
hostnamectl set-hostname controller
设置主机名compute
vim /etc/selinux/config
查看selinux状态
getenforce
mount -o loop 镜像 opt/centos or iaas
[centos]
name=centos
baseurl=file:///opt/centos
gpgcheck=0
enabled=1
[iaas]
name=iaas
baseurl=file:///opt/iaas/iaas-repo
gpgcheck=0
enabled=1
[centos]
name=centos
baseurl=ftp://192.168.31.14/centos
gpgcheck=0
enabled=1
[iaas]
name=iaas
baseurl=ftp://192.168.31.14/iaas/iaas-repo
gpgcheck=0
enabled=1
vi /etc/vsftpd/vsftpd.conf
anon_root=/opt/
yum install iaas-xiandian -y
iaas-pre-host.sh
yum -y install openstack-utils openstack-selinux python-openstackclient
yum update
yum upgrade
iaas-install-mysql.sh
mysql> show variables like ‘%storage_engine%‘;
iaas-install-keystone.sh
source /etc/keystone/admin-openrc.sh
openstack user create --domain demo --password xiandian testuser
openstack role add --project demo(项目名) --user demo(用户名) user(角色名)
openstack role add --project admin --user testuser admin
iaas-install-glance.sh
glance image-create --name "examimage" --disk-format qcow2 --container-format bare --progress < /opt/iaas/images/CentOS_6.5_x86_64_XD.qcow2
openstack image set --tag "lastone" examimage
openstack image show examimage
iaas-install-nova-controller.sh
iaas-install-nova-compute.sh
nova host-describe compute
iaas-install-neutron-controller.sh
iaas-install-neutron-controller-gre.sh
iaas-install-neutron-compute.sh
iaas-install-neutron-compute-gre.sh
neutron net-create ext-net --provider:network_type=gre --provider:segmentation_id=1 --router:external
neutron subnet-create ext-net (自己的内网所在网段)/24 --name ext-subnet --gateway (自己的内网网关)
neutron net-create int-net1 --provider:network_type=gre --provider:segmentation_id=2
neutron subnet-create int-net1 10.0.0.0/24 --name int-subnet1 --gateway 10.0.0.1
neutron net-create int-net2 --provider:network_type=gre --provider:segmentation_id=3
neutron subnet-create int-net2 10.0.1.0/24 --name int-subnet2 --gateway 10.0.1.1
neutron router-create ext-router
neutron router-interface-add ext-router int-subnet1
neutron router-gateway-set ext-router ext-net
neutron subnet-list
neutron subnet-show int-subnet1
iaas-install-dashboard.sh
基于先电的openstack云平台部署(IaaS 平台构建)
标签:expec root 平台 ext get 安装完成 写入 网络 etc
原文地址:https://www.cnblogs.com/D-arling/p/14715860.html