Comments on Virtualization With Xen On CentOS 6.2 (x86_64) (Paravirtualization & Hardware Virtualization)
Virtualization With Xen On CentOS 6.2 (x86_64) (Paravirtualization & Hardware Virtualization) This tutorial provides step-by-step instructions on how to install Xen (version 4.1.2) on a CentOS 6.2 (x86_64) system. Xen lets you create guest operating systems (*nix operating systems like Linux and FreeBSD), so called "virtual machines" or domUs, under a host operating system (dom0). Using Xen you can separate your applications into different virtual machines that are totally independent from each other, but still use the same hardware.
11 Comment(s)
Comments
Fantastic write up! Thanks.
Hey I am trying to get libvirt to install on CentOS 6.3 ... but when I am building I get the following errors ....
checking for LIBXML... no
checking libxml2 xml2-config >= 2.6.0 ... configure: error: Could not find libxml2 anywhere (see config.log for details).
error: Bad exit status from /var/tmp/rpm-tmp.BotBuI (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.BotBuI (%build)
hi
i have problem to this..
my machine installed CENTOS 6.5(Final)
I want to install xen on kernel 2.6.32-431.el6
but insert in to terminal that command
yum -y install xen kernel-xen
it is not installed with this error.
yum remove xorg-x11-drv-ati-firmware.noarch
to find the conflicting packages do
yum list installed | more
Reboot to ensure nothings broken, then re-run the installer.
This got me installed on Cent os 6.5 but I had problem's on boot after installation but that appears to be a separate issue.
This actually worked wonderfully! Now running CentOS 6.2 64-bit with Xend!!! Sweet!
First, at yum install kernel-xen xen
I've found the error:
GPG key retrieval failed: [Errno 14] Could not open/read file:///etc/pki/rpm-gpg/RPM-GPG-KEY
As pointed by Jordan, the solution is, before installing the xen-kernel, run:
cd /etc/pki/rpm-gpg/
wget http://www.crc.id.au/repo/RPM-GPG-KEY-kernel-xen
that done, you may resume with yum install kernel-xen xen
.
Second, at my install, rpmbuild -bb libvirt.spec
exploded with something like:
=======================================
1 of 59 tests failed
(2 tests were not run)
Please report to [email protected]
=======================================
make[1]: *** [check-TESTS] Error 1
make[1]: Leaving directory `/root/rpmbuild/BUILD/libvirt-0.9.4/tests'
make: *** [check-am] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.3Yorik (%check)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.3Yorik (%check)
scrolling back, I've found the problem at:
TEST: xencapstest
..!.!.!.!. 10 FAIL
FAIL: xencapstest
after some googling and discarting possible causes like
this,
I decide to adopt a daredevilish path... ;-)
(if someone could point another way to deal with it, I'll like to hear)
cd /root/rpmbuild/SOURCES
tar xzvf libvirt-0.9.4.tar.gz
vim libvirt-0.9.4/tests/xencapstest.c
and change, starting from line 182, the return values of the four tests for 'Capabilities for ia64'. So, the lines change from something like:
if (virtTestRun("Capabilities for ia64 ... NULL) != 0)
ret = -1;
to
if (virtTestRun("Capabilities for ia64 ... NULL) != 0)
ret = 0;
that done, write, quit, repackage the modified source code...
tar czvf libvirt-0.9.4.tar.gz libvirt-0.9.4
rm -rf libvirt-0.9.4
... and run the libvirt rebuild again.
cd /root/rpmbuild/SPECS
rpmbuild -bb libvirt.spec
I think we must download the latest src.rpm from 'updates' directory:
wget http://vault.centos.org/6.2/updates/Source/SPackages/libvirt-0.9.4-23.el6_2.8.src.rpm
later, this action fails:
rpm -Uvh --force libvirt-0.9.4-23.el6.x86_64.rpm libvirt-client-0.9.4-23.el6.x86_64.rpm libvirt-python-0.9.4-23.el6.x86_64.rpm
'cuz we have dependency witch can't be resolved. must add '--nodeps'
There is some errors while I complete all steps and reboot. 1. start xend and xendstored service while reboot. 2.There is some message like below wile run "xm list": Error: Unable to connect to xend: No such file or directory. Is xend running? What's wrong with that?
You should install qemu-kvm package.
Hi! First of all, thanks a lot for the guide. I've successfully installed xen in my machine running CentOS6.5 minimal x86_64 and my system has also booted up with xen kernel. However, when I try 'xm list', it says "Error: Unable to connect to xend: No such file or directory. Is xend running?". I tried to start xend service manually, but it seems to do nothing. I checked all log files for any error or warning messages related to xen, but everything seems to be fine. I checked status of other xen components such as xend, xenconsoled, xenstored, blktapctrl, etc. and the result said all of these services have failed. None of these services can be manually started as well. Do you have any solution or suggestion for me? Any help or information will be appreciated. Thanks in advance.