How can I install and compile xen from the source code?
Clash Royale CLAN TAG#URR8PPP
How can I install and compile xen from the source code?
I want to modify live migration code of Xen. I can only install it using Apt package management. However, I want to install it using source code to be able to compile it after modification. Which steps should I follow to do that?
1 Answer
1
First, you need to clone XEN repository:
$ git clone git://xenbits.xen.org/xen.git
Go to dir
$ cd xen
Switch git branch to the latest version:
$ git checkout stable-4.11
Or choose which one is needed for you:
$ git branch -av
To build all components (hypervisor, tools, etc) use dist target:
$ make dist
If you wish to just (re)build a single component you can use the appropriate dist-COMPONENT target:
$ make dist-xen
$ make dist-tools
$ make dist-docs
.....etc.....
If your host machine and target machine are different you can use cross compiler to build it:
$ make dist-xen XEN_TARGET_ARCH=<target_arch> CROSS_COMPILE=<path_to_compiler>
If you build for ARM platform you can take one which provided by Linaro:
https://releases.linaro.org/components/toolchain/binaries/latest/
A lot of good information exists on XEN wiki:
https://wiki.xen.org/wiki/Help:Contents
I followed the steps, it needs to build some additional dependencies. Finally, it worked. So, thank you very much.
– Ahmed
Aug 23 at 11:51
@Ahmed so if it helps you can accept an answer as solution, thanks
– Nick S
Aug 24 at 18:00
I tried to vote for answer, but it can't appear now because my reputation is still small.
– Ahmed
Aug 26 at 16:54
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
which platform do you use?
– Nick S
Aug 11 at 21:02