Virtualization using Xenserver

In this post I am going to share my experience with Xenserver.

I have implemented Xenserver for Virtualization. I feel this is better than community version of VMware Server & equipped with more features.

Features.

Xencenter to manage multiple xenservers.

VLAN.

Using pool resource you get auto shift of VM in case of one of xenserver fails.

You can download latest version of Xenserver & Xencenter from http://www.citrix.com/xenserver/download

Refer for Installation.

You need to enable Virtualization support in BIOS, you can find it under CPU configuration.

Following is the guideline to configure xenserver for production use.

Start Xencenter

Add new server (here I am using xenserver1 & xenserver2)

xen_add_server11

xen_add_server12

Add ISO library for installation source.

Click on new store, here you can select NFS / CIFS for ISO library.

xen_add_isostore1

I am using NFS for ISO library.

xen_add_isostore2

Mention ip_address:/nfs_share

e.g 192.168.0.1:/home/iso

xen_add_isostore3

Add Virtual Disk Storage

you can use SAN / NAS for remote virtual storage. (this is helpful to achieve load balance / redundancy. If you are not using HA Licensed, this will help you start VM running on failed server to another server with minimum downtime.)

xen_add_nfs1

xen_add_nfs2

4xen_with_allstore

Add another server.

5xen_with_allserver

Adding pool

Click on new pool

xen_add_pool1

Mention pool name

xen_add_pool2

Select xenservers to add in new pool, here xenserver1 is kept as master server.

xen_add_pool3

xen_add_pool4

Create new VM for both Xenservers.

I have created CentOS on Xenserver1 & Windows 2000 on Xenserver2

7xen_with_vm

In case of Master failed.

Run following commands on Xensevrer2. After successful completion of below commands Xenserver2 will act as master & will accept connections from slave.

8xen2_tobmaster

Here Xenserver2 is active as master. You can notice VM-CentOS created on Xenserver1 is moved to parent & can be started from Xenserver2.

Note: If mater server is failed while VM is active, it may corrupt OS. You need to buy license for HA.

If you can afford downtime continue with Free version & keep regular backup of configured VM.

9xen_with_xen2master

In case of slave failed, all VMs are accessible through master (there is no need to run any command on console.)

10xen_with_xen1master

Once Xenserver1 is online. You can define same commands to switch Xenserver1 to master mode.

xe pool-emergency-transition-to-master
xe pool-recover-slaves

11xen_with_xen1master

Configure VLAN

to enable VLAN, ensure one interface of server is connected to Trunk port of L3 switch.

Click on Pool –> Network –> Add Network.

xen_vlan1

Select External Network as network type.

xen_vlan2

Enter description

xen_vlan3

Select NIC (where trunk is terminated) & enter VLAN ID.

xen_vlan4

xen_vlan5

Add interface in desired VM

Select Network & click on Add Interface

xen_vlan6

xen_vlan7

xen_vlan8


if you find any missing point in here, please let us know in comment section or tweet us at @linuxreaders. To get more articles like this, subscribe to our RSS feeds / Mails.

Article by Dhaval Thakar

Hi, I am Linux Admin. You'll find my articles small & without much descriptions.
Read 218 articles by
  • Pingback: Save Power using Wake On Lan | LinuxReaders

  • http://www.userful.com bj79

    A really interesting green computer technology I found is Userful Multiplier. It’s where multiple people can use the same computer at the same time each with their own monitor, mouse and keyboard. This saves a lot of electricity and e-waste. A company called Userful recently set a virtualization world record by delivering over 350,000 virtual desktops to schools in Brazil. They have a free 2-user version for home use too. Check it out: userful.com

Archives

Categories

Page optimized by WP Minify WordPress Plugin