← Back to team overview

openstack team mailing list archive

Re: ESXi documentation..

 

Hello all,

Following are the steps we followed to install and configure Openstack on ESX hypervisor.


1.    Install the OS. We have mentioned the steps for Ubuntu as the OS.\

2.    Setup the network connections and configure apt-get.

3.    Do an update as:

          sudo apt-get update




INSTALL NECESSARY SOFTWARE:


1.    Install python-suds. This software is needed by "nova-compute" service. If not installed, the "nova-compute" service shuts down with the message: "Unable to import suds"

sudo apt-get install python-suds


2.    Install SSH services:
sudo apt-get install openssh-server


3.    Install tomcat.

sudo apt-get install tomcat6
          copy the folder wsdl into /var/lib/tomcat6/webapps. This can be downloaded from http://www.vmware.com/support/developer/vc-sdk/. The wsdl folder is also attached with this mail in case you are unable to download. (Attachments.ZIP)


INSTALL OPENSTACK:


1.    Install openstack glance. Glance is the openstack image service.
sudo apt-get install glance


2.    Openstack people have provided a script to install Openstack. This will install and ask necessary details for configuring the same. The script can be downloaded from: https://raw.github.com/elasticdog/OpenStack-NOVA-Installer-Script/master/nova-install. A copy of this attached with this mail in the Attachments.ZIP file.


3.    Run the script.

a.    sudo chmod 777 nova-install          (Give executable permission to the script)

b.    sudo bash nova-install -t cloud        (Run the script)

The script will ask for various details during the installation period. Following is the sample that we used.



          Cloud Controller host IP address [10.207.230.122]: 127.0.0.1
          S3 host IP address [127.0.0.1]: 127.0.0.1
          RabbitMQ host IP address [127.0.0.1]: 127.0.0.1
          MySQL host IP address [127.0.0.1]: 127.0.0.1

          Desired MySQL root password

          Enter this machine's IP address [10.207.230.122]: 10.207.230.122
          Enter this machine's broadcast address [10.207.231.255]: 10.207.231.255
          Enter this machine's netmask [255.255.252.0]: 255.255.252.0
          Enter this machine's gateway [10.207.228.1]: 10.207.228.1
          Enter this machine's DNS nameserver address [10.201.50.100]: 10.201.50.100

          Network range for ALL projects (normally x.x.x.x/12): 128.88.146.0/24
          Total amount of usable IPs for ALL projects: 255

          User name for the project administrator: admin
          Name for the project: cloud

          Desired network range for the 'cloud' project (normally x.x.x.x/24): 128.88.146.0/24
          How many networks for the 'cloud' project: 1
          How many available IPs per 'cloud' project network: 255

Once these inputs are provided openstack will be installed the machine and cloud is ready for use.



4.    Edit network settings in the file /etc/network/interfaces. This is to ensure we are able to ping the machine from the instances launched through openstack. Ensure that you are including the proper values here. This is just the way we have implemented.

# The loopback network interface
auto lo
iface lo inet loopback
auto eth1
auto eth0
iface eth0 inet static
        address XXXXXXXXXXXXXXX
        netmask XXXXXXXXXXXXXXXX
        broadcast XXXXXXXXXXXXXX
        gateway XXXXXXXXXXXXXXX
        dns-nameservers XXXXXXXXXXXXX



5.    Add the below lines in /etc/nova/nova.conf

--network_manager=nova.network.manager.FlatDHCPManager
--flat_network_dhcp_start=128.88.146.2
--flat_interface=eth0
--network_host=127.0.0.1
--quota_cores=20
--quota_instances=20
--connection_type=vmwareapi
--vmwareapi_host_ip=<ESX hypervisor machine IP>
--vmwareapi_host_username=< ESX hypervisor username>
--vmwareapi_host_password=< ESX hypervisor password>
--vmwareapi_wsdl_loc=http://127.0.0.1:8080/wsdl/vim25/vimService.wsdl
--glance_api_servers=127.0.0.1:9292
--image_service=nova.image.glance.GlanceImageService



6.    Change the /root/creds/novarc file. The entries for EC2_URL, S3_URL and NOVA_URL should be changed from the IP of the machine to 127.0.0.1.


7.    Register an image with glance using the below command:
glance --verbose add name="Ubuntu" is_public=true < /root/Ubuntu11-04-flat.vmdk
          This command will generate the ami id (ami-00000001) which will be used for launching instances.


8.    Generate the keypair using the command:
euca-add-keypair first > openstack.pem ; chmod 600 openstack.pem


Now we have completed setting up Openstack. We can go ahead and launch instances using the command:
          euca-run-instances -k first -t m1.tiny ami-00000001



Thanks.

Please do not print this email unless it is absolutely necessary. 

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. 

www.wipro.com