---
title: Charmhub | Deploy Canonical Livepatch On-Prem using Charmhub - The Open Operator
  Collection
description: Deploy the latest version of Canonical Livepatch On-Prem on any cloud.
  Canonical Livepatch On-Prem Server
url: https://charmhub.io/canonical-livepatch-server
---

# Canonical Livepatch On-Prem

[Commercial Systems](https://charmhub.io/publisher/commercial-systems "View all packages from Commercial Systems")

* [Commercial Systems](https://charmhub.io/publisher/commercial-systems "View all packages from Commercial Systems")

Platform:

22.04

20.04

18.04

16.04

ops1.x/stable 52

```
juju deploy canonical-livepatch-server --channel ops1.x/stable
```

[Learn to deploy on juju >](https://juju.is/docs/juju/manage-applications)

---

#### Relevant links

* [Homepage](https://ubuntu.com/security/livepatch)
* [Contact](mailto:Canonical Commercial Systems Team <jaas-crew@lists.canonical.com>)

---

#### Contacts

##### Maintainers

+ [Canonical Commercial Systems Team](mailto:jaas-crew@lists.canonical.com)

* [Submit a bug](https://bugs.launchpad.net/livepatch-onprem)

---

Share your thoughts on this charm with the community on discourse.

[Join the discussion](https://discourse.charmhub.io/)

# Canonical Livepatch Server (Machine Charm)

## [Description](https://charmhub.io/canonical-livepatch-server#p-32124-description)

The Livepatch machine charm is the easiest and the recommended way to deploy the Livepatch server. This charm installs and configures the Livepatch server, which serves Livepatch-es and metadata attached to them to the clients. Canonical Livepatch patches high and critical linux kernel vulnerabilities, removing the immediate need to reboot to upgrade the kernel, instead allowing the downtime to be scheduled. It is a part of the Ubuntu Pro offering.

For users who want to deploy an entire Livepatch on-prem server (including its dependencies), it is recommended to use the `machine/stable` channel of the [bundle](https://charmhub.io/canonical-livepatch-onprem?channel=machine/stable) made for this purpose. For more detailed steps on using the bundle, please see the [tutorials](https://ubuntu.com/security/livepatch/docs/livepatch_on_prem/tutorial) on the Livepatch website.

## [Usage](https://charmhub.io/canonical-livepatch-server#p-32124-usage)

The Livepatch server may be deployed using the Juju command line as follows:

```
juju deploy canonical-livepatch-server
```

## [Integrations](https://charmhub.io/canonical-livepatch-server#p-32124-integrations)

### [Database](https://charmhub.io/canonical-livepatch-server#p-32124-database)

Livepatch server requires integration with a PostgreSQL charm via the `database` endpoint. As an example, users can deploy a [PostgreSQL](https://charmhub.io/postgresql) database and integrate it with Livepatch as follows:

```
juju deploy postgresql
juju integrate canonical-livepatch-server:database postgresql:database
```

There is also an endpoint, named `database-legacy`, which can be used with PostgreSQL charm’s legacy endpoint, `db` . But it is strongly recommended that users integrate with the `database` endpoint mentioned earlier.

## [Reverse-proxy](https://charmhub.io/canonical-livepatch-server#p-32124-reverse-proxy)

Livepatch provides an endpoint, named `website`, which can integrated with reverse-proxy/load-balancer services that are meant to gate external access, like [HAProxy](https://charmhub.io/haproxy).

As an example, users can integrate this endpoint by using Juju as follows:

```
juju deploy haproxy
juju integrate canonical-livepatch-server:website haproxy:website
```

## [Documentation](https://charmhub.io/canonical-livepatch-server#p-32124-documentation)

For more detailed instructions on deploying Livepatch server, please see the documentation for this service, available on the [Livepatch website](https://ubuntu.com/security/livepatch/docs).

## [Contributing](https://charmhub.io/canonical-livepatch-server#p-32124-contributing)

Please see the [Juju SDK documentation](https://juju.is/docs/sdk) for more information about developing and improving charms and [Contributing](https://github.com/canonical/livepatch-machine-charm/blob/main/CONTRIBUTING.md) for developer guidance.

## [License](https://charmhub.io/canonical-livepatch-server#p-32124-license)

The Livepatch machine charm is free software, distributed under the Apache Software License, version 2.0. See [License](https://github.com/canonical/livepatch-machine-charm/blob/main/LICENSE) for more details.

---

[Help improve this document in the forum](https://discourse.charmhub.io/t/canonical-livepatch-server-docs-index/14446) ([guidelines](https://discourse.charmhub.io/t/how-to-write-docs-our-documentation-guidelines-for-contributors/1245)). Last updated 2 years ago.
