• Logo
    Landscape
  • ubuntu.com/landscape
  • More resources
    • Discourse
    • GitHub
Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
Landscape documentation
Landscape documentation
  • Landscape Documentation
  • What is Landscape?
  • Tutorial
  • How-to guides
    • Landscape installation and set-up
      • Cloud Providers
        • Install on Google Cloud
        • Install on Microsoft Azure
        • Set up Ubuntu Amazon WorkSpaces
      • Quickstart installation
      • Manual installation
      • Juju installation
      • Juju HA installation
      • Install in a LXD container
      • Install on FIPS-compliant machines
      • Install Landscape Client
      • Configure Landscape Client
      • Configure RabbitMQ
      • Configure Postfix
    • Upgrade
      • Upgrade Landscape
      • Upgrade to Landscape 24.04 LTS
    • Backup and Maintenance
      • Backup and restore
      • Manage maintenance tasks
    • Ubuntu Pro
      • Attach Ubuntu Pro
      • Enable Landscape
    • External authentication
      • Active Directory
      • OIDC
      • PAM
    • Repository mirrors
      • Manage repositories in the web portal
      • Manage repositories with the API
      • Create tiered-repository mirrors
    • Web portal
      • Web portal (24.04 or later)
        • How to manage administrators and roles
        • How to manage access groups
        • How to use annotations
        • How to manage Livepatch and kernel updates from the Landscape web portal
        • How to sanitize instances
        • How to use reboot profiles
        • How to use script profiles
        • How to use security profiles
      • Classic web portal
        • How to manage administrators and roles
        • How to manage access groups
        • How to manage computers
        • How to manage packages
        • How to manage snaps
        • Other tasks in the Landscape web portal
    • IoT for devices
      • Install the snap
      • Configure the snap
      • Create an Ubuntu Core image that includes the snap
      • Use remote script execution
      • Use annotations
    • WSL integration
      • Configure Landscape Beta
      • Set up an environment
      • Register WSL hosts
      • Manage WSL instances
      • Use a specific image source
      • Perform common tasks
      • Get support
    • Security
      • Install in an air-gapped environment
      • Manage repositories in an air-gapped environment
      • Harden your deployment
      • Apply security updates
    • API
      • Make a REST API request
      • Use the legacy API
      • Use the legacy API command-line client
      • Use the legacy API via HTTPS requests
      • Use the legacy API Python module
  • Reference
    • API
      • Rest API endpoints
        • Activities
        • Administrators
        • Alerts
        • Beta-only
        • Computers
        • Credentials
        • GPG Key
        • Invitations
        • Livepatch
        • Login
        • Packages
        • Password
        • Person
        • Processes
        • Reboot Profiles
        • Script Profiles
        • Scripts
        • Security Profiles
        • Snaps
        • Switch Account
        • Users
        • WSL
      • Legacy API endpoints
        • Activities
        • Administrators
        • Alerts
        • Computers
        • Event Log
        • GPG
        • Package Profiles
        • Packages
        • Removal Profiles
        • Reporting
        • Repositories
        • Role Based Access Control
        • Saved Searches
        • Scripts
        • Upgrade Profiles
        • WSL
    • Release notes
      • What’s new in beta
      • 24.04 LTS release notes
      • 25.04 release notes
      • 24.10 release notes
      • 23.10 release notes
      • 23.03 release notes
      • Older release notes
        • 19.10 release notes
        • 19.01 release notes
        • 18.03 release notes
        • 17.03 release notes
        • 16.06 release notes
        • 16.03 release notes
        • 15.11 release notes
        • 15.10 release notes
        • 15.01 release notes
        • 14.10 release notes
    • Logs
      • Logs
    • Networking
      • Network firewall
    • Terms
      • Access groups
      • Administrators
      • Alerts
      • Architecture
      • Components
      • Distribution
      • Package
      • Pocket
      • PPA
      • Repositories
      • Roles
      • Scripts
      • Series
      • SSL certificates
      • Suite
      • Tags
      • Profiles
        • Package profile
        • Removal profile
        • Upgrade profile
  • Explanation
    • Landscape
      • About Landscape
      • Deployment models
      • Self-hosted Landscape
      • Licenses
    • Security
      • Security overview
      • Cryptographic technology
      • Disclosure and reporting
      • Data handling
      • AppArmor
    • Repositories
      • Repository mirroring
  • Contribute to our documentation
Back to top
View this page

How to configure WSL-related services after upgrading Landscape¶

Note

This guide is only for those who’ve upgraded from Landscape 23.10 or earlier.

This guide describes how to configure an upgraded Landscape beta version to enable WSL-related services. This applies to users upgrading from an existing beta version or stable version. If this is your first time installing Landscape Beta, you don’t need to perform these steps.

Update the service.conf file¶

Open the service.conf file located in the /etc/landscape directory and add the following lines:

[broker]
hostagent_virtual_host = landscape-hostagent
hostagent_task_queue = landscape-server-hostagent-task-queue

[grpc]
grpc.max_connection_age_ms = 2592000000  # 30 days

[hostagent-message-consumer]
threads = 1
stores = main account-1

Update your Apache config¶

Open your Apache config (commonly located in /etc/apache2/sites-available/{hostname}.conf) and add the following lines at the end:

Listen 6554

<VirtualHost *:6554>
  ServerName ${hostname}
  ServerAdmin webmaster@${hostname}

  ErrorLog /var/log/apache2/landscape_error.log
  CustomLog /var/log/apache2/landscape_access.log combined

  SSLEngine On
  SSLCertificateFile ${ssl_certificate_crt}
  SSLCertificateKeyFile ${ssl_certificate_key}
  # Disable to avoid POODLE attack
  SSLProtocol all -SSLv3 -SSLv2 -TLSv1
  SSLHonorCipherOrder On
  SSLCompression Off
  SSLCipherSuite EECDH+AESGCM+AES128:EDH+AESGCM+AES128:EECDH+AES128:EDH+AES128:ECDH+AESGCM+AES128:aRSA+AESGCM+AES128:ECDH+AES128:DH+AES128:aRSA+AES128:EECDH+AESGCM:EDH+AESGCM:EECDH:EDH:ECDH+AESGCM:aRSA+AESGCM:ECDH:DH:aRSA:HIGH:!MEDIUM:!aNULL:!NULL:!LOW:!3DES:!DSS:!EXP:!PSK:!SRP:!CAMELLIA:!DHE-RSA-AES128-SHA:!DHE-RSA-AES256-SHA:!aECDH
  # If you have either an SSLCertificateChainFile or, a self-signed CA signed certificate
  # uncomment the line below.
  # Note: Some versions of Apache will not accept the SSLCertificateChainFile
  # directive. Try using SSLCACertificateFile instead
  # SSLCertificateChainFile /etc/ssl/certs/landscape_server_ca.crt
 
  ProxyPass / h2c://localhost:50051/
  ProxyPassReverse / http://localhost:50051/
</VirtualHost>

Then enable proxy_http2:

sudo a2enmod proxy_http2

You can see a full Apache config example with details in our how to configure the web server guide.

Add a virtual host to RabbitMQ¶

Add a new virtual host to RabbitMQ using the following commands:

sudo rabbitmqctl add_vhost landscape-hostagent
sudo rabbitmqctl set_permissions -p landscape-hostagent landscape ".*" ".*" ".*"

The ".*" characters in the set_permissions command are regular expressions that match any character. They grant all permissions (configure, write, read) on all resources (exchanges, queues, bindings, etc.) to the landscape user for the landscape-hostagent virtual host.

Restart the services¶

Restart the Landscape services:

sudo service landscape-hostagent-messenger restart
sudo service landscape-hostagent-consumer restart

Done! Now you’re ready to use WSL with Landscape. If you want instructions on setting up your environment, see How to set up a Windows 11 environment to use WSL with Landscape. If you already have a Windows machine set up with WSL and Ubuntu, see How to set up Ubuntu Pro for WSL and register WSL hosts to Landscape.

Copyright © 2025 CC-BY-SA, Canonical Ltd.
Last updated on Apr 23, 2025
Show source
Thanks to the 2 contributors!
  • Yanisa Haley Scherber
  • YanisaHS
Ask a question on Discourse
Open a GitHub issue for this page
Edit this page on GitHub
Contents
  • How to configure WSL-related services after upgrading Landscape
    • Update the service.conf file
    • Update your Apache config
    • Add a virtual host to RabbitMQ
    • Restart the services