jin5011 发表于 2016-1-9 09:09:10

oneStack.sh安装openstack过程

配置网卡,一块bridge 一块hostonly
装ubuntu1204,记得装openssh
启动之后ifconfig -a |grep inet 记下ip
secruCRT登陆
/etc/network/interfaces文件修改,
---------------------------------
  修改/etc/network/interface文件
  
  auto lo  
  iface lo inet loopback  
  
  # The primary network interface  
  auto eth0  
  iface eth0 inet static  
  pre-up ifconfig eth0
  address 192.168.0.50  
  netmask 255.255.255.0
  network 192.168.0.0
  broadcast 192.168.0.255
  gateway 192.168.0.1
  dns-nameservers 202.103.44.150
  
  auto eth1  
  iface eth1 inet static  
  pre-up ifconfig eth1
  address 10.0.0.1  
  netmask 255.255.255.0  
  network 10.0.0.0  
  broadcast 10.0.0.255  
---------------------------------
修改oneStack.sh文件,有3个地方要改
1ip地址部分
2local-gen:en_US:en
3镜像不从wget下载
改好之后上传到ubuntu下
再上传precise-server-cloudimg-amd64-disk1.img文件。注:如果错上传成了ubuntu-12.04-cloudimg-amd64-disk1.img,见最后的补救办法。
运行oneStack.sh
搞定!
 
------------------------------------------------------
文件如果上传错误,镜像没有添加进去,则需要手动添加镜像。方法
重启ubuntu
glance add name="Ubuntu12.04-amd64" is_public=true container_format=ovf disk_format=qcow2 < precise-server-cloudimg-amd64-disk1.img
nova boot --flavor 1 --image "Ubuntu12.04-amd64" --key_name key1 cloud01
 
传好之后
nova show cloud01
nova add-floating-ip cloud01 `nova floating-ip-create | awk 'FNR==4{print $2}'`
nova list
nova show cloud01
看一下是否正常
页: [1]
查看完整版本: oneStack.sh安装openstack过程