Using Linux source to build Xen domu

Source: Internet
Author: User

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]

  1. Config_hypervisor_guest=y (3.10+ only)
  2. Config_paravirt=y
  3. Config_xen=y
  4. Config_paravirt_guest=y
  5. 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

  1. Config_hvc_driver=y
  2. 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)

  1. Config_xen_fbdev_frontend=y
  2. Config_xen_blkdev_frontend=y
  3. 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)

  1. Config_xen_pcidev_frontend=y
  2. Config_input_xen_kbddev_frontend=y
  3. Config_xen_fbdev_frontend=y
  4. Config_xen_xenbus_frontend=y
  5. Config_xen_save_restore=y
  6. Config_xen_grant_dev_alloc=m

Next, change the following options for. config.

And for Tmem support:

  1. Config_xen_tmem=y
  2. Config_cleancache=y
  3. Config_frontswap=y
  4. Config_xen_selfballooning=y

Building the kernel

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.