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.
Some virus programs send malicious packets to Linux servers, which greatly consumes the bandwidth of
Recently, users who have been careful have found that using filezille in Linux to u
PyCharm is used for the functions of the general IDE, but many people have errors w
Many users who use the vi editor to write code know that the code written cannot be
How to take a screenshot in the Linux system login interface?
How to set command aliases in Linux
Linux installation of MariaDB database through Yum
When prompted to start the vi editor in Linux, prompt E325: What should ATTENTION do?
The most detailed Linux compression decompression command
What should I do if the NIC cannot be started after the Linux virtual machine is cloned?
Steps for installing Tecplot under Linux
The role of the -exec parameter in the Linux find command
Steps to turn off root remote login on AIX
Linux system startx command function and usage
Linux system how to set the read access of the .net IIS metabase
Win7 system how to clean c drive
Five optimizations necessary after installing win7 system
Win7 system UC browser seamless browsing mode how to open
Win7 system can not call out the language bar after pressing ctrl+shift on the keyboard. How to do
Some windows7 system running command
Installing xp with u disk can't enter the system?
How to change the hard disk icon Change the local disk icon method
Win8 computer security software compatibility test
Win8 skills: solve Win8 incompatibility and lead to failure to run