Linux source version linux-3.14, can be obtained from https://www.kernel.org/.
Since Dom0 (FEDORA19) is already available, it is now necessary to install Domu,domu with Xen source Minios, which is the minimum system for Xen clients and has the opportunity to try it out. This time I am configuring Linux to install.
Refer to the Xen wiki page http://wiki.xenproject.org/wiki/Mainline_Linux_Kernel_Configs
Configuring the Kernel for DomU support
After obtaining the Linux source code, make Menuconfig
Note0:make sure you has correct CPU type (Processor Family) set in the kernel configuration, Xen Dom0 options won ' t show Too old CPU selected (too-means a CPU that doesn ' t-support PAE; Pentium Pro is the first CPU to has PAE).
Select Processor type and features, Processor family, Core2
Then down.
Note1:if you ' re building + bit version of the kernel, you first need to enable PAE support, since Xen only supports B It PAE kernels nowadays. Xen Kernel build options won ' t show up @ all before you've enabled PAE for a bit builds (Processor type and features-&G T High Memory Support (64GB), PAE (physical Address Extension) support). PAE is not a needed for kernels bit.
Since I compiled the 64-bit kernel, this one is ignored.
Next start the configuration:
The first one is ignored.
See the second one.
Enable These core options (Processor type and features| Paravirtualized Guest Support]
- Config_hypervisor_guest=y (3.10+ only)
- Config_paravirt=y
- Config_xen=y
- Config_paravirt_guest=y
- Config_paravirt_spinlocks=y
Menuconfig paravirtualized Guest support is not present , only the. config file can be edited manually.
See Hypervisor is annotated.
We remove the comment, assign the value Y, save, exit.
Then continue make Menuconfig, select processor type and features, Linux Guest support
Yes, the Paravirtualized Guest support option, which does not appear above, becomes the Linux guest support option, which is configured as follows
Down
and Xen PV console device support (device drivers| Character devices
- Config_hvc_driver=y
- Config_hvc_xen=y
This one does not have to be done, open. config Search this option to see that this is already configured automatically.
Next
and Xen disk and network support (Device drivers| Block Devices and Device drivers| Network Device Support)
- Config_xen_fbdev_frontend=y
- Config_xen_blkdev_frontend=y
- Config_xen_netdev_frontend=y
This step does not have to be done.
Next, make sure you've configured it.
And the rest (Device drivers| Xen Driver Support)
- Config_xen_pcidev_frontend=y
- Config_input_xen_kbddev_frontend=y
- Config_xen_fbdev_frontend=y
- Config_xen_xenbus_frontend=y
- Config_xen_save_restore=y
- Config_xen_grant_dev_alloc=m
Next, change the following options for. config.
And for Tmem support:
- Config_xen_tmem=y
- Config_cleancache=y
- Config_frontswap=y
- Config_xen_selfballooning=y
Building the kernel