XCP-ng updates from Xen Orchestra

XCP-ng May 29, 2018

You may already know: we decided to include a better update mechanism in XCP-ng (vs XenServer). We are using the CentOS method with yum.

However it would also be interesting to update directly from a UI, and also to avoid updating each host one by one.

Guess what? That's why we developed an XAPI (XenServer/XCP-ng API) plugin! You'll see it is now very easy to keep all your hosts up-to-date, while also having more transparency into what's going on!

This feature is coming in XO 5.20 - available in 2 days!

Install the plugin

The plugin will be included in the next XCP-ng release. Until then, you'll have to install it, with a simple yum install xcp-ng-updater command. Yes, that's it!

Updates via Xen Orchestra

Take for example a fresh install of XCP-ng 7.4.1. Since its release, some patches have been released.

First, just go into the Home/Pool view in Xen Orchestra, and you'll see some pools that need updates:

poolviewupdates

"XCP Pool" needs to be updated (it's not XenServer but XCP-ng based). You can see clearly that there are 6 updates available. If you click on the pool, you can go into the dedicated view and then the "Patches" tab:

poolpatches

By clicking on "Install pool patches", all your hosts will be updated automatically! But wait, there's more? You want to know what needs to be updated? Click on the host, then go into the "Patches" view:

hostpatches2

You can even see the changelog (here, the only changelog available is for microcode_ctl):

changelog2

Anyway, as soon as your patches/updates are installed, we'll inform you if the patched hosts need to be rebooted:

needreboot

Hovering over it:

hover

Same in the host view, you can't miss it:

big-inhostview

Note: It's up to you to reboot anytime you like (always start with the pool master by the way). Updating won't reboot anything automatically. You are the admin, you know when it's the best time to do so.

If you don't have the plugin installed, you'll see a message explaining how to do so:

installplugin

In the end updating XCP-ng is very simple, and still follows the "upstream" way: using yum and a repository. This is the proof that it's possible to achieve!

sign-up-1000x300

Tags

Olivier Lambert

Vates CEO & co-founder, Xen Orchestra and XCP-ng project creator. Enthusiast entrepreneur and Open Source advocate. A very happy Finnish Lapphund owner.