Membership Membership:
Latest New User Latest: vpros
Past 24 Hours Past 24 Hours: 0
Prev. 24 Hours Prev. 24 Hours: 0
User Count Overall: 137

People Online People Online:
Visitors Visitors: 26
Members Members: 0
Total Total: 26

NakedMCSE Computer Tech Support Forums

So you have passed all of the exams and you are now out in the real world of windows servers, linux servers and freebsd servers faced with a tech support problem you have never seen before...

Find free online tech support in the forums below, respecting that advice is free, but work beyond advice is not...

The General forum is provided for off topic discussion.

You need a user account to post - please Register or Login.

Online Tech Support Forums
 
  Forum  Open Source Tec...  Linux Server  Installing Xen4 on Centos 7
Previous Previous
 
Next Disabled
New Post 10/31/2014 3:57 PM
Informative
  Walker
119 posts
www.lairdscomputer.com
10th Level Poster


Installing Xen4 on Centos 7 

This is not an official method, but it does work and is tested.  It does not include support for libvirt.

Install some needed packages:

yum install bridge-utils SDL net-tools

Get xen packages from xen.crc.id.au (http://au1.mirror.crc.id.au/repo/):

wget http://au1.mirror.crc.id.au/repo/el6/x86_64/xen-4.2.5-4.el6.x86_64.rpm
wget http://au1.mirror.crc.id.au/repo/el6/x86_64/xen-doc-4.2.5-4.el6.x86_64.rpm
wget http://au1.mirror.crc.id.au/repo/el6/x86_64/xen-debuginfo-4.2.5-4.el6.x86_64.rpm
wget http://au1.mirror.crc.id.au/repo/el6/x86_64/xen-devel-4.2.5-4.el6.x86_64.rpm
wget http://au1.mirror.crc.id.au/repo/el6/x86_64/xen-hypervisor-4.2.5-4.el6.x86_64.rpm
wget http://au1.mirror.crc.id.au/repo/el6/x86_64/xen-libs-4.2.5-4.el6.x86_64.rpm
wget http://au1.mirror.crc.id.au/repo/el6/x86_64/xen-licenses-4.2.5-4.el6.x86_64.rpm
wget http://au1.mirror.crc.id.au/repo/el6/x86_64/xen-ocaml-4.2.5-4.el6.x86_64.rpm
wget http://au1.mirror.crc.id.au/repo/el6/x86_64/xen-ocaml-devel-4.2.5-4.el6.x86_64.rpm
wget http://au1.mirror.crc.id.au/repo/el6/x86_64/xen-runtime-4.2.5-4.el6.x86_64.rpm
wget http://au1.mirror.crc.id.au/repo/el6/x86_64/kernel-xen-3.14.21-1.el6xen.x86_64.rpm
wget http://au1.mirror.crc.id.au/repo/el6/x86_64/kernel-xen-firmware-3.14.21-1.el6xen.x86_64.rpm

Force xen packages to install:

rpm -ivh --nodeps xen-4.2.5-4.el6.x86_64.rpm xen-doc-4.2.5-4.el6.x86_64.rpm xen-hypervisor-4.2.5-4.el6.x86_64.rpm  xen-libs-4.2.5-4.el6.x86_64.rpm xen-licenses-4.2.5-4.el6.x86_64.rpm xen-runtime-4.2.5-4.el6.x86_64.rpm

rpm -ivh --nodeps xen-debuginfo-4.2.5-4.el6.x86_64.rpm xen-devel-4.2.5-4.el6.x86_64.rpm xen-ocaml-4.2.5-4.el6.x86_64.rpm xen-ocaml-devel-4.2.5-4.el6.x86_64.rpm

Force kernel packages to install:

rpm -ivh --nodeps --force kernel-xen-3.14.21-1.el6xen.x86_64.rpm kernel-xen-firmware-3.14.21-1.el6xen.x86_64.rpm

Fix location of python scripts:

mv /usr/lib64/python2.6/site-packages/xen /usr/lib64/python2.7/site-packages
mv /usr/lib64/python2.6/site-packages/xen-3.0-py2.6.egg-info /usr/lib64/python2.7/site-packages


Fix libraries:

cd /usr/lib64
ln -s libpython2.7.so.1.0 libpython2.6.so.1.0
ln -s liblzma.so.5.0.99 liblzma.so.0
ln -s libgnutls.so.28.20.4 libgnutls.so.26


Configure grub2 to boot the hypervisor:

edit /etc/default/grub :
GRUB_DEFAULT="CentOS Linux, with Xen hypervisor"

grub2-mkconfig --output=/boot/grub2/grub.cfg
chkconfig --level 2345 xend on

systemctl stop NetworkManager
systemctl disable NetworkManager

Create a network initialization script (replacing eth0,a.b.c.d and e.f.g.h with your adapater,IP address and gateway address):

Edit /etc/xen/scripts/xenbr0.sh:
#!/bin/bash
brctl addbr xenbr0
ip addr flush eth0
ip addr add a.b.c.d/24 broadcast a.b.c.255 dev xenbr0
ifconfig xenbr0 up
ip route add default via e.f.g.h
brctl addif xenbr0 eth0


Edit service definition file to start it on boot after network:

Edit /usr/lib/systemd/system/xenbr0.service:
[Unit]
Description=Xen Bridged Network
After=syslog.target network.target remote-fs.target nss-lookup.target

[Service]
Type=oneshot
ExecStart=/etc/xen/scripts/xenbr0.sh
ExecStop=/etc/xen/scripts/xenbr0.sh
RemainAfterExit=true
PrivateTmp=true

[Install]
WantedBy=multi-user.target

systemctl enable xenbr0


Reboot and you have Xen 4 on Centos 7.

Walker

 
Previous Previous
 
Next Disabled
  Forum  Open Source Tec...  Linux Server  Installing Xen4 on Centos 7
Send me One Million FREE Guaranteed Visitors