Let's go step by step:
Get the Bundle from here:
2. Configure VMWare
How to start VMware Virtual Network Editor from command line ?
(Configuring the DHCP Server for the NAT network, on a Linux Host)
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:
- Install VMWare
- Configure VMWare
- Install Devstack
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.:
- http://linaxsystems.blogspot.hu/2014/04/how-to-install-vmware-player-in-ubuntu.html
- https://help.ubuntu.com/community/VMware/Player
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.
How to start VMware Virtual Network Editor from command line ?
- Terminal:~$ /usr/lib/vmware/bin/vmware-netcfg
(http://goo.gl/w23kmN)
(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
- https://goo.gl/ppc9qK
- https://goo.gl/vSKvhw
- https://www.virtualbox.org/manual/ch06.html
- https://www.vmware.com/support/ws45/doc/network_select_ip_ws.html
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.
ConfigurationThere 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$
References:
Installing and Configuring OpenStack on a Server
- https://www.linux.com/learn/tutorials/721712-intro-to-openstack-part-two-how-to-install-and-configure-openstack-on-a-server/
- http://docs.openstack.org/developer/devstack/guides/single-machine.html
- https://www.linux.com/learn/docs/720624-introduction-to-openstack-from-zero-to-domination
- https://github.com/openstack-dev/devstack
Comments
Post a Comment