Professional Documents
Culture Documents
KANNAN. G
Senior Research Associate, CARE, Grid Lab, MIT
Virtualization
Virtualization is a framework or methodology of dividing
techniques create multiple isolated partitions Virtual Machines (VM) or on a single physical server
interface to virtual machines that is similar but not identical to that of the underlying hardware. Binary of the OS needs to be rewritten statically to replace the use of the privileged instructions by appropriate calls into the hypervisor. Eg : XEN
Full Virtualization
Full virtualization allows to create virtual machine environment that enables
guest operating systems to run without modifications. Binary of the OS needs no change. Eg : VMWare Workstation
XEN : Terminologies
Domain 0: The first domain. Privileged to manage other Unprivileged domain: Any domain other than domain0 and Cannot manage other domains Driver domain: A domain that contains physical drivers. Usually this is just domain 0. Physical driver: A device driver (usually in the driver domain) that talks to the hardware domains.
Virtual driver: A device driver (usually in a domU) that fulfils requests by going to the physical driver.
XEN Domain0
Domain 0 is privileged New domains are created by Domain0 Reduces the hypervisor complexity Allows for a better debug environment
Daemons
xend Runs in dom0 Must be running to access management commands Manages VM configuration xendomains Starts VMs when dom0 starts Stops VMs when dom0 stops
memory=128
disk=[file:/virtual/images/vm01.img,hda1,w,file:/virtual/images/vm01 -
swap.img.hda2,w]
vif=[] dhcp=off ip= netmask=, gateway, hostname Extr=3
XEN Commands
xm list xm mem-set xm info xm create c configfile xm shutdown id xm destroy id xm console id
XEN commands..
xm list For displaying the list of domains available in resource Requires no arguments
XEN commands..
xm info For getting more information about the domains Requires no arguments
XEN commands..
xm create c name of configuration file For creating the virtual machine using configuration file Requires a configuration file for the creation
Sample configuration file named compnode
XEN commands..
xm create c compnode
XEN commands..
xm console domainID For logging into virtual machine Requires a ID of virtual machine
XEN commands..
Xm destroy domainID For the destroy of the virtual machinese Requires a ID of virtual machine
VM Migration
VM Migration Moving a VM from one physical machine to another, without interrupting the VM's state. IP address follows the VM, so networking is not interrupted Live Migration Migration with minimal down-time (10's of ms) Streams VM's pages over network while VM is still running Commands for migration xm migrate id destination-host xm migrate id destination-host
References
http://www.xen.org/ http://en.wikipedia.org/wiki/Xen http://sourceforge.net/projects/xen/
Thank you