xen-orchestra/docs/updater.md

126 lines
4.0 KiB
Markdown
Raw Normal View History

2015-11-12 07:35:16 -06:00
# Updater
The updater is the central piece that keeps your XO Appliance running the latest Xen Orchestra code.
2015-11-12 08:03:28 -06:00
It also allows you to change your current version into another (Trial, Starter, Enterprise or Premium) **without downloading a new XOA**.
2015-11-12 08:03:28 -06:00
> By design, the updater is only available in XOA. If you are using XO from the sources, you'll have to use `git` commands and rebuild to keep up.
2015-11-12 09:29:07 -06:00
## Requirements
2015-11-12 08:03:28 -06:00
In order to work, the updater needs access to `xen-orchestra.com` (port 443).
2015-11-12 08:03:28 -06:00
## Usage
The updater is configurable directly from the web interface, or via the CLI.
2015-11-12 08:03:28 -06:00
### From the web interface
2016-08-02 03:19:16 -05:00
The updater is available in the "Update" menu:
2015-11-12 08:03:28 -06:00
2016-08-02 03:19:16 -05:00
![](./assets/xo5updatemenu.png)
2015-11-12 08:03:28 -06:00
You can see the yellow bell icon: it means your appliance is not registered. You **must register in order to have updates and a trial**.
2016-08-02 03:19:16 -05:00
![](./assets/xo5updatetooltip.png)
2015-11-12 08:03:28 -06:00
#### Register
Updates and trials will be available as soon as you register your appliance. To register, use your https://xen-orchestra.com credentials you gave to download it previously (your email and your password):
2015-11-12 08:03:28 -06:00
2016-08-02 03:19:16 -05:00
![](./assets/xo5register.png)
2015-11-12 08:03:28 -06:00
2015-11-12 08:46:57 -06:00
#### Check for new versions
2016-08-02 03:19:16 -05:00
The updater will check for new versions periodically. A green tick in the menu means your version is up to date:
2015-11-12 08:46:57 -06:00
2016-08-02 03:19:16 -05:00
![](./assets/xo5updatetooltipok.png)
2015-11-12 08:03:28 -06:00
2016-08-02 03:19:16 -05:00
However, if you want to start a manual check, you can do it by clicking on the "Update" button:
2015-11-12 08:46:57 -06:00
2016-08-02 03:19:16 -05:00
![](./assets/xo5updatebutton.png)
2015-11-12 08:46:57 -06:00
2019-10-02 08:24:45 -05:00
#### Release channel
In Xen Orchestra, you can make a choice between two different release channels.
##### Stable
The stable channel is intended to be a version of Xen Orchestra that is already **one month old** (and therefore will benefit from one month of community feedback and various fixes). This way, users more concerned with the stability of their appliance will have the option to stay on a slightly older (and tested) version of XO (still supported by our pro support).
##### Latest
The latest channel will include all the latest improvements available in Xen Orchestra. The version available in latest has already been QA'd by our team, but issues may still occur once deployed in vastly varying environments, such as our user base has.
> To select the release channel of your choice, go to the XOA > Updates view.
![](./assets/release-channels.png)
2016-08-02 03:19:16 -05:00
#### Upgrade
2015-11-13 05:36:36 -06:00
2016-08-02 03:19:16 -05:00
If a new version is found, you'll have an upgrade button and its tooltip displayed:
2015-11-13 04:25:45 -06:00
2016-08-02 03:19:16 -05:00
![](./assets/xo5updatetooltipneedupdate.png)
2015-11-13 04:25:45 -06:00
2015-11-12 08:46:57 -06:00
#### Proxy configuration
If you are behind a proxy, you can edit your proxy settings in this panel:
2016-08-02 03:19:16 -05:00
![](./assets/xo5proxysettings.png)
2015-11-12 08:03:28 -06:00
### From the CLI
If your interface is not accessible, or you just prefer to use CLIs commands, it's still possible to perform the same steps. You need to access your XOA via SSH (remember the default credentials: xoa/xoa. Change them ASAP).
2015-11-12 08:03:28 -06:00
#### Register
2015-11-12 08:46:57 -06:00
```
# xoa-updater --register
Successfully connected to xoa-updater-service
Please enter your xen-orchestra.com identifiers to register your XOA:
? Email: myemail@example.net
? Password: *****
Your Xen Orchestra Appliance has been succesfully registered
```
2015-11-12 08:03:28 -06:00
#### Check for new versions
2015-11-12 08:46:57 -06:00
```
# xoa-updater
Successfully connected to xoa-updater-service
Checking new versions...ok ✔
New versions available:
xo-server 4.8.1
xoa-updater may be run again to upgrade packages
```
#### Upgrade
```
# xoa-updater --upgrade
Successfully connected to xoa-updater-service
Checking new versions...ok ✔
New versions available:
xo-server 4.8.1
[...]
Downloading packages...
Installing new packages...
✔ Your XOA has been successfully updated.
```
2015-11-12 08:03:28 -06:00
## Troubleshooting
2016-08-02 03:43:40 -05:00
If your updater is down, you can restart it with `systemctl restart xoa-updater`.
If you can't fetch updates, perform a few checks from your XOA:
2015-11-12 08:03:28 -06:00
* you should be able to successfully `ping xen-orchestra.com`
* if not, check your `/etc/resolv.conf` file and modify it if necessary (give a correct DNS server)
* use `ifconfig` to check your network configuration
2016-07-04 10:05:27 -05:00
* check your firewall(s) and allow XOA to reach xen-orchestra.com (port 443)