public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* QEMU / KVM support in libvirt & virt-manager
@ 2007-02-22 22:16 Daniel P. Berrange
       [not found] ` <20070222221654.GR22473-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: Daniel P. Berrange @ 2007-02-22 22:16 UTC (permalink / raw)
  To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

FYI, as of libvirt 0.2.0  and virt-manager 0.3.1 there is now (experimental!)
support for managing virtual machines running under QEMU or KVM virtualization
platforms, as well as the existing Xen support.

Project sites:

  http://libvirt.org/
  http://virt-manager.org/

Release announcements here:

  http://www.redhat.com/archives/libvir-list/2007-February/msg00033.html
  http://www.redhat.com/archives/et-mgmt-tools/2007-February/msg00121.html

A little background info, since we've not updated any docs yet... (yes we
suck, will do better with docs soon)

The QEMU driver provides a spawn-on-demand daemon which manages all the QEMU
instances, their monitor consoles, and config files for offline guest VMs.
The KVM support is implemented as part of the generic QEMU driver in libvirt,
and can be activated by setting the domain type to 'kvm' in the XML description
of a guest being created. As an example description of a KVM guest with QEMUs
slirp based user networking, a single harddisk and VNC graphics console, the
XML would look like:

  <domain type='kvm'>
    <name>demo</name>
    <uuid>c7a5fdb0-3daf-9455-926a-d65c16db1809</uuid>
    <memory>403456</memory>
    <currentMemory>403456</currentMemory>
    <vcpu>1</vcpu>
    <os>
      <type arch='i686' machine='pc'>hvm</type>
      <boot dev='hd'/>
    </os>
    <devices>
      <emulator>/usr/bin/qemu</emulator>
      <disk type='file' device='disk'>
        <source file='/home/berrange/q.img'/>
        <target dev='hda'/>
      </disk>
      <interface type='user'>
      </interface>
      <graphics type='vnc' port='-1'/>
    </devices>
  </domain>

The 'virsh' tool can be used to interact with libvirt & QEMU/KVM from the 
shell by specifying an explicit hypervisor URI. eg to list machines:

   virsh --connect  qemu://session  list

The 'virt-install' tool has also been adapted to support provisioning of
QEMU / KVM guests, for example:

   virt-install \
       --connect qemu://session \
       --name demo \
       --ram 400 \
       --file /home/berrange/q.img \
       --cdrom /home/berrange/fedora-core-6-boot-x86_64.iso \
       --accelerate  \
       --vnc \
       --vncport 5905

Finally, 'virt-manager' has been adapted to support all its usual management
capabilities for QEMU / KVM guests. Simply select 'QEMU' as the hypevisor
type when it puts up the initial 'open connection' dialog.

NB. These are the very first prototype releases to support QEM & KVM and
we know of many bugs[1] / limitations. We expect to have updated releases over
the coming weeks/months which will make it much more robust / generally useful
to regular users....

Regards,
Dan.

[1] The spawn-on-demand bit is broken, so requires /usr/libexec/libvirt_qemud
    to be run manually.
-- 
|=- Red Hat, Engineering, Emerging Technologies, Boston.  +1 978 392 2496 -=|
|=-           Perl modules: http://search.cpan.org/~danberr/              -=|
|=-               Projects: http://freshmeat.net/~danielpb/               -=|
|=-  GnuPG: 7D3B9505   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505  -=| 

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2007-02-27 15:31 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-22 22:16 QEMU / KVM support in libvirt & virt-manager Daniel P. Berrange
     [not found] ` <20070222221654.GR22473-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2007-02-25  5:32   ` Avi Kivity
     [not found]     ` <45E11F8A.8080306-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-02-25  8:34       ` Avi Kivity
     [not found]         ` <45E14A07.6090207-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-02-25 16:29           ` Daniel P. Berrange
     [not found]             ` <20070225162945.GA13570-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2007-02-27 15:20               ` Avi Kivity
     [not found]                 ` <45E44C3B.3010305-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-02-27 15:31                   ` Daniel P. Berrange
2007-02-25 15:50       ` Daniel P. Berrange
     [not found]         ` <20070225155025.GB4132-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2007-02-25 16:48           ` Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox