Virtuali Sations
Virtuali Sations
Virtuali Sations
It could also be used to expose students to other alternate OSs like *BSD 2.Introduction: Virtualization allows multiple operating system instances to run concurrently on a single computer.It is a means of separating hardware from a single operating system.Each guest OS is managed by a Virtual Machine Monitor(VMM),also known as a hypervisor. Because the virtualization system sits between the guest and the hardware,it can control the guests' use of CPU,memory,and storage,even allowing a guest OS to migrate from one machine to another. Virtualization,in computing,is the creation of virtual version of something such as hardware platform,operating system,a storage device or a network resources. TYPES OF VIRTUALIZATION: 1.PARA VIRTUALIZATION: This requires parting of guest systems.guests run a modified operating system using a special hypercall A.B.T instead of certain architectural features. 2.HARDWARE ASSISTED VIRTUALIZATION: This offers next instruction to support direct calls by a paravirtualised guest/drivers into the hypervisor,typically used for I/O or other hypercalls. It also provides additional execution modes :root mode and non-root mode. The different types of hardware virtualization are Full virtualization Partial virtualization Para virtualization 3.DESKTOP VIRTUALIZATION: It is the concept of separating the logical desktop from the physical machine. 1)SOFTWARE VIRTUALIZATION: a)Operating system level virtualization,hosting of multiple virtualized environments within a single OS instance. b.)Application virtualization and workspace virtualization and the hosting of individual applications in an environment separated from the underlyin OS. 2)MEMORY VIRTUALIZATION: a)Aggregates RAM resources from networked system into a single memory pool. b)Uses virtual memory giving the application program the impression that it has contiguous working memory isolating it from the underlying physical memory implementation. 3)STORAGE VIRTUALIZATION: a)The process of abstracting local storage from physical storage. 4) DATA VIRTUALIZATION: a)The presentation of data as abstract layer independent of the underlying database system. 5)NETWORK VIRTUALIZATION: a)creation of a virtualized network addressing space within or across subnets. 3.Installation procedure: 1.) Xen: XEN is a virtual machine monitor providing services that allow multiple computer operating systems to execute in the same computer hardware concurrently.since 2010,the Ven community develops and maintains XEN as a free software.licensed under GNU GPL it is available for the A-32, *86-64 itanium and A8m computer architecture. PACKAGES REQUIRED FOR BUILDING FROM SOURCE: Yum groupinstall development libraries Yum groupinstall development tools Yum install transfig widget texi2html dev 86 glibc-devel 2fsprogs-devel gitk mkinitrd Xz-devel bzip2-devel pciutils-libs pciutils-devel SDL-devel libx11-devel gtk2-devel bridge-utils Pyxml qemer-common qemer-img mercurial libidn-devel
Yum install glibe-devel i686 Yum install kernel-xen xen virt-manager. Yum install libvirtd Yum install qemu
INSTALLATION FROM SOURCE: hg Clone http://xenbits.xen.org/xen-4.0-testing.hg TO RUN XEN: Compile Xen Compile a demo Kernel which can work with Xen -->To start the server: Service libvirtd start 1.To Download and install DOSBox,an emulator that creates an MS-DOS compatible enviroment and to perform the following: Mount a drive Mount USB drive Try all MS-DOS commands 2.To Download and install XEN Virtualization and their install Ubuntu over XEN. Virtualization using DOSBOX: Install a qemu packages. Download the dos.ios image and extract it. Create a image with memory capacity of 100mb. Change the boot option to load from cdrom. Choose Create a dos partition option Create a primary dos partition. Set the maximum available size for the partition and make the partition active. Restart the system and format the partition. Set the installation path. Once the installation is finished ,restart the system. Use dir commands to list the directories in the drive. Use scfss/scannow the scan the important files. Virtualization Using XEN: Install the kernel xen and virtual manager packages. Start the server. Click application and select virtual manager from application tools. Click create a new virtual machine option from tool bar. Name the virtual machine. Select the installation medium.Choose Use CD Rom option or Use Iso Image. Create a disk image and specify the storage space. Select the virtual type and architecture type and click finish to start the installation. Select the language for installation and time zone. Work with the virtual OS. 2.)KQEMU: QEMU is a process emulator that relies on dynamic binary translation to achieve a reasonable speed while being easy to port on new host CPU architectures. In conjunction with CPU emulation, it also provides a set of device models,allowing it to run on a variety of unmodified guest operating systems. KQEMU is a LINUX kernel module which notably speeds up emulation of x86 or x86-64 guests on platforms with the same CPU architecture. It can be downloaded for free. The file is Kqemu-1.3.0-2.fcl5.x86-64.rpm
Alternatively follow these steps: Step 1: become the root and edit your sources list Nano /etc/apt/sources.list Add this: Deb http://ftp.debian.org/debian unstable Now update by running Apt-get update Aptitude install kvm Step 2: Aptitude install kqemu Step 3: echo kqemu >> /etc/modules Step 4: adduser $USER kvm Adduser $USER kqemu Step 5: qemu-img create debian.img f qemu 5G Step 6: kvm cdrom net-inst.iso hda debian.img m 512 boot d Kvm cdrom /dev/cdrom had debian.img m 512 boot d Qemu no-kvm cdrom /dev/cdrom had debian.img m 512 -boot d Kvm hda debian.img m 512 Qemu img create b debian.img f qcow stable.ovl Kvm had stable.ovl m 512 3.)LGUEST: Lguest allows you to run multiple copies of the same 32-bit kernel.simply modprobe lg, then run Documentation/lguest/lguest to create a new guest. It is about 10 times faster than basic qemu. Conclusion: Virtualization allows users to run different images of operating systems on awork station. Several virtualization environment exist such as DOSBOX,XEN and VMWare. It is a safe way of trying or testing a new operating system(such as FreeBSD,Linux etc.,) Generally even though hardware is shared among the operating systems,performance is not as native as a default installation.