Skip to main content

Installing and configuring VMWare to run Devstack on Ubuntu 14.04

Let's go step by step:

  1. Install VMWare
  2. Configure VMWare
  3. Install Devstack
1. Installing VMware-Player-6.0.2-1744117.i386.bundle on Ubuntu 14.04

Get the Bundle from here:
  • Download VMware Player in your home folder. You'll have to register before downloading (or search for some alternate download link).  Note: if you're using Google Chrome, the downloaded file will have ".txt" extension - rename the extension to ".bundle".
     
  • Now let's install the required dependencies and run the downloaded VMware .bundle file:
  •  Terminal:~$    sudo apt-get install build-essential linux-headers-`uname -r`

    32 Bit:
  • chmod +x VMware-Player-6.0.2-1744117.i386.bundle
  • sudo ./VMware-Player-6.0.2-1744117.i386.bundle

    64 Bit:
  • chmod +x VMware-Player-6.0.2-1744117.x86_64.bundle
  • sudo ./VMware-Player-6.0.2-1744117.x86_64.bundle
  • The filename in the commands above may be different, depending on the VMware version you've downloaded (at the time I'm writing this post, version 4.0.3 is the latest).
  • At this point, a window will pop-up - click "Next", etc.:
References

2. Configure VMWare

  • Configure VMware so that the Virtual Machine will get a static IP address from the Virtual DHCP server and can have access to Host Machine's internet connectivity.
  • if you have virtual machines that you intend to use frequently or for extended periods of time, it is more convenient to assign static IP addresses or configure the virtual DHCP server to always assign the same IP address to each of these virtual machines. For temporary virtual machines, let the virtual DHCP allocate IP addresses.
Read More on Assigning IP Addresses in Host-Only Networks and NAT Configurations: 

How to start VMware Virtual Network Editor from command line ?

Selecting IP Addresses on a Host-Only Network or NAT Configuration
          (Configuring the DHCP Server for the NAT network, on a Linux Host)
  • On a Linux host, you configure the host-only DHCP server by editing the DHCP configuration file for VMnet1 (/etc/vmware/vmnet1/dhcp/dhcp.conf). To configure the DHCP server for the NAT network, edit the configuration file for VMnet8 (/etc/vmware/vmnet8/dhcp/dhcp.conf).
  • Editing the DHCP server configuration file requires information that is best obtained directly from the DHCP server documentation. Consult the manual pages dhcpd(8) and dhcpd.conf(8).

    /etc/vmware/vmnet8/dhcp/dhcp.conf 
References:

3. Installing Devstack


It is suggested to assign a minimum of 1.5GB RAM and 6GB storage to run an OpenStack server in a virtual machine :)

Few quick Steps:
  • Creating a user named stack to use for installing DevStack:

    $ sudo useradd stack
    $ sudo passwd stack
    Enter new UNIX password:
    Retype new UNIX password:
    Then give stack full sudo privileges:
  • $ sudo visudo
    stack ALL=(ALL:ALL) NOPASSWD: ALL
    Now logout, and then log back in as stack. If you don't have git then install it:
  • $ sudo apt-get install git -y
    Then pull OpenStack from Github. This copies it into the current directory, so I cd to /var and then run git:
  • $ git clone git://github.com/openstack-dev/devstack.git
    This puts everything in /var/devstack. cd to devstack, and take a few minutes to look in the various scripts and files.

    $ sudo chown -R stack:stack /opt/stack
    $ sudo chown -R stack:stack /var/devstack
    It is good to have logging, so create /var/stacklog, and make it owned by stack.

    Configuration
    There is a need to create /var/devstack/localrc.
    localrc always goes in with DevStack root, and it configures networking, passwords, logging, and several other items.
  • Below is a minimal configuration:
    HOST_IP=192.168.80.10 FLAT_INTERFACE=eth0
    FLOATING_RANGE=10.11.12.0/24
    ADMIN_PASSWORD=geekgeek
    MYSQL_PASSWORD=geekgeek
    RABBIT_PASSWORD=geekgeek
    SERVICE_PASSWORD=geekgeek
    SERVICE_TOKEN=geekgeek

    ========================--------------------------------------------------------------------DevStack Components Timed ========================--------------------------------------------------------------------pip_install - 1448 secs apt-get - 1228 secs This is your host IP address: 192.168.80.10 This is your host IPv6 address: ::1 2015-10-22 20:45:39.975 | set lvm.conf device global_filter to: global_filter = [ "a|loop0|", "a|loop1|", "r|.*|" ] # from devstack Horizon is now available at http://192.168.80.10/dashboard Keystone is serving at http://192.168.80.10:5000/ The default users are: admin and demo The password: geekgeek 2015-10-22 20:45:40.065 | stack.sh completed in 4992 seconds.
  • stack@ubuntu:~/devstack$

Comments

Popular posts from this blog

Hands-on 'Gephi'

Compiling and Analyzing Network Data using a Sample Infrastructure Network . Tool Used: Gephi   Dataset Used: GML (Power Grid): An undirected, unweighted network representing the topology of the Western States Power Grid of the United States. Citation: D. J. Watts and S. H. Strogatz, Nature 393, 440-442 (1998). Original Source: http://cdg.columbia.edu/cdg/datasets Gephi Source:   https://github.com/gephi/gephi/wiki/Datasets Basic Description: ? nodes ? edges Undirected Static Unweighted Summary: An undirected, unweighted network representing the topology of the Western States Power Grid of the United States. Data compiled by D. Watts and S. Strogatz. Name     N              E            Directed      Description power    4941       6594     False              Power grid: An undirected, unweighted network representing the topology of the Western States Power Grid of the United States. Data compiled by D. Watts and S. Strogatz and made availab

The NetLego Experiment

Model Taken for Experiment: Virus on a Network ( NetLogo Models Library : Sample Models/Networks) Stonedahl, F. and Wilensky, U. (2008).  NetLogo Virus on a Network model.  http://ccl.northwestern.edu/netlogo/models/VirusonaNetwork.  Center for Connected Learning and Computer-Based Modeling, Northwestern University, Evanston, IL. §   Tool Used:  NetLogo 5.2.1 (NetLego: * Wilensky, U. (1999). NetLogo. http://ccl.northwestern.edu/netlogo/. Center for Connected Learning and Computer-Based Modeling, Northwestern University, Evanston, IL.) Brief Description About The Model: This model demonstrates the spread of a virus through a network.  Although the model is somewhat abstract, one interpretation is that each node represents a computer, and we are modeling the progress of a computer virus (or worm) through this network.  Each node may be in one of three states:  susceptible, infected, or resistant.  In the academic literature such a model is sometimes referred to as an SIR