IBM Software, Rackspace, and Amazon use Xen as the bare metal hypervisor for their public cloud clients. Xen is an open source hypervisor. The 4 major hypervisors on the market are in order of market share VMware, Microsoft Hyper-V, and Redhat KVM. Here we explain how to setup a simple Xen install on Ubuntu so you can see how it works and how easy it is to deploy.
Here we used Ubuntu 14.04 and Xen 4.4.
Here is the basic architecture:
Xen – this is the software that boots up when you boot the server.
domain-0 – this controls Xen and all the virtual machines added to the machine.
domain-u – these are the virtual machines.
paravirtual drivers – performance with Windows will be really slow unless you instill the opensource network,
storage, bus, and other paravirtual drivers.
You will need the ISO image of the operating system you want to use.
iface eth0 inet manual
iface xenbr inet dhcp
Assign memory to the domain-0 machine so that it does not run slow when you add VMs by adding this line:
sudo vi /etc/default/grub.d/xen.cfg
That gives domain-0 10GB.
sudo xl sched-credit
You will need to do that each time you boot Xen.
Here is a config file example to get you started:
Save this file anywhere with any name.
builder=’hvm’ (whether you want hardware based, i.e., Intel or AMD, or paravirtual)
memory = 2048 (memory to assign to machine)
cpu=(number of physical CPUs on machine, not cores)
vcpus=(number of CPUs to assign to this VM)
name = (some name)
vif = [‘mac=<some valid mac address, google for how to make one uṕ>,bridge=xenbr’]
disk = [‘phy:(logical volume),hda,w’,’file:(location of ISO),hdc:cdrom,r’]
boot=”dc” (hardrive and then CD rom)
usbdevice=’tablet’ (to make mouse sync up with host mouse)
Everything you need to know about outsourcing technology developmentAccess a special Introduction Package with everything you want to know about outsourcing your technology development. How should you evaluate a partner? What components of your solution that are suitable to be handed off to a partner? These answers and more below.