Skip to Content

How to Install Odoo 19 on Windows with WSL 2

Run Odoo 19 on Ubuntu 24.04 inside Windows using WSL 2: the same setup as a Linux production server.
November 21, 2026 by

Install Odoo 19 on Windows with WSL 2

Odoo is an open-source business suite with apps for sales, invoicing, inventory, CRM and more. If you work on Windows but want the same Linux setup you will use in production, the Windows Subsystem for Linux (WSL 2) is the best of both worlds: a real Ubuntu system running inside Windows. In this tutorial we will install Odoo 19 on Ubuntu 24.04 in WSL 2, which is ideal for developers and for testing before going live.

Prerequisites

  • Windows 10 (version 2004 or later) or Windows 11, 64-bit
  • At least 8 GB of RAM
  • Virtualization enabled in BIOS/UEFI
  • Administrator rights

Conventions

# – run the command with root privileges, either as the root user or with sudo
$ – run the command as a regular (non-root) user

Step 1. Install WSL 2 and Ubuntu 24.04

Open PowerShell as Administrator and run:

PS> wsl --install -d Ubuntu-24.04

Restart Windows if asked. Ubuntu opens and asks you to create a Linux username and password. Then check that it runs on WSL 2:

PS> wsl -l -v
  NAME            STATE           VERSION
* Ubuntu-24.04    Running         2

Step 2. Check That Systemd Is Enabled

New WSL installations enable systemd by default. In the Ubuntu terminal, check:

$ cat /etc/wsl.conf
[boot]
systemd=true

If the lines are missing, add them with sudo nano /etc/wsl.conf, then run wsl --shutdown in PowerShell and open Ubuntu again.

Step 3. Install Dependencies and PostgreSQL

$ sudo apt update && sudo apt upgrade -y
$ sudo apt install git wget build-essential python3-dev python3-venv python3-pip python3-wheel \
    libxml2-dev libxslt1-dev libzip-dev libldap2-dev libsasl2-dev libpq-dev libssl-dev libffi-dev \
    libjpeg-dev zlib1g-dev libfreetype6-dev libtiff-dev libopenjp2-7-dev liblcms2-dev libwebp-dev \
    fonts-dejavu-core -y
$ sudo apt install postgresql -y
$ sudo useradd -m -d /opt/odoo19 -U -r -s /bin/bash odoo19
$ sudo su - postgres -c "createuser -s odoo19"

Step 4. Install Wkhtmltopdf

$ cd /tmp
$ wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6.1-2/wkhtmltox_0.12.6.1-2.jammy_amd64.deb
$ sudo apt install ./wkhtmltox_0.12.6.1-2.jammy_amd64.deb -y

Step 5. Install Odoo 19

Switch to the odoo19 user and download the Odoo 19 source code from GitHub:

$ sudo su - odoo19
$ git clone https://github.com/odoo/odoo --depth 1 --branch 19.0 /opt/odoo19/odoo19

Create a Python virtual environment, so Odoo's packages do not conflict with system packages, and activate it:

$ python3 -m venv /opt/odoo19/odoo19-venv
$ source /opt/odoo19/odoo19-venv/bin/activate

Install the required Python packages:

(odoo19-venv) $ pip install --upgrade pip wheel
(odoo19-venv) $ pip install -r /opt/odoo19/odoo19/requirements.txt

This takes a few minutes. When it finishes, deactivate the environment, create a folder for custom modules and return to your sudo user:

(odoo19-venv) $ deactivate
$ mkdir /opt/odoo19/custom-addons
$ exit

If you have an Odoo Enterprise subscription, clone the odoo/enterprise repository (branch 19.0) into /opt/odoo19/enterprise and add that path first in addons_path in the next step.

Step 6. Create the Configuration File and Service

Create a log folder and the Odoo configuration file:

$ sudo mkdir -p /var/log/odoo19
$ sudo chown odoo19: /var/log/odoo19
$ sudo nano /etc/odoo19.conf

Paste the following content. Replace STRONG_MASTER_PASSWORD with a long random password; it protects the database manager.

[options]
admin_passwd = STRONG_MASTER_PASSWORD
db_host = False
db_port = False
db_user = odoo19
db_password = False
addons_path = /opt/odoo19/odoo19/addons,/opt/odoo19/custom-addons
http_port = 8069
gevent_port = 8072
proxy_mode = True
logfile = /var/log/odoo19/odoo19.log
workers = 2
max_cron_threads = 1

Save the file, then make sure only the odoo19 user can read it:

$ sudo chown odoo19: /etc/odoo19.conf
$ sudo chmod 640 /etc/odoo19.conf

As a rule of thumb, set workers to (number of CPU cores x 2) + 1. On a small test server you can use workers = 0.

To start Odoo automatically at boot, create a systemd unit file:

$ sudo nano /etc/systemd/system/odoo19.service

Paste the following lines:

[Unit]
Description=Odoo 19
Requires=postgresql.service
After=network.target postgresql.service

[Service]
Type=simple
SyslogIdentifier=odoo19
User=odoo19
Group=odoo19
ExecStart=/opt/odoo19/odoo19-venv/bin/python3 /opt/odoo19/odoo19/odoo-bin -c /etc/odoo19.conf
StandardOutput=journal+console
Restart=on-failure

[Install]
WantedBy=multi-user.target

Reload systemd, then start and enable the service:

$ sudo systemctl daemon-reload
$ sudo systemctl enable --now odoo19

Check that it is running:

$ sudo systemctl status odoo19

You should see output similar to this:

● odoo19.service - Odoo 19
     Loaded: loaded (/etc/systemd/system/odoo19.service; enabled; preset: enabled)
     Active: active (running) since Sat 2026-11-21 10:15:02 UTC; 6s ago
   Main PID: 41213 (python3)
     CGroup: /system.slice/odoo19.service
             └─41213 /opt/odoo19/odoo19-venv/bin/python3 /opt/odoo19/odoo19/odoo-bin -c /etc/odoo19.conf

Odoo now listens on port 8069. You can test it at http://YOUR_SERVER_IP:8069, where you will see the database creation screen. Fill in the master password from the config file, a database name, your admin email and password, language and country, then click Create database.

Step 7. Open Odoo in Your Windows Browser

WSL forwards ports to Windows automatically. Open http://localhost:8069 in Chrome or Edge on Windows and create your database.

To edit custom modules with Visual Studio Code on Windows, install the WSL extension and open the folder /opt/odoo19/custom-addons from the Ubuntu terminal.

Conclusion

Congratulations! You have successfully installed Odoo 19. Open your browser, create your first database and start installing the apps your business needs. For more options, check the official Odoo documentation, or see our Odoo 19 installation guide for every platform.

Of course, you don't have to install Odoo 19 yourself. As a CloudPk client you can ask our Odoo team to install, configure, host and maintain Odoo for you, on our fully managed SaaS or on your own server. Book a free consultation, or message us on WhatsApp +92 302 0600001, and we will take care of it.

PS. If this guide helped you, please share it with your friends on social networks, or ask a question in our Odoo Help Forum. Want to learn more? Take our free course Install and Administer Odoo 19.

How to Install Odoo 19 on Fedora 42
Install Odoo 19 Community on Fedora 42 from the official Odoo RPM repository, with PostgreSQL and wkhtmltopdf.