Kroko Just another WordPress weblog

May 3, 2010

Install Xenserver Hetzner for DS 5000 Guest Networking Enabled

Filed under: Uncategorized — admin @ 3:13 pm

I have tested XensServer and i am very impress with it performance, compare to Vmware Esxi or Server. even with Openvz (only Linux)

It takes me awhile until i am able to get it working on my dedicated server in Hetzner which has Diffrent IP addressing
First of all we would need :
– A webserver apart from the Dedicated server that we want to install XenServer.
– XenServer-5.5.0-Update2-install-cd.iso
– Fresh Install Centos Installed on Hetzner. ( this can be done on rescue mode Linux 32bit) and login to your server and execute “installimage” then follow all the wizard which kinda straight forward.
Ok here we are.
1. Download XenServer-5.5.0-Update2-install-cd.iso on your other webserver apart from hetzener we would use this server as source installation.
2. mount this iso with this command
# mount -o loop FREE_XenServer-5.5.0-install-cd.iso /mnt
# mkdir /var/www/xenserver
# cp -a /mnt/* /var/www/xenserver

3. Create file called xenserver.xml in /var/www/xenserver with this content below according to your needs.
<installation mode=”fresh” srtype=”lvm”>
<primary-disk gueststorage=”yes”>sda</primary-disk>
<source type =”url”>http://your_webserverip/xenserver</source>
<!– No Post install scripts configured –>
<admin-interface name=”eth0″ proto=”static”>
Attention: You must fill with your own IP and Gateway from Hetzener.
4. Login to your Dedicated server which we want to install XenServer and copy these 3 files from the iso files you have mounted and copy to your webserver public directory
#cd /boot
#wget http://your_webserverip/xenserver/boot/vmlinuz
#wget http://your_webserverip/xenserver/boot/xen.gz
#wget http://your_webserverip/install.img

5. Once they are downloaded to your Centos edit your /boot/grub/menu.1st
# Hetzner Online AG – installimage
# GRUB bootloader configuration file
timeout 5
default 1
title CentOS Linux (2.6.18-128.1.16.el5)
root (hd0,1)
kernel /boot/vmlinuz-2.6.18-128.1.16.el5 ro root=/dev/md2 vga=0×317
initrd /boot/initrd-2.6.18-128.1.16.el5.img
title Install Xenserver
root (hd0,1)
kernel /boot/xen.gz dom0_mem=752M acpi=off nosmp noapic noirqbalance
module /boot/vmlinuz answerfile=http://my_webserver_ip/xenserver/xenserver.xml install
module /boot/install.img

6. now reboot your Centos and start to check the installation log by logging to your webserver and check tail -f access_log
it might take some times depend on the connection between the two servers.
Once installation has been completed login to your fresh new Xenserver.. and start to configure the networking….
7. Makse sure your /etc/sysctl.conf has this :
# Kernel sysctl configuration file for Red Hat Linux
# For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and
# sysctl.conf(5) for more details.
# Controls IP packet forwarding
net.ipv4.ip_forward = 1
# Controls proxy arp
net.ipv4.conf.default.proxy_arp = 1
# Turn off redirects
net.ipv4.conf.all.send_redirects = 0
net.ipv4.conf.default.send_redirects = 0
net.ipv4.conf.lo.send_redirects = 0
net.ipv4.conf.xenbr0.send_redirects = 0
and validated with ’systcl -p’
# sysctl -p
net.ipv4.ip_forward = 1
net.ipv4.conf.default.proxy_arp = 1
net.ipv4.conf.all.send_redirects = 0
net.ipv4.conf.default.send_redirects = 0
net.ipv4.conf.lo.send_redirects = 0
net.ipv4.conf.xenbr0.send_redirects = 0
net.ipv4.conf.default.rp_filter = 1
net.ipv4.icmp_echo_ignore_broadcasts = 1
net.ipv4.conf.default.accept_source_route = 0
net.ipv4.conf.all.accept_redirects = 0
net.ipv4.conf.all.send_redirects = 0
kernel.sysrq = 1
kernel.core_uses_pid = 1
net.ipv4.tcp_syncookies = 1
kernel.msgmnb = 65536
kernel.msgmax = 65536
kernel.shmmax = 4294967295
kernel.shmall = 268435456
vm.dirty_ratio = 5
kernel.printk = 4 4 1 4

8. Disable SeLinux with
# system-config-securitylevel-tui
9. add your additional subnetwork to your xenserver
# ip addr add dev xenbr0
10. shutdown the iptables
# service iptables stop
11. Create Dummy interface as we would use this as gateway for all Guest machine (Linux or Windows)
let say you have this Ip subnet from Hetzner until
HostMin: (this one we would use as gatway for our guesthost)
# nano /etc/sysconfig/network-scripts/ifcfg-xenbr0:1

12. bring our xenguest gateway ip up
#ifup xenbr0:1
13. now you can use this range until
Good luck
Thanks to : Jonathan Thorpe

1 Comment »

  1. Thanks for finally talking about > Install Xenserver Hetzner for DS
    5000 Guest Networking Enabled | Kroko < Liked it!

    Comment by heroes of dragon age cheats — January 17, 2014 @ 1:54 pm

RSS feed for comments on this post.

Leave a comment

Powered by WordPress