Skip to content

Arch Linux Specific

Nathan Pemberton edited this page Dec 20, 2016 · 4 revisions

Libvirt

The default libvirt that ships with arch doesn't support Xen for some reason. You must use abs to build it custom. Instructions

Xen Compilation

Xen by default will not compile on Arch because Arch uses a modern version of GCC. This is not an easy fix. The starting point is to use this package from AUR that compiles Xen 4.7. There seems to be some difference between their 4.7 and our 4.7 in some of the submodules (e.g. different version of qemu). This needs to be dealt with manually. I intend to commit a version that plays nice with the package. More details to come once I get this working.

Xen Usage

By default Arch won't start the needed xen services. I'm not sure how to make them start only when booting with Xen so I just made a script with the following:

#!/bin/bash
sudo systemctl start xenstored xenconsoled xendomains xen-init-dom0
sudo systemctl start libvirtd

Xen Boot Parameters

For some reason arch ignores GRUB_CMDLINE_XEN in /etc/default/grub. To change Xen boot parameters you must instead add them to XEN_HYPERVISOR_CMDLINE in /etc/xen/grub.conf ... obviously...

Clone this wiki locally