1 Star 0 Fork 0

aaawoyucheng / cloud-init-guide

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
01-setup.txt 1.54 KB
一键复制 编辑 原始数据 按行查看 历史
Matt Dorn 提交于 2016-04-27 03:43 . initial commit
# SSH into the server provided by the instructor
ssh openstack@<provided_ip>
password: openstack
# Install Ubuntu Cloud Keyring and Repository Manager
sudo apt-get install -y ubuntu-cloud-keyring software-properties-common
# Install Ubuntu Cloud Archive repository for Liberty
sudo add-apt-repository -y cloud-archive:liberty
# Download the latest package index to ensure you get Liberty packages
sudo apt-get update
# Install OpenStack Client
sudo apt-get -y install python-openstackclient
# Create 'myuser' credentials
mkdir ~/credentials
cat >> ~/credentials/myuser<<EOF
export OS_REGION_NAME=RegionOne
export OS_PROJECT_NAME=myproject$MY_NODE_ID # Required for python-openstackclient
export OS_TENANT_NAME=myproject$MY_NODE_ID # Required for python-keystoneclient (deprecated)
export OS_USERNAME=myuser$MY_NODE_ID
export OS_PASSWORD=mypassword
export OS_AUTH_URL=http://$MY_PUBLIC_IP:5000/v2.0
EOF
# Source the myuser credentials
source ~/credentials/myuser
# Verify authentication by ensuring you can receive a token
openstack token issue
# List all images
glance image-list
# List all flavors
nova flavor-list
# Nova list
nova list
# List all available networks
neutron net-list
# Create a network
neutron net-create private
# Create a subnet
neutron subnet-create --name private-subnet private --dns-nameserver 8.8.8.8 192.168.1.0/24
# Create a router
neutron router-create myrouter
# Add private-subnet to the router
neutron router-interface-add myrouter private-subnet
# Set gateway of router to public net
neutron router-gateway-set myrouter public
1
https://gitee.com/aaawoyucheng/cloud-init-guide.git
git@gitee.com:aaawoyucheng/cloud-init-guide.git
aaawoyucheng
cloud-init-guide
cloud-init-guide
master

搜索帮助