My machine's operating system: Linux Ubuntu 3.0.0-11-generic # 18-ubuntu SMP Tue Sep 13 23:38:01 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
The linux3.0 kernel already supports xen, so you don't need to compile the kernel anymore (for those systems that support the kernel, you don't need to re-compile the kernel ).
Step 1:
Install required software packages
Install the required software packages for compiling xen and Linux xen kernel:
$ Sudo apt-Get install GCC g ++ make patch libssl-dev Bzip2 gettext \ zlib1g-dev Python libncurses5-dev libjpeg62-dev libx11-dev libgcrypt11-dev PKG-config bridge-utils BCC bin86 libpci-dev \ libsdl-Dev python-dev texinfo libc6-dev UUID-dev bison flex fakeroot \ build-essential crash kexec-tools makedumpfile libncurses5 \ libncurses5-dev IASL gawk
Step 2:
Run the command: APT-cache search xen.
Then select to install tools related to xen. What I installed is:
$ Sudo apt-Get install xen-tools xen-utils-common xenomai-Doc xenomai-runtime xenwatch libxen-dev libxenstore3.0 xen-docs-4.1 xen-hypervisor-4.1-amd64 xen-utils-4.1 xenstore-utils
Step 3:
Add to Automatic startup script
Update-rc.d xend defaults 20 21
Update-rc.d xendomains defaults 21 20
Step 4:
Restart the machine, select a kernel with xen to start, and then enter the system,
Check whether the xen has been successfully installed:
$ Sudo XM listname ID mem vcpus state time (s) domain-0 1879 2 R ----- 6.6
The above information indicates that the installation is successful and can be used properly.