virtual machine virtual machine this is a presentation on how to install and begin using xen....

12
Virtual Machine Virtual Machine This is a presentation on how to This is a presentation on how to install and begin using Xen. install and begin using Xen. Researched and Created by Bryan Bankhead

Upload: juan-west

Post on 27-Mar-2015

212 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Virtual Machine Virtual Machine This is a presentation on how to install and begin using Xen. Researched and Created by Bryan Bankhead

Virtual Machine Virtual Machine

This is a presentation on how to install and This is a presentation on how to install and begin using Xen.begin using Xen.

Researched and Created by Bryan Bankhead

Page 2: Virtual Machine Virtual Machine This is a presentation on how to install and begin using Xen. Researched and Created by Bryan Bankhead

About XenAbout XenXen is a virtual machine program that is very Xen is a virtual machine program that is very

lightweight. Unlike most Virtual Machine lightweight. Unlike most Virtual Machine programs that bring up the OS in a window, programs that bring up the OS in a window,

with Xen you actually boot to your Virtual with Xen you actually boot to your Virtual Machine with Xen in the background. By Machine with Xen in the background. By doing this you can run multiple machines doing this you can run multiple machines simultaneously without wasting as many simultaneously without wasting as many

resources. FYI Xen is only for Linux and it is a resources. FYI Xen is only for Linux and it is a little bit more complicated that other little bit more complicated that other

alternatives.alternatives.

Page 3: Virtual Machine Virtual Machine This is a presentation on how to install and begin using Xen. Researched and Created by Bryan Bankhead

Step One: DownloadingStep One: DownloadingThe first step in this process is to download The first step in this process is to download the Xen program for your Linux Operating the Xen program for your Linux Operating

System. This can be done by going to System. This can be done by going to www.xensource.com/products/downloadswww.xensource.com/products/downloads

Page 4: Virtual Machine Virtual Machine This is a presentation on how to install and begin using Xen. Researched and Created by Bryan Bankhead

Step Two: InstallingStep Two: Installing Tarball- Once you have downloaded the tarball extract it to Tarball- Once you have downloaded the tarball extract it to your desktop. Then open your your desktop. Then open your terminal, and navigate to terminal, and navigate to

the extracted folder and run: “sh ./install.sh”. the extracted folder and run: “sh ./install.sh”.

RPM- To install a RPM download it, navigate to it with the RPM- To install a RPM download it, navigate to it with the terminal and type the terminal and type the

command “rpm -ivh xen-version.rpm”.command “rpm -ivh xen-version.rpm”.

Page 5: Virtual Machine Virtual Machine This is a presentation on how to install and begin using Xen. Researched and Created by Bryan Bankhead

Step Three: Editing the Step Three: Editing the BootloaderBootloader

Once you have installed Xen you will need to Once you have installed Xen you will need to add Xen to your bootloader so that you can add Xen to your bootloader so that you can boot to the virtual machine. If you use Grub boot to the virtual machine. If you use Grub

as your boot loader the config file is located in as your boot loader the config file is located in /etc/grub.conf./etc/grub.conf.

To get there go to the terminal and type “cd To get there go to the terminal and type “cd /etc” then type “vi grub.conf”/etc” then type “vi grub.conf”

Note: Grub entries will be different based on Note: Grub entries will be different based on hardware and volume names.hardware and volume names.

Page 6: Virtual Machine Virtual Machine This is a presentation on how to install and begin using Xen. Researched and Created by Bryan Bankhead

Step Three cont: grub.conf Step Three cont: grub.conf entryentry

This is an example of the grub entry. This is an example of the grub entry.

Note: some parts of this entry Note: some parts of this entry willwill vary. vary.

This is the part you want

Page 7: Virtual Machine Virtual Machine This is a presentation on how to install and begin using Xen. Researched and Created by Bryan Bankhead

Step Four: RebootStep Four: RebootOnce you have created the entry in grub.conf reboot and Once you have created the entry in grub.conf reboot and

select Xen in the bootloader to test it. If it works it will select Xen in the bootloader to test it. If it works it will boot up and bring you your native operating system. At boot up and bring you your native operating system. At first it may seem like nothing happened but if you type first it may seem like nothing happened but if you type

the command: the command:

““uname -r” it should come up with something like: uname -r” it should come up with something like:

“2.6.16-xen”.“2.6.16-xen”.

Page 8: Virtual Machine Virtual Machine This is a presentation on how to install and begin using Xen. Researched and Created by Bryan Bankhead

The next step in the process is to setup a The next step in the process is to setup a

virtual machine. If you take the time there is a virtual machine. If you take the time there is a

very nice program called virt-manager. It adds very nice program called virt-manager. It adds

a GUI to Xen making it much easier to add a GUI to Xen making it much easier to add

and maintain virtual machines. This can be and maintain virtual machines. This can be

found at found at

http://virt-manager.et.redhat.com/index.htmlhttp://virt-manager.et.redhat.com/index.html

Step Five: Virt-ManagerStep Five: Virt-Manager

FYI: Fedora Core 6 comes pre-installed with Xen and Virt-manager.

Page 9: Virtual Machine Virtual Machine This is a presentation on how to install and begin using Xen. Researched and Created by Bryan Bankhead

Click connectClick connect

Step Six: Using Virt-managerStep Six: Using Virt-manager

Page 10: Virtual Machine Virtual Machine This is a presentation on how to install and begin using Xen. Researched and Created by Bryan Bankhead

Then you can create or edit your virtual Then you can create or edit your virtual

machines through your Virt manager.machines through your Virt manager.

Step Six: Using Virt-managerStep Six: Using Virt-manager

Page 11: Virtual Machine Virtual Machine This is a presentation on how to install and begin using Xen. Researched and Created by Bryan Bankhead

You can also connect to the virtual machines You can also connect to the virtual machines

to work on the individual virtual machines.to work on the individual virtual machines.

Step Six: Using Virt-managerStep Six: Using Virt-manager

Page 12: Virtual Machine Virtual Machine This is a presentation on how to install and begin using Xen. Researched and Created by Bryan Bankhead

The End The End

For more information you can visit For more information you can visit www.cl.cam.ac.uk/research/srg/netos/xen/readmes/user.pdfwww.cl.cam.ac.uk/research/srg/netos/xen/readmes/user.pdf

and for more information on virt-managerand for more information on virt-manager

you can visityou can visithttp://virt-manager.et.redhat.com/index.htmlhttp://virt-manager.et.redhat.com/index.html