lynuxstuff.com / Virtualization using XEN

Advertising Online

Advertising Online

Advertising Online

Advertising Online

Redhat linux virtualization with XEN PDF Print E-mail
User Rating: / 0
PoorBest 
Article Index
Redhat linux virtualization with XEN
redhat linux virtualization with xen 2

Linux virtualization mainly uses xen packages ,it includes Xen hypervisor and Xen tools
To install the xen and kernel-xen packages, run:

# yum install xen kernel-xen

Other recommended packages for xen are
python-virtinst
Provides the virt-install command for creating virtual machines.
libvirt-python
The libvirt-python package contains a module that permits applications written in the Python programming language to use the interface supplied by the libvirt library to use the Xen
virtualization framework.
Libvirt
libvirt is an API library which uses the Xen virtualization framework, and the virsh command line tool to manage and control virtual machines.

virt-manager
Virtual Machine Manager provides a graphical tool for administering virtual machines. It uses libvirt library as the management API.

To install the other recommended virtualization packages, use the command below:

# yum install virt-manager libvirt libvirt-python libvirt-python python-virtinst

Installing guest using virt-install

We can start the installation process using either the New button in virt-manager or use the command line interface virt-install.If you are using the virt-install CLI command and you select the --vnc option for a graphical installation you will also see the graphical installation screen as shown below.

The possible options for virt-install are


h, --help show this help message and exit
-n NAME, --name=NAME Name of the guest instance
-r MEMORY, --ram=MEMORY Memory to allocate for guest instance in megabytes
-u UUID, --uuid=UUID UUID for the guest; if none is given a random UUID
will be generated
-f DISKFILE, --file=DISKFILE File to use as the disk image
-s DISKSIZE, --file-size=DISKSIZE Size of the disk image (if it does not
exist) in gigabytes
-m MAC, --mac=MAC Fixed MAC address for the guest; if none is given a
random address will be used
-b BRIDGE, --bridge=BRIDGE Bridge to connect guest NIC to, if none
specified, the
default (xenbr0) is used
--vnc Use VNC for graphics support
--vncport=VNCPORT Port to use for VNC
--sdl Use SDL for graphics support
--nographics Don't set up a graphical console for the guest.
--noautoconsole Don't automatically try to connect to the guest console
-v, --hvm This guest should be a fully virtualized guest
-c CDROM, --cdrom=CDROM File to use a virtual CD-ROM device for fully
virtualized guests

-p, --paravirt This guest should be a para-virtualized guest
-l LOCATION, --location=LOCATION Installation source for para-virtualized
guest
(eg, nfs:host:/path, http://host/path, ftp://host/path)
-x EXTRA, --extra-args=EXTRA Additional arguments to pass to the installer
with para-virt guests
-d, --debug Print debugging information

Create a guest using virt-manager

1. To start virt-manager execute the following as root in your shell:

# virt-manager &

The virt-manager opens a new virt-manager application graphical user interface. If you do not have root privileges the New button will be grayed out and you will not be able to create a new virtual machine.

2. You will see a dialog box as the one below. Select the Connect button and the main virt-manager window will appear:

3.The main virt-manager window will allow you to create a new virtual machine using the New button:




 
powered by Disqus
  4checks.com- Text Links- Top Product- BUTTERFLIES from Classic Checks by Check Gallery
Page Rank Check

paypal

Subscribe

Bookmark and Share

counter

Bidhere.com



-->