OpenStack Essex on Ubuntu 12.04 for vlan


1. Configure with the following Network Interfaces:

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
        address 172.17.0.1
        netmask 255.255.0.0
        network 172.17.0.0
        broadcast 172.17.255.255
        gateway 172.17.1.254
        # dns-* options are implemented by the resolvconf package, if installed
        dns-nameservers 168.95.1.1
        dns-search test.com

auto eth1
iface eth1 inet static
        address 172.17.0.1
        netmask 255.255.0.0
        network 172.17.0.0
        broadcast 172.17.255.255

auto eth2
iface eth2 inet manual
        up ifconfig eth2 up

2. ifup eth1 && ifup eth2

3. apt-get update && apt-get -y dist-upgrade

4. download OpenStackInstaller

5. ./OStackinstall.sh -F 172.17.0.1/24 -f 10.1.0.0/16 -s 512 -t demo -v kvm

6. cd OpenStackInstaller

7. . demorc or source demorc

8. ./upload_image.sh -a admin -p openstack -t demo -C 172.17.0.1
   
   maybe you can upload other images
   
   8.1. wget http://smoser.brickies.net/ubuntu/ttylinux-uec/ttylinux-uec-amd64-12.1_2.6.35-22_1.tar.gz
   8.2. tar -zxvf ttylinux-uec-amd64-12.1_2.6.35-22_1.tar.gz
   8.3. glance add name="tty-linux-kernel" is_public=true disk_format=aki container_format=aki < ttylinux-uec-amd64-12.1_2.6.35-22_1-vmlinuz
                return id: f6f51824-75fa-4a00-b1c8-185cb6bfbed3

   8.4. glance add name="tty-linux-ramdisk" is_public=true disk_format=ari container_format=ari < ttylinux-uec-amd64-12.1_2.6.35-22_1-loader
                return id: b6d336f5-c62d-4cec-ae46-98ed2f4d727d

   8.5. glance add name="tty-linux" is_public=true disk_format=ami container_format=ami kernel_id=f6f51824-75fa-4a00-b1c8-185cb6bfbed3 ramdisk_id=b6d336f5-c62d-4cec-ae46-98ed2f4d727d < ttylinux-uec-amd64-12.1_2.6.35-22_1.img

9.  Add a keypair to your environment so you can access the guests using keys:
      euca-add-keypair demo > demo.pem
      chmod 0600 demo.pem

10. Set the security group defaults (iptables):
      euca-authorize default -P tcp -p 22 -s 0.0.0.0/0
      euca-authorize default -P tcp -p 80 -s 0.0.0.0/0
      euca-authorize default -P tcp -p 8080 -s 0.0.0.0/0
      euca-authorize default -P icmp -t -1:-1

11. http://172.17.0.1
    username: demo
    password: openstack

12. if you will login vm, follow:
    cd OpenStackInstaller
    ssh -i demo.pem root@vmipaddress




留言

這個網誌中的熱門文章

Json概述以及python對json的相關操作

Docker容器日誌查看與清理

利用 Keepalived 提供 VIP