Go back

How to configure Xen hypervisor on Ubuntu Server 14.4.05?

March 6, 2018
Dimitrii Zuikov

Dimitrii Zuikov

TrueConf Server can be run on a virtual machine. However, it is complex and inadvisable to implement for inexperienced users, as enabling a virtual machine to operate correctly can be quite difficult at times.

This manual will teach you how to configure Xen hypervisor on Ubuntu Server 14.04.05 Server x86-64.

This article is for informational purposes only and does not necessarily guarantee full server operation after taking all the steps.
TrueConf Technical Support does not advise users on configuring virtual machines and running TrueConf Server on them. A virtual machine is an external system, which does not depend on TrueConf application. Its configuration and support are entirely user’s responsibility.

Step 1: Install Xen and configure the bootloader

First you need to update system packages:

After that, install Xen:

Use the following commands to configure default Xen boot:

Restart the OS and Xen. Next time the system is booting,  Xen will start automatically:

How to configure Xen hypervisor on Ubuntu Server 14.4.05? 1

Step 2. Install and configure libvirtd

Install libvirtd:

After that, configure libvirtd for Xen default operation. To do this, edit the /etc/libvirt/libvirt.conf file. In this file, uncomment (remove the # symbol at the beginning) the line starting with “#uri_default” and replace it with the following line: uri_default = “xen:///system”.

Next, add exceptions to the apparmor protection tool:

After that, check if the current record is in the libvirtd group:

Here is a typical command output if the group contains 111 group and andrey as a user:

If the current user is not in the group, add him/her using a separate command:

After that, it is mandatory to re-enter the system and verify if Xen starts successfully.

Step 3: Create a Network Bridge

Next, create a network bridge. To do this, you might need to edit /etc/network/interfaces file.

In this file there is a line setting the main network interface. It can be found after the  “# The primary network interface” line-comment. If the network interface is set to eth0 (the line reads “auto eth0”), it must be replaced with br0, and four new lines must be added to the end of the file:

The picture below shows an example of this type of editing. However, instead of changing the line “auto eth0”, we commented it (added # in the beginning to make it being ignored) and added a new line after it (with an additional comment before it).

How to configure Xen hypervisor on Ubuntu Server 14.4.05? 2

After that, restart the network or the entire operating system (highly recommended):

Step 4. Configure the network gateway

To configure the gateway, edit /etc/sysctl.conf file. Find and uncomment the following line:

After that, enter the command to apply changes and restart the OS again:

Step 5: Check virtualization capabilities

After the system is rebooted, create the first virtual machine:

To install Windows 2012 (which will be installed in this example) or any other system not ported to Xen, Intel® Virtualization Technology (VT) or Pacifica (AMD) virtualization technology support is required. Xen should also support hardware virtualization. To check it, use the following command:

Based on hvm-4.4-x86_32 output, Xen has successfully detected a processor that supports Intel VT or AMD-V technologies.

If this command displays another message but you are sure that the processor has architectural virtualization extensions, check the BIOS settings and use VT support if you haven’t done it yet.

Your motherboard BIOS may artificially disable virtualization. In this case, update or fix the BIOS.

Step 6. Create a virtual machine

Just in case, check which virtual machines are running now.

The output is empty, as it should be if no virtual machine is running. Next, create a Xen disk image:

Create Windows 2012 ISO image, which will be used during the installation. In our case, we’ve placed it in the /root/xenimages directory.

Create the /etc/xen/win2012 configuration file and fill it in using the following example:

Please note that boot = ‘d’ parameter is required for installation. Subsequently, it must be replaced with boot = ‘c’. Guest domain will be accessed through VNC. The use of SDL is not presupposed.

After creating /etc/xen/win2012 configuration file, start the installation and try connecting to the domain using VNC. To do this, run vncviewer immediately after creating the domain:

Step 7. Install TrueConf Server

Once virtual machine has been successfully configured, just install TrueConf Server and get started. With our guide, it takes only 15 minutes


Still have questions? Please contact our support team directly via online chat.

Sign up for newsletter