Ubuntu12.04 install Xen4.2 with source code

Source: Internet
Author: User
I heard that Xen4.2 supports nested Virtualization (nestedvirtualization, vmx or svm can be used in virtual machines), so hurry and try again. Target System: Ubuntu12.04i386 + i52510E + QM67CPU and motherboard support vt-d. Therefore, in addition to lab nested virtualization, passthrough can also be used as the lab device. A xen.gz file is compiled by hypervisorand compiled by a couple of developers,

I heard that Xen 4.2 supports nested virtualization (vmx or svm can be used in virtual machines). Hurry and try again.

Target System: Ubuntu 12.04 i386 + i5 2510E + QM67

Both the CPU and motherboard support vt-d. Therefore, in addition to lab nested virtualization, passthrough can also be used as the lab device.

A xen.gz file compiled by hypervisorand compiled by xen.gz is loaded at startup.

The other part is the tool.

Generally, only two parts are required for Xen compilation. make xen tools & make install-xen install tools

Another part is optional. stubdom, which is also compiled here. make stubdom & make install-sbudom

Preparations

Sudo apt-get install bcc python-dev gettext iasl uuid-dev libncurses5-dev libglib2.0-dev libyajl-dev texinfo git

Compile Xen

Because I want to compile the XSM Module, that is, the Xen Security Module, first modify Config. mk.

Modify Config. mk and change XSM_ENABLE and FLASK_ENABLE to y.

Make xen

The following error occurs:

At this time, a warning about the type is displayed, which is the Code related to XSM. Just modify the code.

Xen/xsm/flask/ss/policydb. c

1779 rows

If (len! = Strlen (POLICYDB_STRING ))

{

Printk (KERN_ERR "Flask: policydb string length % d does not"

"Match expected length % lu \ n ",

Len, strlen (POLICYDB_STRING ));

Goto bad;

}

Change to (unsigned long) (strlen (POLICYDB_STRING)

In this way, you can install Xen and make install-xen after compilation.

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.