/
Building the Xen Hypervisor with PetaLinux 2016.3
Building the Xen Hypervisor with PetaLinux 2016.3
Before starting you need to create a PetaLinux project. It is assumed that a default PetaLinux reference design is used unchanged in these instructions.
Boot Xen and dom0 on QEMU or Hardware
To run Xen you can either use the prebulit version shipped with PetaLinux or build it yourself using PetaLinx. See the section below for steps about buildling Xen yourself.Configurng and building XEN from source using PetaLinux (Optional)
The default PetaLinux configuration has all the necessary options set by default. The XEN tools and XEN hypervisor will be built by default. So simply run:$ petalinux-build
You have to manually copy the xen-qemu.dtb from the pre-built directory:
$ cp pre-built/linux/images/xen-qemu.dtb images/linux/
Run Xen dom0 on QEMU:
To use the Xen you built yourself run:$ petalinux-boot --qemu --u-boot
To use the prebuilt Xen run:
$ petalinux-boot --qemu --prebuilt 2 --qemu-args "-net nic -net nic -net nic -net nic -net user,tftp=pre-built/linux/images"
Run Xen dom0 on HW:
To use the Xen you built yourself run:$ petalinux-boot --jtag --u-boot
To use the prebuilt Xen run: