Difference between revisions of "Xen installation"
(Created page with "== Xen Installation on x86-64 platform == The section contains the instruction to install XEN (version <code>RELEASE4.11</code>) on <b>Ubuntu 16.04</b>. === Build Dependenci...") |
|||
Line 1: | Line 1: | ||
− | + | The section contains the instruction to install Xen hypervisor on platform x86_64 with one of the following operating system: | |
+ | <ul> | ||
+ | <li>Ubuntu 16.04 (with grub-pc)</li> | ||
+ | <li>Ubuntu 18.04.1 LTS (with grub-efi)</li> | ||
+ | </ul> | ||
− | + | == Build Dependencies == | |
− | === | + | Install the following packages: |
+ | # apt update && apt dist-upgrade #update/upgrade the kernel | ||
+ | # apt install build-essential | ||
+ | # apt install bcc bin86 gawk bridge-utils iproute | ||
+ | # apt install libcurl3 libcurl4-openssl-dev bzip2 module-init-tools transfig tgif | ||
+ | # apt install texinfo texlive-latex-base texlive-latex-recommended texlive-fonts-extra texlive-fonts-recommended | ||
+ | # apt install pciutils-dev mercurial | ||
+ | # apt install make gcc libc6-dev zlib1g-dev python python-dev python-twisted | ||
+ | # apt install libncurses5-dev patch libsdl-dev libjpeg-dev | ||
+ | # apt install libvncserver-dev | ||
+ | # apt install iasl libbz2-dev e2fslibs-dev git-core uuid-dev | ||
+ | # apt install ocaml ocaml-findlib libx11-dev bison flex xz-utils libyajl-dev | ||
+ | # apt install gettext libpixman-1-dev libaio-dev markdown pandoc | ||
+ | # apt install libc6-dev-i386 | ||
+ | # apt install lzma lzma-dev liblzma-dev #for rombios | ||
+ | # apt install libsystemd-dev | ||
+ | |||
+ | == Xen Installation == | ||
+ | |||
+ | 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 | ||
+ | |||
+ | In the following part of the tutorial, we refer to the Xen repository path as <code>$XENPATH</code>. | ||
+ | <b>Configure</b> | ||
+ | |||
+ | Configure (for Ubuntu 16.04): | ||
+ | $ $XENPATH/configure --enable-systemd --libdir=/usr/local/lib64 | ||
+ | |||
+ | Configure (for Ubuntu 18.04.01): | ||
+ | $ $XENPATH/configure --enable-systemd --libdir=/usr/local/lib64 | ||
+ | |||
+ | <b>Build and install</b> | ||
+ | |||
+ | Build all components (hypervisor, tools, docs, stubdomains, etc): | ||
+ | $ cd $XENPATH | ||
+ | $ make dist | ||
+ | |||
+ | Install (as root): | ||
+ | # make install | ||
+ | |||
+ | <b>Enable the Xen services</b> | ||
+ | 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 <code>/etc/init.d/xendomains</code>. | ||
− | + | <b>Grub setup</b | |
− | + | Update grub and reboot: | |
− | + | # udate-grub | |
− | # | + | # reboot |
− | |||
− | # | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | == Xen Installation on Ubuntu 18.04 == | |
Clone the Xen repository and switch to the chosen version (i.e., RELEASE4.11): | Clone the Xen repository and switch to the chosen version (i.e., RELEASE4.11): | ||
Line 28: | Line 72: | ||
$ git clone https://github.com/xen-project/xen.git | $ git clone https://github.com/xen-project/xen.git | ||
$ git checkout RELEASE-4.11.0 -b RELEASE-4.11.0 | $ git checkout RELEASE-4.11.0 -b RELEASE-4.11.0 | ||
+ | |||
+ | <b>Configure and build</b> | ||
Configure and build: | Configure and build: | ||
Line 45: | Line 91: | ||
Enable systemd Xen services: | Enable systemd Xen services: | ||
+ | |||
# systemctl enable xen-qemu-dom0-disk-backend.service | # systemctl enable xen-qemu-dom0-disk-backend.service | ||
# systemctl enable xen-init-dom0.service | # systemctl enable xen-init-dom0.service | ||
Line 50: | Line 97: | ||
# systemctl enable xenstored.service | # systemctl enable xenstored.service | ||
# systemctl enable xendomains.service | # systemctl enable xendomains.service | ||
+ | |||
Note that in case of error for enabling xendomains service, remove <code>/etc/init.d/xendomains</code>. | Note that in case of error for enabling xendomains service, remove <code>/etc/init.d/xendomains</code>. | ||
+ | for Ubuntu 16.04 | ||
Update grub and reboot: | Update grub and reboot: | ||
# udate-grub | # udate-grub | ||
# reboot | # reboot |
Revision as of 16:44, 29 November 2018
The section contains the instruction to install Xen hypervisor on platform x86_64 with one of the following operating system:
- Ubuntu 16.04 (with grub-pc)
- Ubuntu 18.04.1 LTS (with grub-efi)
Build Dependencies
Install the following packages:
# apt update && apt dist-upgrade #update/upgrade the kernel # apt install build-essential # apt install bcc bin86 gawk bridge-utils iproute # apt install libcurl3 libcurl4-openssl-dev bzip2 module-init-tools transfig tgif # apt install texinfo texlive-latex-base texlive-latex-recommended texlive-fonts-extra texlive-fonts-recommended # apt install pciutils-dev mercurial # apt install make gcc libc6-dev zlib1g-dev python python-dev python-twisted # apt install libncurses5-dev patch libsdl-dev libjpeg-dev # apt install libvncserver-dev # apt install iasl libbz2-dev e2fslibs-dev git-core uuid-dev # apt install ocaml ocaml-findlib libx11-dev bison flex xz-utils libyajl-dev # apt install gettext libpixman-1-dev libaio-dev markdown pandoc # apt install libc6-dev-i386 # apt install lzma lzma-dev liblzma-dev #for rombios # apt install libsystemd-dev
Xen Installation
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
In the following part of the tutorial, we refer to the Xen repository path as $XENPATH
.
Configure
Configure (for Ubuntu 16.04):
$ $XENPATH/configure --enable-systemd --libdir=/usr/local/lib64
Configure (for Ubuntu 18.04.01):
$ $XENPATH/configure --enable-systemd --libdir=/usr/local/lib64
Build and install
Build all components (hypervisor, tools, docs, stubdomains, etc):
$ cd $XENPATH $ make dist
Install (as root):
# make install
Enable the Xen services 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
.
Grub setup</b Update grub and reboot:
# udate-grub # reboot
Xen Installation on Ubuntu 18.04
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
<b>Configure and build
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
.
for Ubuntu 16.04 Update grub and reboot:
# udate-grub # reboot