Vous êtes sur la page 1sur 13

11/1/13

Installing OpenStack on Ubuntu 12.04 LTS in 10 Minutes - StackGeek

Installing OpenStack on Ubuntu 12.04 LTS in 10 Minutes


Tue, 01 Oct 2013
Tw eet 0

Tweets
Kord Campbell @kordless My Nexus 5 order just went through. Ships on the 8th! #woot Expand

Follow 8h

by Kord Campbell

NOTICE
This guide is being updated with the new Installing OpenStack Grizzly in 10 Minutes guide. While the guide below mostly works for installing OpenStack Essex, it is strongly suggested you follow the other guide to install the Grizzly version of OpenStack.

Kord Campbell @kordless

31 Oct

Dark weather: m.slashdot.org/story/189473 #precision

Requirements
StackGeek provides these scripts and this guide which will give you a working installation of OpenStack Essex in about 10 minutes. Before you start your OpenStack setup, please read the following requirements carefully: 1. You need a box with at least 8GB of RAM, 4 processing cores, (2) hard drives, and (1-2) ethernet cards. 2. You need a clean install of Ubuntu 12.04.1 LTS 64-bit server on your box. This guide will NOT work with Ubuntu 12.10. 3. A good dubstep track (this is optional). Only the primary ethernet card needs to be connected to the network. If you only have one ethernet card, you can hack the scripts to use the primary interface for your private network.
N o t e :

Tiny Probe @tinyprobe

31 Oct

The Insanity of Log Service Pricing: tinyprobe.com/blog/wacky-log #logs @splunk @logentries @loggly @papertrailapp @sumologic @googlecloud Retweeted by Kord Campbell Expand Kord Campbell @kordless
30 Oct

Stalin's rope roads: theatlantic.com/infocus/2013/0 Show Summary Kord Campbell @kordless


30 Oct

Video Guide

The video guide for this tutorial is on Vimeo.

Forum Discussion
There is now a forum discussion area on Google Groups for posting technical questions regarding the guide.

Download the Setup Scripts


www.stackgeek.com/guides/gettingstarted.html 1/13

11/1/13

Installing OpenStack on Ubuntu 12.04 LTS in 10 Minutes - StackGeek

Login to your box and install g i t with a p t g e t. We'll become root and do an update first.
s u d os u a p t g e tu p d a t e a p t g e ti n s t a l lg i t

Now checkout the StackGeek OpenStack setup scripts from Github: Blog Guides Videos Forums g i tc l o n eg i t : / / g i t h u b . c o m / S t a c k G e e k / o p e n s t a c k g e e k . g i t StackGeek
c do p e n s t a c k g e e k / e s s e x

Join

Install the Base Scripts


Be sure to take a look at the scripts before you run them. Keep in mind the setup scripts will periodically prompt you for input, either for confirming installation of a package, or asking you for information for configuration. Start the installation by running the first script:
. / o p e n s t a c k _ b a s e _ 1 . s h

When the script finishes you'll see instructions for manually configuring your network. You can edit the i n t e r f a c e s file by doing a:
v i m/ e t c / n e t w o r k / i n t e r f a c e s

Copy and paste the network code provided by the script into the file and then edit:
a u t oe t h 0 i f a c ee t h 0i n e ts t a t i c a d d r e s s1 0 . 0 . 1 . 2 0 n e t w o r k1 0 . 0 . 1 . 0 n e t m a s k2 5 5 . 2 5 5 . 2 5 5 . 0 b r o a d c a s t1 0 . 0 . 1 . 2 5 5 g a t e w a y1 0 . 0 . 1 . 1 d n s n a m e s e r v e r s8 . 8 . 8 . 8 a u t oe t h 1

Change the settings for your network configuration and then restart networking and run the next script:
/ e t c / i n i t . d / n e t w o r k i n gr e s t a r t . / o p e n s t a c k _ b a s e _ 2 . s h

After the second script finishes, you'll need to set up a logical volume for Nova to use for creating snapshots and volumes. Nova is OpenStack's compute controller process. Here's the output from the format and volume creation process:
r o o t @ p r e c i s e : / h o m e / k o r d / o p e n s t a c k g e e k #f d i s k/ d e v / s d b D e v i c ec o n t a i n sn e i t h e rav a l i dD O Sp a r t i t i o nt a b l e ,n o rS u n ,S G Io rO S Fd i s k l a b e l B u i l d i n gan e wD O Sd i s k l a b e lw i t hd i s ki d e n t i f i e r0 x b 3 9 f e 7 a f . C h a n g e sw i l lr e m a i ni nm e m o r yo n l y ,u n t i ly o ud e c i d et ow r i t et h e m . A f t e rt h a t ,o fc o u r s e ,t h ep r e v i o u sc o n t e n tw o n ' tb er e c o v e r a b l e . W a r n i n g :i n v a l i df l a g0 x 0 0 0 0o fp a r t i t i o nt a b l e4w i l lb ec o r r e c t e db yw ( r i t e )

www.stackgeek.com/guides/gettingstarted.html

2/13

11/1/13
C o m m a n d( mf o rh e l p ) :n P a r t i t i o nt y p e : p e

Installing OpenStack on Ubuntu 12.04 LTS in 10 Minutes - StackGeek

p r i m a r y( 0p r i m a r y ,0e x t e n d e d ,4f r e e ) e x t e n d e d

S e l e c t( d e f a u l tp ) :p P a r t i t i o nn u m b e r( 1 4 ,d e f a u l t1 ) :1 F i r s ts e c t o r( 2 0 4 8 6 2 9 1 4 5 5 9 ,d e f a u l t2 0 4 8 ) : U s i n gd e f a u l tv a l u e2 0 4 8 L a s ts e c t o r ,+ s e c t o r so r+ s i z e { K , M , G }( 2 0 4 8 6 2 9 1 4 5 5 9 ,d e f a u l t6 2 9 1 4 5 5 9 ) : U s i n gd e f a u l tv a l u e6 2 9 1 4 5 5 9 C o m m a n d( mf o rh e l p ) :w T h ep a r t i t i o nt a b l eh a sb e e na l t e r e d ! C a l l i n gi o c t l ( )t or e r e a dp a r t i t i o nt a b l e . S y n c i n gd i s k s . r o o t @ p r e c i s e : / h o m e / k o r d / o p e n s t a c k g e e k #p v c r e a t ef f/ d e v / s d b 1 P h y s i c a lv o l u m e" / d e v / s d b 1 "s u c c e s s f u l l yc r e a t e d r o o t @ p r e c i s e : / h o m e / k o r d / o p e n s t a c k g e e k #v g c r e a t en o v a v o l u m e s/ d e v / s d b 1 V o l u m eg r o u p" n o v a v o l u m e s "s u c c e s s f u l l yc r e a t e d r o o t @ p r e c i s e : / h o m e / k o r d / o p e n s t a c k g e e k # N o t e :

Your device names may vary.

Installing MySql
The OpenStack components use MySQL for storing state information. Start the install script for MySQL by entering the following:
. / o p e n s t a c k _ m y s q l . s h

You'll be prompted for a password to be used for each of the components to talk to MySQL:
E n t e rap a s s w o r dt ob eu s e df o rt h eO p e n S t a c ks e r v i c e st ot a l kt oM y S Q L( u s e r sn o v a , g l a n c e ,k e y s t o n e ) :f 0 0 b a r

During the installation process you will be prompted for a root password for MySQL. In our install example we use the same password, 'f00bar'. At the end of the MySQL install you'll be prompted for your root password again.
m y s q ls t a r t / r u n n i n g ,p r o c e s s8 7 9 6 # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # C r e a t i n gO p e n S t a c kd a t a b a s e sa n du s e r s . U s ey o u rd a t a b a s ep a s s w o r dw h e np r o m p t e d . R u n' . / o p e n s t a c k _ k e y s t o n e . s h 'w h e nt h es c r i p te x i t s . # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # E n t e rp a s s w o r d :

After MySQL is running, you should be able to login with any of the OpenStack users and/or the root admin account by doing the following:
m y s q lur o o tp f 0 0 b a r m y s q lun o v ap f 0 0 b a rn o v a m y s q luk e y s t o n ep f 0 0 b a rk e y s t o n e m y s q lug l a n c ep f 0 0 b a rg l a n c e

www.stackgeek.com/guides/gettingstarted.html

3/13

11/1/13

Installing OpenStack on Ubuntu 12.04 LTS in 10 Minutes - StackGeek

Installing Keystone
Keystone is OpenStack's identity manager. Start the install of Keystone by doing:
. / o p e n s t a c k _ k e y s t o n e . s h

You'll be prompted for a token, the password you entered for OpenStack's services, and your email address. The email address is used to populate the user's information in the database.
E n t e rat o k e nf o rt h eO p e n S t a c ks e r v i c e st oa u t hw t hk e y s t o n e :r 4 t h 3 r b 3 t 0 k 3 n E n t e rt h ep a s s w o r dy o uu s e df o rt h eM y S Q Lu s e r s( n o v a ,g l a n c e ,k e y s t o n e ) :f 0 0 b a r E n t e rt h ee m a i la d d r e s sf o rs e r v i c ea c c o u n t s( n o v a ,g l a n c e ,k e y s t o n e ) :u s e r @ f o o b a r . c o m

You should be able to query Keystone at this point. You'll need to source the s t a c k r c file before you talk to Keystone:
.. / s t a c k r c k e y s t o n eu s e r l i s t

Keystone should return a list of users:


+ + + + + | i d |e n a b l e d| e m a i l | n a m e | | | + + + + + |b 3 2 b 9 0 1 7 f b 9 5 4 e e e a c b 1 0 b e b f 1 4 a c e b 3|T r u e |b f c b a a 1 4 2 5 a e 4 c d 2 b 8 f f 1 d d c f 9 5 c 9 0 7 a|T r u e |c 1 c a 1 6 0 4 c 3 8 4 4 3 f 2 8 5 6 e 3 8 1 8 c 4 c e b 4 d 4|T r u e |d d 1 8 3 f e 2 d a a c 4 3 6 6 8 2 e 0 5 5 0 d 3 c 3 3 9 d d e|T r u e |k o r d l e s s @ f o o b a r 2 2 2 . c o m|d e m o |k o r d l e s s @ f o o b a r 2 2 2 . c o m|n o v a |k o r d l e s s @ f o o b a r 2 2 2 . c o m|g l a n c e| |k o r d l e s s @ f o o b a r 2 2 2 . c o m|a d m i n |

+ + + + +

Installing Glance
Glance is OpenStack's image manager. Start the install of Glance by doing:
. / o p e n s t a c k _ g l a n c e . s h N o t e :

You can safely ignore the S A D e p r e c a t i o n W a r n i n g warning thrown by Glance when it starts.

The script will download an Ubuntu 12.04 LTS cloud image from StackGeek's S3 bucket. Go grab some coffee while it's downloading. Once it's done, you should be able to get a list of images:
g l a n c ei n d e x

Here's the expected output:


I D F o r m a t S i z e N a m e D i s kF o r m a t C o n t a i n e r

----7 1 b 8 b 5 d 5 a 9 7 2 4 8 b 3 b 9 4 0 9 8 a 7 4 b 8 5 e d 6 aU b u n t u1 2 . 0 4L T S 2 2 6 4 2 6 8 8 0 q c o w 2 o v f

We'll cover adding images via Glance in another guide soon.

Installing Nova
www.stackgeek.com/guides/gettingstarted.html 4/13

11/1/13

Installing OpenStack on Ubuntu 12.04 LTS in 10 Minutes - StackGeek

We're almost done installing! The last component is the most important one as well. Nova is OpenStack's compute and network manager. It's responsible for starting instances, creating snapshots and volumes, and managing the network. Start the Nova install by doing:
. / o p e n s t a c k _ n o v a . s h

A Bit on Networking First


You'll immediately be prompted for a few items, including your existing network interface's IP address, the fixed network address, and the floating pool addresses:
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # T h eI Pa d d r e s sf o re t h 0i sp r o b a b l y1 0 . 0 . 1 . 3 5 .K e e pi nm i n dy o un e e da ne t h 1f o rt h i st ow o r k . # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # E n t e rt h ep r i m a r ye t h e r n e ti n t e r f a c eI P :1 0 . 0 . 1 . 3 5 E n t e rt h ef i x e dn e t w o r k( e g .1 0 . 0 . 2 . 3 2 / 2 7 ) :1 0 . 0 . 2 . 3 2 / 2 7 E n t e rt h ef i x e ds t a r t i n gI P( e g .1 0 . 0 . 2 . 3 3 ) :1 0 . 0 . 2 . 3 3 # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # T h ef l o a t i n gr a n g ec a nb eas u b s e to fy o u rc u r r e n tn e t w o r k . C o n f i g u r ey o u rD H C Ps e r v e r t ob l o c ko u tt h er a n g eb e f o r ey o uc h o o s ei th e r e . A ne x a m p l ew o u l db e1 0 . 0 . 1 . 2 2 4 2 5 5 # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # E n t e rt h ef l o a t i n gn e t w o r k( e g .1 0 . 0 . 1 . 2 2 4 / 2 7 ) :1 0 . 0 . 1 . 2 2 4 / 2 7 E n t e rt h ef l o a t i n gn e t o w r ks i z e( e g .3 2 ) :3 2 N o t e :

The script isn't very sophisticated and doesn't use defaults, so be sure you type in things

carefully! You can rerun the script if you mess up. There's a nice subnet calculator here if you need help with network masks. For reference, the / 2 7 above is called the 'mask bits' in the calculator. The fixed network is a set of IP addresses which will be local to the compute nodes. Think of these addresses as being held and routed internally inside any of the compute node instances. If you decide to use a larger network, you could use something like 1 0 . 0 . 4 . 0 / 2 4 and a starting address of 1 0 . 0 . 4 . 1. The floating network is a pool of addresses which can be assigned to the instances you are running. For example, you could start a web server and map an external IP to it for serving a site on the Internet. In the example above we use a private network because we're doing this at the house, but if your routing equipment/network allows it you could assign externally routed IPs to OpenStack instances.

Finish Installing Nova


Nova should finish installing after you enter all the network information. When it's done, you should be able to get a list of images from Glance via Nova:
n o v ai m a g e l i s t

And get the expected output we saw earlier from Glance:


r o o t @ p r e c i s e : / h o m e / k o r d / o p e n s t a c k g e e k #n o v ai m a g e l i s t + + + + + | I D | N a m e |S t a t u s|S e r v e r| | + + + + + |7 1 b 8 b 5 d 5 a 9 7 2 4 8 b 3 b 9 4 0 9 8 a 7 4 b 8 5 e d 6 a|U b u n t u1 2 . 0 4L T S|A C T I V E| + + + + +

www.stackgeek.com/guides/gettingstarted.html

5/13

11/1/13

Installing OpenStack on Ubuntu 12.04 LTS in 10 Minutes - StackGeek

Installing Horizon
Horizon is the UI and dashboard controller for OpenStack. Install it by doing:
. / o p e n s t a c k _ h o r i z o n . s h

When it's done installing, you'll be given a URL to access the dashboard. You'll be able to login with the user 'admin' and whatever you entered earlier for your password. If you've forgotten it, simply grep for it in your environment:
e n v| g r e pO S _ P A S S W O R D

Start Launching Instances


That's it! You can now watch the introduction video guide which gives an overview of creating a new project, users, and instances. Be sure to drop us a line if you have any questions or corrections for this guide!

151 comments Leave a message...


Best Community Y iling Cao
a year ago

23

Share

the network part is bit confusing, My situation is my eth0 is connected to my LAN and address 192.168.8.10 and eth1 is not connected. what /etc/network/interface i shall set to for eth1 and primary ethernet interface IP? fixed network? starting ip? floating network?
28 gumorf

Reply Share

6 months ago

Hello, After installing nova, I keep getting this error when running nova image-list ERROR: You must provide a username via either --os_username or env[OS_USERNAME]
8
Reply Share

Ramirez K IV

gumorf 2 months ago

Yes, before using a command line you must set the following env variables: OS_USERNAME=user1 OS_TENANT_NAME=CompanyABC OS_AUTH_URL=http://192.168.40.203:35357/v2.0 (point to keystone auth service) OS_AUTH_SYSTEM=?? OS_PASSWORD=secret
Reply Share

OS learner 4

8 months ago

hi.. do you have install guides for OpenStack Grizzly


Reply Share

alfredo alvarado 4

8 months ago

when I try to put the command fdisk / dev / sdb tells me no such file or directory to be
Reply Share

www.stackgeek.com/guides/gettingstarted.html

6/13

11/1/13
A nand K ris hanamoort hy

Installing OpenStack on Ubuntu 12.04 LTS in 10 Minutes - StackGeek


a year ago

Hi, thanks very much for the guide, I'd it setup in real 10 mins. Now on the dashboard, I logged in as Admin and under Instance and Volumes, I created one for 5 GB, its showing as "Creating" under the status for more than an hour. Is this right? Also, am not able to delete it, it shows that I don't have appropriate permission (is it because its in creating state?) Please help. Thanks
2 1
Reply Share

k ordles s

Mod

Anand Krishanamoorthy a year ago

Sounds like it may be an issue with your logical volume. Can you double check that portion of the setup by doing a 'sudo lvdisplay' and see if you have a 'nova-volumes' group?
Reply Share

A nand

kordless 11 months ago

Hi, well I tried it again, but failed in the volume creation section, I've 2 X 1 TB HDD which is on RAID 1. While installing Ubuntu 12.04 x 64, I selected the Guided on the partition section and continued the installation. So the Ubuntu got installed on the entire disk. Is this a problem which am getting while running the command for pvcreate -ff /dev/abc & vgcreate nova-volumes /dev/abc? Here is my fdisk -l output. root@cloud:~# fdisk -l Disk /dev/sda: 999.7 GB, 999653638144 bytes 255 heads, 63 sectors/track, 121534 cylinders, total 1952448512 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000f3ed7 Device Boot Start End Blocks Id System /dev/sda1 * 2048 1935691775 967844864 83 Linux /dev/sda2 1935693822 1952446463 8376321 5 Extended /dev/sda3 1935691776 1935693821 1023 83 Linux /dev/sda5 1935693824 1952446463 8376320 82 Linux swap / Solaris Partition table entries are not in disk order. By mistake I installed the 32 bit version of the server. Will be installing the x64 version over the weekend. Please help me resolve this. Thanks much.
Reply Share

A nand K ris hanamoort hy

kordless a year ago

OMG, when I ran that logical volume command, I get the result as "No Volume Groups found" :( :( :(. My server storage spec are 2 X 1 TB SAS HDD, configured with Raid 1. Below is the list of my fdisk command result root@OpenStack:/home/administrator# fdisk -lDisk /dev/sda: 999.7 GB, 999653638144 bytes255 heads, 63 sectors/track, 121534 cylinders, total 1952448512 sectorsUnits = sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisk identifier: 0x000c0d48 Device Boot Start End Blocks Id System/dev/sda1 * 2048 1935691775 967844864 83 Linux/dev/sda2 1935693822 1952446463 8376321 5 Extended/dev/sda5 1935693824 1952446463 8376320 82 Linux swap / Solaris
Reply Share

k ordles s

Mod

Anand Krishanamoorthy a year ago

Upgraded Discuss so we'll have more nested replies. RAID 1 is mirroring, so you'll only see a single device handle for it (sda). That device handle has been partitioned into one large partition of type 83 (Linux) and one swap partition. You don't have any space to create another partition
www.stackgeek.com/guides/gettingstarted.html 7/13

11/1/13

and one swap partition. You don't have any space to create another partition on the drive to use for the logical volume unit (which would be of type 8e, Linux LVM). Get another drive, or reformat your install to allow for some extra space for the logical volume partition. It doesn't need to be huge, say 50GB or so, depending on your needs. Once you get the partition in there, run the following to create the groups: pvcreate -ff /dev/sdb1 vgcreate nova-volumes /dev/sdb1 Obviously substitute the sdb1 for whatever your empty/open partition is going to be.
Reply Share

Installing OpenStack on Ubuntu 12.04 LTS in 10 Minutes - StackGeek

A nand

kordless a year ago

Hi Kordless, sorry for the late reply, since I din't get any mail for your above reply, I thought you dint see it. Thanks anyways for enlightment on this. Well, as a matter of fact and due to urgency of need of servers, I formatted the server and installed VMWare. I have another tower server and am gonna try on that. The config of that server is: 4 GB RAM and 1 X 250 GB and 1 X 500 GB HDD. Is that good enough for the Open stack? If it works out well, I will put it in a bigger one. And how about the partition command for this type of 2 HDDs I have? Please advice, Thanks in advance.
Reply Share

Avatar

Nivin A braham

a month ago

when i copy fdisk /dev/sdb fdisk: unable to open /dev/sdb: no such file or directory
1 xh
Reply Share

Nivin Abraham 17 days ago


Reply Share

...

Avatar

A bhis hek

5 months ago

hey, when i enter fdisk/dev/sdb it says no such file or directory?? any help would be appreciated
1
Reply Share

Avatar

A aron

8 months ago

Hi, Would you be able to help me with some settings please. I am trying to install this in VMware player to get to grips with everything however I am having issue with the network settings. I have both network adaptors set to NAT and the NAT adaptor address within my windows host is 10.0.1.1 and the IP address of this Ubuntu machine is the set correctly as per the settings given at the end of script one however I can't get out onto the internet from the Ubuntu machine. I am able to ping 10.0.1.1 however I can't even ping googles DNS server for example. My routing table for the Ubuntu VM I am trying to install this on is attached. Any help is greatly appreciated! Many thanks in advance

Reply Share

www.stackgeek.com/guides/gettingstarted.html

8/13

11/1/13
k ordles s
Mod

Installing OpenStack on Ubuntu 12.04 LTS in 10 Minutes - StackGeek


Aaron 8 months ago

Those adapters need to be set to bridged mode.


Reply Share

Avatar

E nB ox 1

9 months ago
Reply Share

Brilliant Tutorial, thanks

Avatar

A mut han A rul

2 months ago

Warring re reading the partition the kernal is still using the odd table invalid argument error 22 will display
Reply Share

Avatar

omk ar

2 months ago

Sir, My horizon interface is not getting started. Please help my horizon id is 10.1.63.75.
Reply Share

Avatar

omk at

3 months ago

sir i want to install hadoop on openstack where i can find its tutorial
Reply Share

Avatar

S ubhrans hu Dwivedi

4 months ago

Its works absolutely well... just one final thing how to get the VNC console working ?
Reply Share

Avatar

Ts hiamo S igwele

5 months ago

I am doing cloud computing research and i have to build a cloud for starters. I have a mac OS imac 8GB RAM and 1TB disk,will it be possible to execute this instruction on ubuntu running on a virtual machine on this mac,,like using paralles or virtual box or vmware...
Reply Share

Avatar

V ik rant

5 months ago

problem in reteriving code with git:// solution is replace git:// by https:// or whatever protocol pass in firewall.
Reply Share

Avatar

Omk ar

6 months ago

Hello sir, I want to put openstack on two machine,one in which i only want mysql and other system i want nova compute.and register both machines.What are the steps to do above setup.
Reply Share

Avatar

TimC

6 months ago
Reply Share

How do I add additional compute nodes ?

Avatar

hail

6 months ago

do we need two ethernet card or is it possible to work with 1 ethernet card. i am i am installing this openstack on my destop pc which have 1 enthernet card and with 2 GB of RAM . will i still be able to run openstack properly? or i need 8 GB of RAM? . actually i have follow all the step and was able
www.stackgeek.com/guides/gettingstarted.html 9/13

11/1/13

to run openstack properly? or i need 8 GB of RAM? . actually i have follow all the step and was able to install the openstak but when i launch instances from the dashboard then end up in 'error' status. could it be problem with my network configurations? Please Help , Thanks in advance
Reply Share

Installing OpenStack on Ubuntu 12.04 LTS in 10 Minutes - StackGeek

Avatar

lewis

7 months ago

it's working but i got this following error when i try to access console mode : WebSock error: [object Event]
Reply Share

Avatar

A rjun

7 months ago

hey loved the whole concept....itz certainly way simpler than any other installation... anywayz m having an error while doing the keystone installation...

sqlalchemy.exc.OperationalError:(OperationalError) (1045, "Access denied for user 'keystone'@'localhost' (using password: YES)") None None keystone stop/waiting keystone start/running, process 16473 Expecting a token provided via either --token or env[SERVICE_TOKEN] so the main point is that like shown in the guide I'm not able to give token,email id or password while doing keystone installation... M I missing something??? :/ Thnx in advance...
Reply Share

Avatar

Rit u S harma

8 months ago

hi there is no swift component...do we need to do it separately ??


Reply Share

Avatar

V ars ha S amt ani

8 months ago

Hi, I m getting the following errors: 1. nbd15 error receive control failed (result - 32) - I am getting this error while spawning the instance. 2. While attaching the volume it just shows the status "attaching" but doesn't get attached. Please help me I am college student working on my project.
Reply Share

Avatar

Rajan

8 months ago
Reply Share

I reran the base_2 script and it seems to have resolved the issue. Thank you

Avatar

Rajan

8 months ago

Hi Kord, I deleted everything besides the basic instal as mentioned above and am now stuck at creating the key for ssh. I am stuck at the access and security point. The moment I click on access and security, my browser just starts spinning and but I can not get to the Access & Security page. Using this video http://vimeo.com/41807514 , (2:32) Nova compute logs show 2013-03-09 16:34:55 TRACE nova.rpc.common return TCPTransport(host, connect_timeout)
www.stackgeek.com/guides/gettingstarted.html 10/13

11/1/13

Installing OpenStack on Ubuntu 12.04 LTS in 10 Minutes - StackGeek

2013-03-09 16:34:55 TRACE nova.rpc.common File "/usr/lib/python2.7/distpackages/amqplib/client_0_8/transport.py", line 85, in __init__ 2013-03-09 16:34:55 TRACE nova.rpc.common raise socket.error, msg 2013-03-09 16:34:55 TRACE nova.rpc.common error: [Errno 111] ECONNREFUSED 2013-03-09 16:34:55 TRACE nova.rpc.common 2013-03-09 16:35:25 INFO nova.rpc.common [-] Reconnecting to AMQP server on 192.168.1.132:5672
Reply Share

k ordles s

Mod

Rajan 8 months ago

Looks like RabbitMQ isn't running. Can you share your nova configs in /etc/nova/ and a dump of 'ipconfig -a'?
Reply Share

Avatar

Rajan

8 months ago

Hi Kordless. Great guide. Thank you. I was able to set it up with ease. Now I am stuck at creating and launching a VM. How long does it take? root@ubuntu:~/openstackgeek/essex# nova flavor-list +----+-----------+-----------+------+-----------+------+-------+-------------+ | ID | Name | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | +----+-----------+-----------+------+-----------+------+-------+-------------+ | 1 | m1.tiny | 512 | 0 | 0 | | 1 | 1.0 | | 2 | m1.small | 2048 | 10 | 20 | | 1 | 1.0 | | 3 | m1.medium | 4096 | 10 | 40 | | 2 | 1.0 | | 4 | m1.large | 8192 | 10 | 80 | | 4 | 1.0 | | 5 | m1.xlarge | 16384 | 10 | 160 | | 8 | 1.0 |
see more
Reply Share

k ordles s

Mod

Rajan 8 months ago

I don't see the point of including the ERROR lines. Can you explain? The nova logs in /var/log/nova will give some idea of what is going on with the instance launch. I don't use the command line a ton, but perhaps the Horizon GUI has a bit of info for you.
Reply Share

Avatar

Gues t

8 months ago

an image of what I get


Reply Share

Avatar

NubieS t unk ie

9 months ago

Thanks Kordless. I had to go with your approach and a few ones on Ubuntu and Openstack to successfully get mine up and running. Thanks for the great article.
Reply Share

Avatar

vams i k ris hna rac ha

9 months ago

Thanks for awesome tutorial...I've got it working.


Reply Share www.stackgeek.com/guides/gettingstarted.html

11/13

11/1/13
Reply Share

Installing OpenStack on Ubuntu 12.04 LTS in 10 Minutes - StackGeek

Avatar

S hiv S ingh

9 months ago

hey can please provide us latest version tutorial of folsom


Reply Share

k ordles s

Mod

Shiv Singh 9 months ago

We've got a guide up here for it: http://www.stackgeek.com/blog/... I'm also working on new scripts for it. Wrestling with Quantum stuff currently, but close to being done.
Reply Share

Avatar

S hiv S ingh

9 months ago

thank so mutch . i have done so easely :) <3 You .


Reply Share

k ordles s

Mod

Shiv Singh 9 months ago

Best comment ever. The geek <3 you too!


Reply Share

Avatar

Jos h

9 months ago
Reply Share

Broken does not work followed 100%.

k ordles s

Mod

Josh 9 months ago

Obviously it would be helpful to post what is broken with it so others could benefit. What exactly isn't working? Again, I've tested these scripts on a fresh install of Ubuntu 12.04LTS. You have to have 2 NICs at eth0 and eth1 and 2 hard drives sitting at /dev/sda and /dev/sdb.
Reply Share

Avatar

is t iqlalrez a

10 months ago

hi, thanks for the tutorial it was great. but, seems im having a bit trouble. i can't launch images. when i type "glance index", the output is this : failed to show index. got error : you are not authenticated. Details : 401 Unauthorized. what's wrong? thanks
Reply Share

Avatar

A CNA N

10 months ago

Hi I thanks you for article. I want ask to a question. this my problem at the introduction video guide , this video associate p , I take error .Error as follows : Error: Error associating Floating IP: No fixed ips associated to instance (HTTP 400) Please , help me :(
Reply Share

Avatar

k ris hnan venk u

11 months ago

Hello, I came across your site via Google Search. I feel this is one of the best Step-by-Step by guide to install OpenStack for any beginners.
www.stackgeek.com/guides/gettingstarted.html

I request you to continue posts similar to this.

12/13

11/1/13

I request you to continue posts similar to this. I wish to add a point to this post.

Installing OpenStack on Ubuntu 12.04 LTS in 10 Minutes - StackGeek

Openstack components connects to mysql database. They require the following package in Ubuntu 12.04 LTS python-mysqldb Keep Posting and rocking !!! Srikrishnan
Reply Share

Avatar

k anat amrenov

11 months ago

what about openstack swift?


Reply Share

Avatar

W alt Corey

11 months ago

Kordless, Something I've been trying to resolve since forever. I am not necessarily asking you for a disertation on this but it is clearly something I have trouble getting my head around. My network is 192.168.0.0 where the router is 0.1. Back when I was using Eucalyptus during install you could carve out a range, i.e. 192.168.0.150-192.168.0.200 for the public address range from what a publicly visible ip address would be assigned. This worked great. Early on I asked Vish this question and he said (and this will be dated) that facility did not exist I have two machines available. Machine 1 (controller/compute) eth0 192.168.0.0 and eth1 10.10.0.1) Machine 2 (compute only) eth0 10.10.0.2, eth1 192.168.0.0. No assigned addresses out of the 192.168 subnet get assigned to bare metal passed 0.20. I am trying to get my head around what the OpenStack facsimile of this would be. If you don't mind the time to answer I would appreciate it or, in the absence, if you would point me to a discussion of this I'd appreciate that as well. I am having a hard time understanding why a vm guest wouldn't want public accessibility, either outbound and/or inbound. Inter-subnet all instances can communicate with each other via their 'native' address, i.e. 10.10.0.? but to another subnet or the outside would wouldn't they need, in this case, a 192,169 subnet address? Thanks, Walt
Reply Share

Avatar

Zdenek P iz l

11 months ago

These scripts are realy awesomel. Are you planning to update or rewrite them to support Folsom release with i.e. Quantum/OpenSwitch stuff? Thank you, .zp.
Reply Share

Content
Blog Guides Videos

Community
Join About Our Team Terms of Use

Help
Features and Bugs Contact Us Forums

Follow

Fork

2012 StackGeek, Inc. All Rights Reserved.

www.stackgeek.com/guides/gettingstarted.html

13/13

Vous aimerez peut-être aussi