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.