Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the common problems and solutions of installing Xen in Ubuntu 12.04

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

Ubuntu 12.04 install Xen common problems and solutions, in view of this problem, this article introduces the corresponding analysis and solutions in detail, hoping to help more partners who want to solve this problem to find a more simple and easy way.

Installation process:

1. Install the packages required to compile Xen and Linux xen kernel:

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 gaming + 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 repeated, it doesn't matter, if you repeat them, you will skip the installation. Be careful to select the source before installing the package. 163and cn.archive are fine.

Step 2: install xen vmm

The difference between 32-bit and 64-bit systems is also important. It is very simple for 64-bit to press the following steps, but 32-bit is different. Because xen needs to enable pae, which is not enabled by default, 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 is divided into 32-bit and 64-bit, and the 64-bit system uses xen-hypervisor-4.1-amd64,32 bit and 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, and then check whether Xen has been successfully installed after entering the system:

$sudo xm list

At this point, I have a problem, that is, the grub startup option will not appear when restarting linux, resulting in a

Can't find hypervisor info,

The answers given online are usually like this.

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

# update-grub2

I referred to a foreign website and 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 that appear in the grub.d folder are the startup order of linux. The label in front of the startup order is the lower the order (for example, 00re05re10, etc.), the lower the start, so the basic meaning of the two methods is to advance the 20_linux_xen (10_linux will be put behind), so they are both valid.

But maybe you still have a problem, or you still show up.

Can't find hypervisor info,

It is not the problem on the Internet that is wrong, but everyone pay attention to grub2, this 2 description uses grub2 to start, maybe your computer is started by grub, this is the reason why you failed to change. I checked the information and said that grub did not boot the xen kernel and so on. Upgrading from grub to grub2 is not difficult.

The configuration file for grub2 is / boot/grub/grub.cfg. It was said on the Internet that according to this file (grub). Cfg) can change the grub_default=0 in the / etc/default/grub file (change 0 to the number corresponding to xen). In fact, it can not be changed from time to time. Grub.cfg does not provide the number of startup items, so once you tamper with default, your computer may be blue screen.

After the changes are complete, observe the grub. The startup sequence within cfg 20_xen has been advanced.

Reboot is ok.

The answers to the frequently asked questions and solutions to the installation of Xen in Ubuntu 12.04 are shared here. I hope the above content can be of some help to you. If you still have a lot of doubts to solve, you can follow the industry information channel for more related knowledge.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report