Compile dom0 (Linux kernel 3.2.1) + Xen-4.1.2 + virt-manager 0.9.0 on opensuse 12.1

Source: Internet
Author: User

Experience summary:

1. Do not use an independent video card because the driver does not support the pv_ops kernel architecture.

2. Do not use a 64-bit release (except for Ubuntu)

Steps:

1. Install 32bit opensuse 12.1

Install Linux kernel development and Python dependency package

......

2. Prepare

Zypper install dev86

Zypper install ncurses-devel bridge-utils

3. Compile Xen-4.1.2

Download the latest xen-4.1.2 from www.xen.org

sudo tar -xzvf xen-4.1.2.tar.gz
cd xen-4.1.2
sudo make xensudo make toolssudo make stubdom

Then

sudo make install-xensudo make install-tools PYTHON_PREFIX_ARG=sudo make install-stubdom

Check/boot/and find

/boot/xen-4.0.gz/boot/xen-4.gz/boot/xen.gz

Now you can proceed with the following steps with confidence.

4. Compile dom0 Kernel

Download the latest kernel

$ git clone git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen.git linux
cd linux
Change Branch
git checkout -b upstream/xen origin/upstream/xen

Copy the configuration file opensuse12.1 under/boot/(starting with config) to Linux/and name it. config

Make menuconfig

--> Processor type and features --> paravirtualized guest support: xen guest support: Enable xen privileged domain support Optional: enable other features
--> Device Driver
Select All xen-related items, just in case.

Sudo make

If a module needs to be manually selected, we recommend that you select y instead of M.

Then there is a long wait, usually about an hour.

If no problem exists

Make modules_install install

So far, the kernel has been compiled

5. Configure grub

Opensuse uses grub1. What we need to modify is the/boot/GRUB/menu. LST file.

Before that, open the/etc/xen/xend-config.sxp and

(xend-unix-server no)

And then change "no" to "yes ".

Get

(xend-unix-server yes)

Modify the menu. LST file

Title xen 4.1.2root (hd0, 5) My opensuse12.1 is installed in sda6 partition so it is (hd0, 5) kernel/boot/xen-4.1.2.gzmodule/boot/vmlinuz-3.1.2rc root =/dev/sda6 (the vmlinuz-3.1.2rc obtained after compiling the dom0 kernel can be found in/boot/) module/boot/initrd. img-3.1.2rc (can be found in/boot/, also obtained after compiling the dom0 kernel)

6. Compile

Virt-manager 0.9.0

Download the latest virt-manager.org from virt-manager0.9.0

Preparation:

  • Python & gt; = 2.4-virt-manager is written in python!
  • Pygtk2> = 1.99.12-6-the python gtk2 bindings are used for the UI
  • Gnome-python2-gconf> = 1.99.11-7-gconf stores application preferences
  • Libvirt-Python> = 0.4.0-libvirt is for talking to xen, qemu, KVM and other virtualization backensd
  • Export-Python> = 0.61-optionally expose a service on the bus for control of the UI
  • Gnome-Python-desktop> = 2.15.4-optionally store VNC Server passwords in GNOME Keyring
  • Libxml2-python> = 2.6.23-used to parse XML from libvirt
  • VTE> = 0.12.2-for displaying/interacting with the serial console
  • Export inst> = 0.300.3-Python library for creating ing in creating VMS
  • GTK-VNC-Python> = 0.3.4-GTK widget for displaying VNC sessions

YaST comes in handy. install these Dependencies

Decompress the installation package, tar-zxvf

Then make

Make install

Success !!!

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.