Installing odoo 9 on vagrant

Step 1 : Place the vagrant file in a folder where you want to create the virtual instance.

Download Vagrant File

Step 2 : Start up vagrant instance.

vagrant up

Step 3 : SSH into the box.

vagrant ssh

Step 4 : Update the system.

sudo apt-get update

Step 5 : Add odoo key

wget -O - | sudo apt-key add -

Step 6 : Add odoo distribution file location on source file

# add "deb ./" at the end of the source.list file and save
sudo nano /etc/apt/sources.list

Step 7 : Install odoo.

sudo apt-get install odoo

Step 8 : Login as postgres user.

sudo su - postgres

Step 9 : Create new postgres user. Give `odoo123` as password. (You can given any password as long as you update it on the openerp-server.conf accordingly.)

createuser odoo -U postgres -dRSP

Step 10 :  Create new database.

createdb odoodb

Step 11: Run the postgres console.


Step 12 : Grant permission to odoo user for odoodb database.


Step 11 : Update openerp-server.conf located at /etc/odoo/openerp-server.conf.

db_host = localhost
db_port = 5432
db_user = odoo
db_password = odoo123

Step 12 : Restart odoo server.

sudo service odoo restart

Now you should open the browser and type in http://localhost:8069/ and should see the odoo default installation screen.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.