/
Building the Xen Hypervisor with PetaLinux 2016.4 and newer
Building the Xen Hypervisor with PetaLinux 2016.4 and newer
Table of Contents
Overview
The guide below shows you how to build Xen, boot Xen and then run some example configurations on ZU+. The steps below use PetaLinux and assume you have some knowledge of using PetaLinux.Before starting you need to create a PetaLinux project. It is assumed that a default PetaLinux reference design is used unchanged in these instructions.
The default PetaLinux configuration has images ready to do boot Xen, these are the pre-built images. You can use those or you can manually edit receipes and build Xen yourself. The pre-built images can be found in this directory (inside a PetaLinux project) pre-built/linux/images/ and prefixed with "xen-". You can either use the pre-builts or follow the next section to configure and build Xen yourself. If you are using the pre-builts you can skip to the booting Xen section for your release version.
Remove or comment out '#' the following line
The second file that needs to be edited is:
Add the extra line at the end:
The default PetaLinux configuration has images ready to do boot Xen, these are the pre-built images. You can use those or you can manually edit receipes and build Xen yourself. The pre-built images can be found in this directory (inside a PetaLinux project) pre-built/linux/images/ and prefixed with "xen-". You can either use the pre-builts or follow the next section to configure and build Xen yourself. If you are using the pre-builts you can skip to the booting Xen section for your release version.
Configuring and building XEN from source using PetaLinux 2016.4
To build the XEN tools and XEN hypervisor you will need to edit the following two files:$ vim project-spec/meta-plnx-generated/recipes-core/images/petalinux-user-image.bb
EXTRA_USERS_PARAMS = "usermod -P root root;"*
$ vim build/conf/local.conf