Home > Virtual Data Centre Tips > Data centre virtualisation > Managing virtual machines in Red Hat Enterprise Linux 5.4
Virtual Data Centre Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

DATA CENTRE VIRTUALISATION

Managing virtual machines in Red Hat Enterprise Linux 5.4


Sander van Vugt, Contributor
12.22.2009
Rating: --- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


Managing virtual machines (VMs) in Red Hat Enterprise Linux 5.4 with the VM management tools virt-manager and virsh makes it easier to get a handle on your Kernel-based Virtual Machine (KVM) environments.

Red Hat Enterprise Linux 5.4 is the first enterprise Linux distribution that natively supports KVM. In part one of this series, I covered how to set up Red Hat Enterprise Linux 5.4 as a KVM host. Part two explains how to create VMs in a host. Here, in part three, I discuss managing virtual machines using virt-manager and virsh.

Understanding VM management tools in Red Hat Enterprise Linux 5.4 begins with libvirt -- the virtualisation library that allows VM management on host platforms, even if the VMs are in a KVM environment or reside on top of a Xen hypervisor.

There are two VM management tools that communicate with libvirt: the graphical tool virt-manager and the command line tool virsh. The purpose of each of these VM management tools is completely different, however. While virt-manager was designed as a graphical interface to make managing virtual machines easy, virsh was created to give users full control over VM management.

Managing virtual machines with virt-manager
Because virt-manager makes VM management simple, it has a limited set of management actions -- mainly related to VM operational states and hardware management.

The virt-manager management tasks are offered on the following three tabs:
  • The Console tab grants access to the VM console and allows users to work directly on the VM.
  • The Overview tab permits users to monitor the current VM operational status and resource usage.
  • The hardware tab controls the VM hardware settings. Options include VM memory and storage allocation and changing the network settings.

Figure 1
Virt-manager uses three tabs to organise VM management. (Click image for an enlarged view.)

There are three buttons above the tabs that manage the VM operational status. From here, an administrator can start, stop or temporarily pause a machine. Also, if a KVM environment is configured for virtual machine live migration, this option is accessible through the Virtual Machine > Migrate menu.

Performing advanced management tasks using virsh
Managing virtual machines with virsh is completely different. As mentioned before, virsh is designed to manage every VM feature through a master command and subcommands. For a complete overview of the commands, type virsh help. You may notice that there are a lot, however, there is help for each command -- just enter virsh help . Use virsh help uri, for example, for a full explanation of the virsh uri command.

The learning curve for virsh is steep because there are so many commands. Once you've gained a strong command foundation, however, it's easy to appreciate virsh's versatility.

((Content component not found.)) Sander van Vugt is an independent trainer and consultant based in the Netherlands. Van Vugt is an expert in Linux high availability, virtualisation and performance and has completed several projects that implement all three. He is also the writer of various Linux-related books, such as Beginning the Linux Command Line, Beginning Ubuntu Server Administration and Pro Ubuntu Server Administration.


Rate this Tip
To rate tips, you must be a member of SearchVirtualDataCentre.co.UK.
Register now to start rating these tips. Log in if you are already a member.




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
Data centre virtualisation
Managing Virtual Hard Disk data with encapsulation
Unix to Linux migration implementation: Porting, upgrading and testing
Antivirus scans: How to improve performance in virtual environments
Selecting hardware for VMware ESX environments: Look before you leap
Why did the VMware instructor take the Hyper-V training course?
Optimising Windows startup
AD Rights Management Services and the protection within
Architecting a Hyper-V disaster recovery site
Public vs. private clouds
Making desktops virtual: A reality check

Virtualisation management and strategy
IBM unveils zEnterprise mainframe
Number of Hyper-V ISVs growing, but users need more
VMware View users forced to find alternatives for profile management
VMware posts strong second quarter results
Uptime Institute unveils Accredited Tier Specialist course for IT managers
Green Grid debuts four categories for measuring PUE
Rackspace unveils open source cloud platform
IBM cuts ribbon on cloud computing centre in Germany
Oracle releases latest Sun Ray software
IBM joins forces with European Union on e-services research

Hypervisors
Number of Hyper-V ISVs growing, but users need more
VMware View users forced to find alternatives for profile management
VMware posts strong second quarter results
VMware boosts performance with vSphere 4.1
VMware View 4.5 minus RTO equals partner snafu
Swiss Federal Institute of Technology Zurich opts for IBM hot water-cooled supercomputer
New Uptime Institute standard for data centre managers
A VMware 2010 report card
Red Hat and Cisco integrate Enterprise Virtualisation and VN-Link
VMware View 4.5 to ship late, minus profile management

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.

About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




All Rights Reserved, Copyright 2009 - 2010, TechTarget | Read our Privacy Policy
  TechTarget