‏הצגת רשומות עם תוויות Ubuntu. הצג את כל הרשומות
‏הצגת רשומות עם תוויות Ubuntu. הצג את כל הרשומות

יום שני, 21 באפריל 2014

Installing DevStack in ubuntu server

Installing devstack is very easy by following the Official documentation .
however there is an issue of firewalls preventing git access in order to solve it in the devstack/stackrc file
change from
GIT_BASE=${GIT_BASE:-git://git.openstack.org}
to
GIT_BASE=${GIT_BASE:-https://git.openstack.org}

install by
./stack.sh

In case of error before reinstalling call
./clean.sh

After Installing if the Result is ok :
Horizon is now available at http://192.168.1.21/
Keystone is serving at http://192.168.1.21:5000/v2.0/
Examples on using novaclient command line is in exercise.sh
The default users are: admin and demo
The password: a243a75f003a77249a1b
This is your host ip: 192.168.1.21
stack.sh completed in 1917 seconds.
zvika@zvika-openstack:~/devstack$ 

Note that the machine came to me very loaded in work after installation .

To check the version call:
curl http://192.168.1.21:35357/v2.0/
The result:
{"version": {"status": "stable", "updated": "2014-04-17T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v2.0+json"}, {"base": "application/xml", "type": "application/vnd.openstack.identity-v2.0+xml"}], "id": "v2.0", "links": [{"href": "http://192.168.1.21:35357/v2.0/", "rel": "self"}, {"href": "http://docs.openstack.org/api/openstack-identity-service/2.0/content/", "type": "text/html", "rel": "describedby"}, {"href": "http://docs.openstack.org/api/openstack-identity-service/2.0/identity-dev-guide-2.0.pdf", "type": "application/pdf", "rel": "describedby"}]}}

References:
http://stackoverflow.com/questions/20390267/installing-openstack-errors
http://api.openstack.org/api-ref-guides/bk-api-ref.pdf
http://devstack.org/guides/single-machine.html
http://docs.openstack.org/developer/keystone/api_curl_examples.html
http://devstack.org/


Compiling the Linux Kernel

Before compiling the Linux kernel install ncurses
sudo apt-get install libncurses5-dev
2.change current directory to /usr/src
and Check your current linux kernel version
$ uname -r
3.Get the sources according to your version :
sudo apt-get install <Your version according to the uname command >
4.Set the default user to be the Root
sudo /bin/bash
5.Copy The current configuration to the /usr/src directory
cp /boot/config-<Your current version try ls it> /usr/src/linux/.config
6.Build the Menu config
make menuconfig
7.Load the config that has been copied in stage 5 do not change anything watch explanation of rows by using the ?
8.Compile the Kernel (take along time )
make
9.Compile the modules
make modules
10.Install the modules
make modules_install
11.Install the kernel
make install
12.Reboot the machine
reboot
13.Hop that every think is ok loging and check the new kernel version
$ uname -r

Links and references

http://askubuntu.com/questions/270381/how-do-i-install-ncurses-header-files
http://www.howtogeek.com/howto/ubuntu/how-to-customize-your-ubuntu-kernel/
https://www.kernel.org/pub/linux/kernel/v3.x/
http://www.thegeekstuff.com/2013/06/compile-linux-kernel/