Cole Robinson [Tue, 16 Jun 2009 15:42:46 +0000 (15:42 +0000)]
Set default emulator in domain_conf.*, rather than the driver.
Rather than numerous instances of:
emulator = vm->def->emulator;
if (!emulator)
emulator = virDomainDefDefaultEmulator(conn, vm->def, driver->caps);
if (!emulator)
return -1;
Set this value at XML parse time in the domain config, so we can depend on
it for all future emulator accesses. There were unchecked accesses in the
qemu driver that were tripping up on this if no emulator was specified in
the XML, see:
Daniel Veillard [Thu, 11 Jun 2009 14:25:19 +0000 (14:25 +0000)]
extract serial number from HAL storage backend
* src/node_device_hal.c src/node_device_conf.[ch]: add support
for serial number in HAL storage backend, patch by Dave Allan
* docs/schemas/nodedev.rng
tests/nodedevschemadata/storage_serial_3600c0ff000d7a2a5d463ff4902000000.xml:
update the schemas and add a test case, also by Dave Allan
Daniel
Mark McLoughlin [Thu, 11 Jun 2009 14:15:49 +0000 (14:15 +0000)]
Detect newer qemu-kvm versions
The KVM version string can be one of the following:
- qemu-kvm-x.y.z in stable releases
- kvm-XX for kvm versions up to kvm-85
- qemu-kvm-devel-XX for kvm version kvm-86 and later
There are only a few of places where we need to detect
differences between KVM versions based on 0.9.1:
1) VNET_HDR introduced in kvm-74
2) -incoming tcp introduced in kvm-79
3) -incoming exec introduced in kvm-80
4) -incoming stdio in all earlier kvm versions
With qemu-kvm-0.10.x, we can now assume that (1) is available
if it's a KVM release, (2) and (3) is always available and
(4) is never available.
So, from now on we should only need to check the qemu version
number and the "is_kvm" flag for detecting feature availability.
We only need the KVM version number for older releases.
Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Daniel Veillard [Thu, 11 Jun 2009 13:18:56 +0000 (13:18 +0000)]
find and use kvm-img, qemu-img or qcow-create dynamically
* configure.in src/libvirt_private.syms src/storage_backend_fs.c
src/util.c src/util.h: find and use kvm-img, qemu-img or qcow-create
dynamically at runtime, patch by Doug Goldstein
* AUTHORS: add Doug Goldstein
Daniel
Daniel Veillard [Thu, 4 Jun 2009 13:56:49 +0000 (13:56 +0000)]
Fix a memory error on Xen device removal
* src/xm_internals.c: the memory shrinking on device removal
didn't copy the right amount of memory, patch by Daniel Berrange
fixes #497051
daniel
Daniel Veillard [Tue, 2 Jun 2009 15:12:53 +0000 (15:12 +0000)]
NPIV implementation for node device create and destroy
* src/Makefile.am src/node_device.[ch] src/node_device_conf.[ch]
src/node_device_hal.[ch] src/node_device_hal_linux.c
src/qemu_driver.c src/remote_internal.c src/storage_backend.c
src/virsh.c src/xen_unified.c tests/nodedevxml2xmltest.c
po/POTFILES.in: implementation for node device create and destroy
in NPIV support, patch by David Allan
Daniel
Daniel Veillard [Fri, 29 May 2009 16:51:15 +0000 (16:51 +0000)]
release of libvirt-0.6.4
* configure.in libvirt.spec.in NEWS docs/* po/*: release of
libvirt-0.6.4
* src/libvirt.c src/virterror.c: some comments cleanups
Daniel
Cole Robinson [Fri, 29 May 2009 14:18:57 +0000 (14:18 +0000)]
network driver: Fix regression defining colliding networks at daemon startup.
If two virtual networks have the same hardcoded bridge device (which
prevents them from being active simultaneously) we still want to define
them at daemon startup, so the user has a fighting chance of correcting
the XML error.
Add an extra flag to SetBridge to avoid reporting an error if there is
a bridge collision, and use this when loading network configs at startup.
Daniel Veillard [Fri, 29 May 2009 13:32:06 +0000 (13:32 +0000)]
PPC Qemu Machine Type update
* src/qemu_conf.c docs/schemas/domain.rng
tests/capabilityschemadata/caps-qemu-kvm.xml: PPC Qemu Machine Type
changed from g3bw to g3beige some time ago, patch by Thomas Baker
Daniel
Daniel Veillard [Fri, 29 May 2009 12:27:45 +0000 (12:27 +0000)]
fix storage volume inconsistencies in schema and doc
* docs/schemas/storagevol.rng docs/formatstorage.html[.in]
tests/storagevolschemadata/vol-qcow2.xml: fix storage volume
inconsistencies in schema and document, patch by Ryota Ozaki
daniel
Daniel Veillard [Mon, 25 May 2009 11:56:00 +0000 (11:56 +0000)]
Include the OpenNebula driver
* src/opennebula/one_conf.[ch] src/opennebula/one_driver.[ch]:
the OpenNebula driver
* configure.in include/libvirt/virterror.h qemud/Makefile.am
qemud/qemud.c src/Makefile.am src/domain_conf.[ch] src/driver.h
src/libvirt.c src/virterror.c: integration of the OpenNebula
driver in the libvirt infrastructure
* AUTHORS: add Abel Miguez Rodriguez
daniel
Daniel Veillard [Mon, 25 May 2009 09:44:10 +0000 (09:44 +0000)]
Fix the example code for event handling in C
* examples/domain-events/events-c/event-test.c: fixed the example
code for event handling, patch by Pritesh Kothari
daniel
Daniel Veillard [Wed, 20 May 2009 13:37:30 +0000 (13:37 +0000)]
cleanup of some direct stderr logging
* qemud/qemud.c src/console.c src/network_driver.c
src/node_device_conf.c src/node_device_hal.c src/storage_conf.c
src/util.c: cleanup of some direct stderr logging
daniel
Cole Robinson [Tue, 19 May 2009 13:37:51 +0000 (13:37 +0000)]
Storage driver implementation for CreateXMLFrom
There is some funkiness here, since we are either dealing with 2 different
pools (which means validation x 2) or the same pool, where we have to be
careful not to deadlock.
Cole Robinson [Tue, 19 May 2009 13:26:14 +0000 (13:26 +0000)]
Fix a possible deadlock in HAL nodedev driver.
The cap_lost and prop_modified callbacks could deadlock if an existing
device needed to be refreshed, since dev_create expects the driver to
be unlocked.
Daniel Veillard [Fri, 15 May 2009 14:00:50 +0000 (14:00 +0000)]
Finish hostonly networks support in vbox
* src/vbox/vbox_driver.c src/vbox/vbox_tmpl.c: last patch for
hostonly networks support in vbox driver, patch by Pritesh Kothari
daniel
Daniel Veillard [Fri, 15 May 2009 09:43:51 +0000 (09:43 +0000)]
generic support for RDP and desktop graphic extensions
* docs/schemas/domain.rng src/domain_conf.[ch] src/qemu_driver.c:
extend the generic code for the RDP and desktop extensions of
the graphic tag needed for vbox, patch by Pritesh Kothari
Daniel
Cole Robinson [Tue, 12 May 2009 20:27:17 +0000 (20:27 +0000)]
Break out FS volume build routines to their own functions.
Improves readability, particularly wrt the pending CreateFromXML changes.
This will also help implementing File->Block volume creation in the future,
since some of this code will need to be moved to a backend agnostic file.
Cole Robinson [Tue, 12 May 2009 20:17:21 +0000 (20:17 +0000)]
Virsh commands vol-clone and vol-create-from
vol-clone is a convenience function, requiring only a volume to clone and a
new name.
vol-create-from is a direct mapping to the public API, which allows cloning
across pools, converting between formats, etc, but requires an xml file to be
passed