Ubuntu 12.04 installation Xen FAQ and solution

  

Ubuntu 12.04 has a lot of problems when installing Xen, in order to avoid the same mistakes in the installation, the following small series will be a problem for Xen installation problems Summarize and teach you how to solve these problems.

installation process:
package

1. Installation compile Xen and Linux xen kernel required:

sudo

apt-get install Build-essential binutils python-dev libncurses5-dev libcurl4-openssl-dev xorg-dev uuid-dev bridge-utils bison flex udev gettext bin86 bcc iasl libgcrypt11-dev libssl-dev pciutils libglib2.0-dev gcc-multilib texinfo zlib1g-dev

$ 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

Some of the above packages are duplicates, it doesn't matter, repeating it will skip the installation. Before installing the software package, please pay attention to the source, 163 and cn.archive are all possible.

Step 2: Install xen vmm

The difference between 32-bit and 64-bit systems is also important. 64-bit steps are very simple, 32-bit is different, because xen needs to open pae, the default is not enabled, so 32-bit ubuntu must first execute the following command:

sudo apt-get install linux-image -server

sudo apt-get install xen-hypervisor-4.1-i386 xen-utils-4.1 xenwatch xen-tools xen-utils-common xenstore-utils

Here xen-hypervisor-4.1 32-bit, 64-bit, 64-bit system with xen-hypervisor-4.1-amd64, 32-bit with xen-hypervisor-4.1-i386.

Step 3: Install libvirt and Virtual Manager

sudo apt-get install virtinst python-libvirt virt-viewer virt-manager

Step 4: Restart the machine, select the kernel with xen to boot, enter the system, and then check if Xen has been successfully installed: Br>

$ sudo xm list

At this point, I have a problem, that is, there will be no grub startup option when restarting linux, resulting in

when typing xm list Can‘t find hypervisor info,,, typeface

solutions given online A is generally like this

# mv /etc/grub.d/10_linux /etc/grub.d/50_linux

# update-grub2

I refer to a foreign website The answer is

# mv /etc/grub.d/10_linux /etc/grub.d/20_linux && mv /etc/grub.d/20_linux_xen /etc/grub.d/10_linux_xen

The basic meaning is that the files appearing in the grub.d folder are the labels in front of the boot order of linux. The order is the lower (such as 00, 05, 10, etc.), the lower the first, so the basic meaning of the two methods. Just ahead of 20_linux_xen (10_linux will be put back), so it is valid.

But maybe you still have problems, or

can‘t find hypervisor info,,, typeface

is not an online problem error, but everyone pays attention to grub2, This 2 description uses grub2 to start, maybe your computer is grub boot, which is why your changes failed. I checked the information and said that grub did not start the boot entry of the xen kernel core and so on. It is not difficult to upgrade from grub to grub2.

The configuration file for grub2 is /boot/grub/grub.cfg. Previously, online said that according to this file (grub.cfg) you can change grub_default=0 in the /etc/default/grub file (turn 0 into the number corresponding to xen). It can't be changed in real time. Grub.cfg doesn't provide the number of each startup item, so once you falsify default, your computer may be blue. . .

After the changes are complete, observe grub. The startup sequence 20_xen inside cfg is advanced.

reboot on ok

The above is the introduction of Ubuntu 12.04 installation Xen common problems and solutions, this problem is often encountered when installing Xen, mainly after the installation restarts, an error occurs. Solve according to the method in the text.

Copyright © Windows knowledge All Rights Reserved