Xen installation
From ERIKA WIKI
Xen Installation on x86-64 platform
The section contains the instruction to install XEN (version RELEASE4.11
) on Ubuntu 16.04.
Build Dependencies
Install the following packages:
# apt-get update && apt-get dist-upgrade #update/upgrade the kernel # apt-get install build-essential # apt-get install bcc bin86 gawk bridge-utils iproute # apt-get install libcurl3 libcurl4-openssl-dev bzip2 module-init-tools transfig tgif # apt-get install texinfo texlive-latex-base texlive-latex-recommended texlive-fonts-extra texlive-fonts-recommended # apt-get install pciutils-dev mercurial # apt-get install make gcc libc6-dev zlib1g-dev python python-dev python-twisted # apt-get install libncurses5-dev patch libsdl-dev libjpeg-dev # apt-get install libvncserver-dev # apt-get install iasl libbz2-dev e2fslibs-dev git-core uuid-dev # apt-get install ocaml ocaml-findlib libx11-dev bison flex xz-utils libyajl-dev # apt-get install gettext libpixman-1-dev libaio-dev markdown pandoc # apt-get install libc6-dev-i386 # apt-get install lzma lzma-dev liblzma-dev #for rombios # apt-get install libsystemd-dev
Configure and build
Clone the Xen repository and switch to the chosen version (i.e., RELEASE4.11):
$ git clone https://github.com/xen-project/xen.git $ git checkout RELEASE-4.11.0 -b RELEASE-4.11.0
Configure and build:
$ cd xen $ ./configure -enable-systemd $ make dist
Install
The following operations has to be performed with root privilege.
Install:
# make install
Reload dynamic libraries:
# /sbin/ldconfig
Enable systemd Xen services:
# systemctl enable xen-qemu-dom0-disk-backend.service # systemctl enable xen-init-dom0.service # systemctl enable xenconsoled.service # systemctl enable xenstored.service # systemctl enable xendomains.service
Note that in case of error for enabling xendomains service, remove /etc/init.d/xendomains
.
Update grub and reboot:
# udate-grub # reboot