Jim Meyering
1c9968a2b1
virsh.c: tweak options to produce more accurate help
...
* src/virsh.c: Adjust some vshCmdOptDef command option flags
to improve auto-generated help command syntax.
2008-12-08 13:22:44 +00:00
Jim Meyering
c9319f315c
virsh.c: remove all "syntax" vshCmdInfo entries.
...
* src/virsh.c: ... now that info is generated.
2008-12-08 13:22:13 +00:00
Jim Meyering
34e5d2941c
virsh.c: add missing (yet empty) "desc" strings
...
* src/virsh.c: Now, every command must have a "desc" string,
even if it has zero length. Mark these, so they'll be filled in.
2008-12-08 13:21:30 +00:00
Jim Meyering
6f61232852
virsh.c: generate each "virsh help COMMAND"s synopsis
...
* src/virsh.c: Also, diagnose extra arguments after --help (-h).
2008-12-08 13:14:48 +00:00
Daniel P. Berrange
ca1a1b06d0
Workaround broken limits.h on Debian etch
2008-12-08 11:28:37 +00:00
Daniel P. Berrange
abb02bd18b
Fix autostart of domains with virtual networks used
2008-12-08 11:18:47 +00:00
Daniel P. Berrange
73bc9c163c
Fix NULL crash & integer overflow
2008-12-07 20:45:28 +00:00
Daniel P. Berrange
5abce0805b
Fix test driver storage deadlock
2008-12-07 20:21:46 +00:00
Daniel P. Berrange
a2b2ada85c
Fix return value in testStoragePoolBuild for test driver
2008-12-07 14:08:37 +00:00
Daniel Veillard
466f86052f
Fix a compilation problem with old dbus,
...
Daniel
2008-12-05 15:05:48 +00:00
Daniel P. Berrange
af61834687
Fix Xen proxy build
2008-12-05 10:10:41 +00:00
Daniel P. Berrange
491b4eab14
Remove unused driver arg from monitor APIs
2008-12-04 22:19:30 +00:00
Daniel P. Berrange
746f4373e7
Impl of threading locking APIs
2008-12-04 22:00:14 +00:00
Daniel P. Berrange
d48717054c
Add locking for thread safety to nodedevice drivers
2008-12-04 21:48:31 +00:00
Daniel P. Berrange
e8a4ea75a3
Merge all return paths from node device driver APIs
2008-12-04 21:46:34 +00:00
Daniel P. Berrange
04a31e99fc
Add locking for thread safety to openvz driver
2008-12-04 21:44:55 +00:00
Daniel P. Berrange
e8c92c3b17
Merge all return paths from openvz driver APIs
2008-12-04 21:41:51 +00:00
Daniel P. Berrange
b6ee63d8bb
Add locking for thread safety to storage driver
2008-12-04 21:40:42 +00:00
Daniel P. Berrange
c38d4d54c6
Merge all return paths from storage driver APIs
2008-12-04 21:39:45 +00:00
Daniel P. Berrange
bff6ac7b63
Add locking for thread safety to network driver
2008-12-04 21:38:38 +00:00
Daniel P. Berrange
b6dbbdc9fe
Merge all return paths from network driver APIs
2008-12-04 21:37:52 +00:00
Daniel P. Berrange
055c2b25d2
Add locking for thread safety to UML driver
2008-12-04 21:14:39 +00:00
Daniel P. Berrange
773c8bac35
Merge all return paths from UML driver APIs
2008-12-04 21:13:58 +00:00
Daniel P. Berrange
965c1bfee4
Add locking for thread safety to LXC driver
2008-12-04 21:12:41 +00:00
Daniel P. Berrange
5305c55849
Merge all return paths from LXC driver APIs
2008-12-04 21:11:41 +00:00
Daniel P. Berrange
bc898df2c7
QEMU domain event thread safety
2008-12-04 21:09:20 +00:00
Daniel P. Berrange
3527f16a94
Add locking for (nearly complete) thread safety to QEMU driver
2008-12-04 21:06:41 +00:00
Daniel P. Berrange
ea960fb719
Merge all return paths from QEMU driver APIs
2008-12-04 21:04:30 +00:00
Daniel P. Berrange
8492cd2084
Stub out node device APIs in test driver
2008-12-04 21:00:50 +00:00
Daniel P. Berrange
2a23198886
Add locking for thread safety to test driver
2008-12-04 20:59:06 +00:00
Daniel P. Berrange
3540f6af23
Merge all return paths from test driver APIs
2008-12-04 20:57:47 +00:00
Daniel P. Berrange
069252f0e6
Remove macros for accessing test driver internal state
2008-12-04 20:56:10 +00:00
Daniel P. Berrange
b43401b915
Add thread locking stubs
2008-12-04 20:53:20 +00:00
Daniel Veillard
a2232a5cc2
release of 0.5.1
...
* src/libvirt_sym.version.in configure.in NEWS docs/*: release
of 0.5.1
* po/*: updated and regenerated
daniel
2008-12-04 15:54:26 +00:00
Daniel Veillard
1d9a22b785
fix crash and regression when defining a storage volume without a format
...
* src/storage_conf.c: fix crash and regression when defining
a storage volume without a format (Cole Robinson)
Daniel
2008-12-04 15:22:04 +00:00
Cole Robinson
76944e8137
Fix documentation cut and paste errors, and a virsh typo.
2008-12-04 14:51:57 +00:00
Cole Robinson
b9b9c8b020
Increase timeout for initial monitor poll, to prevent a guest from failing to start if it has to wait for a physical cdrom to spin up.
2008-12-04 14:47:12 +00:00
Daniel Veillard
4fc29fa9f4
patch setting MTU on tap interface
...
* src/bridge.c: patch setting MTU on tap interface to be the same
as the value for the bridge (Eduardo Habkost)
daniel
2008-12-04 14:38:31 +00:00
Guido Günther
1d7d2fae10
Differentiate between active and inactive configs by honoring the
...
VIR_DOMAIN_XML_INACTIVE flag.
2008-12-04 12:02:59 +00:00
Guido Günther
38b402ce13
also look for /usb/bin/kvm
2008-12-04 10:45:31 +00:00
Jim Meyering
fa4fc0321a
fix inadequate initialization in storage and test drivers
...
* src/storage_driver.c (storageListPools): Set all "names" entries to 0.
(storageListDefinedPools, storagePoolListVolumes): Likewise.
* src/test.c (testStoragePoolListVolumes): Likewise.
2008-12-02 15:59:14 +00:00
Chris Lalancette
a904a56c36
Older distributions (i.e. RHEL-5) don't have udevadm at all, but they do
...
have udevsettle. So change our tests to prefer udevadm if it exists, but
to fall back to udevsettle if it does not.
Signed-off-by: Chris Lalancette <clalance@redhat.com>
2008-12-02 12:41:29 +00:00
Daniel P. Berrange
a429e221df
Fix recording of UML driver watch to make inotify work
2008-12-02 11:23:27 +00:00
Jim Meyering
0e9349a28d
uml: don't free an uninitialized variable
...
* src/uml_driver.c (umlDomainShutdown): Initialize "info".
Patch and bug report from Ron Yorston <rmy@tigress.co.uk>.
2008-12-01 11:08:16 +00:00
Daniel P. Berrange
937c1e9e92
Close directory handle when done
2008-11-30 18:37:35 +00:00
Guido Günther
5acdb5761d
Prefer xenstore driver for listDomains, since xen HV reports ghost ids of
...
already shutdown domains in some xen versions
2008-11-28 15:25:04 +00:00
Daniel P. Berrange
d88d459d7b
Allow remote://hostname/ style URIs for automatic driver probe. Fix virGetVersion impl
2008-11-28 12:03:20 +00:00
Daniel P. Berrange
319b83fc28
Fix XM driver handling of disk source paths
2008-11-28 11:23:34 +00:00
Daniel P. Berrange
c23ff311fc
Fix libnuma use to build with v1 compatability code
2008-11-28 11:20:27 +00:00
Chris Lalancette
a9567e09ef
Instead of relying solely on polling for /dev devices to appear in libvirt, we
...
really should be synchronizing against udev. This is generally done by a call
to udevsettle, which is exactly what this patch implements for the storage
backends that are likely to create new /dev nodes. I believe I've read that
even after udevsettle, you are not guaranteed that devices are all the way
created, so we still need the polling in the rest of the sources, but this
should give us a much better chance of things existing as we expect.
Signed-off-by: Chris Lalancette <clalance@redhat.com>
2008-11-28 07:50:20 +00:00
Chris Lalancette
d20d6b1bb0
Currently libvirt can race with udev
...
creation of /dev/disk/by-{id,path}, so if we fail to open the directory, retry
up to 5 seconds. This is only likely to happen on hosts that are:
1) diskless (so /dev/disk/by-{id,path} doesn't exist already), and
2) slow, and/or heavily loaded (meaning that udev can take some time to create
the /dev nodes).
Signed-off-by: Chris Lalancette <clalance@redhat.com>
2008-11-28 07:42:21 +00:00
Daniel Veillard
431d40fa9c
* src/xen_unified.c: use preferably xend method to update
...
the maximum memory of a xen guest (Jim Fehlig)
Daniel
2008-11-27 16:16:13 +00:00
Daniel Veillard
517ff04bec
Release of 0.5.0
...
* configure.in docs/* NEWS: release of 0.5.0
* po/*: updated from the translators and merged
* docs/apibuild.py src/libvirt.c: avoid some warnings at doc
generation time
daniel
2008-11-25 15:48:11 +00:00
Daniel P. Berrange
5a01629128
Add missing translations
2008-11-25 11:18:08 +00:00
Daniel P. Berrange
8f7e086f19
Implement autostart for XM driver
2008-11-25 11:04:34 +00:00
Daniel P. Berrange
1eeceaa649
Support domain lifecycle events for Xen (Ben Guthro & Daniel Berrange)
2008-11-25 10:44:52 +00:00
Daniel P. Berrange
b2dbfefcf3
Avoid symbol clash with win32 headers and node device APIs
2008-11-25 10:37:02 +00:00
Jim Meyering
9a7c05d995
* src/virterror.c (virReportErrorHelper): Sync doc to code.
2008-11-25 10:32:27 +00:00
Jim Meyering
335de2ba1f
libvirt.c: document the virState* functions
...
* src/libvirt.c (virStateActive, virStateCleanup, virStateReload):
(virStateActive): Add per-function comments.
2008-11-25 10:31:52 +00:00
Daniel P. Berrange
1ad44362e3
Set default vCPUs to match pCPUs for OpenVZ containers (Evgeniy Sokolov )
2008-11-24 19:34:21 +00:00
Guido Günther
4b4a6d9d56
* src/Makefile.am: look for libvirt_sym.version in builddir
2008-11-24 15:07:45 +00:00
Jim Meyering
62bcd5d32b
tests: new test: virsh-synopsis
...
* tests/virsh-synopsis: new file
* tests/Makefile.am (test_scripts): Add virsh-synopsis.
* src/virsh.c: Correct help SYNOPSIS for each of seven commands.
When I first ran this script, "make check" failed like this:
...
invalid help SYNOPSIS for net-create:
create a network from an XML <file>
invalid help SYNOPSIS for net-define:
define a network from an XML <file>
invalid help SYNOPSIS for net-start:
start <network>
invalid help SYNOPSIS for pool-create:
create a pool from an XML <file>
invalid help SYNOPSIS for pool-define:
define a pool from an XML <file>
invalid help SYNOPSIS for pool-start:
start <pool>
invalid help SYNOPSIS for vol-create:
create <file>
FAIL: virsh-synopsis
2008-11-24 07:13:29 +00:00
Jim Meyering
4733f0a781
* gnulib/tests/test-EOVERFLOW: Remove.
...
* gnulib/tests/.cvsignore: Add test-EOVERFLOW, then...
Run "make sync-vcs-ignore-files" to Update .gitignore files.
2008-11-24 07:09:36 +00:00
Daniel P. Berrange
145bb1e821
Misc tweaks to node device impl
2008-11-21 12:46:39 +00:00
Daniel P. Berrange
1ee5367c19
Node device support in virsh (David Lively)
2008-11-21 12:39:48 +00:00
Daniel P. Berrange
8325fcf13d
Remote protocol support for node devices (David Lively)
2008-11-21 12:31:04 +00:00
Daniel P. Berrange
620d4be7ae
Node device driver for HAL and DeviceKit (David Lively)
2008-11-21 12:27:11 +00:00
Daniel P. Berrange
149322c530
Internal APIs for handling node device XML configuration (David Lively)
2008-11-21 12:20:45 +00:00
Daniel P. Berrange
0793e73c02
Public API for node device enumeration (David Lively)
2008-11-21 12:19:22 +00:00
Daniel P. Berrange
2c855c1c66
Optional dlopen support for drivers
2008-11-21 12:16:08 +00:00
Daniel P. Berrange
410fb96cbc
Add export of virDomainEventCallbackListRemoveConn method
2008-11-21 11:44:03 +00:00
Daniel P. Berrange
c67700be8a
Fix two memory leaks in domain conf and LXC code
2008-11-21 11:42:51 +00:00
Daniel P. Berrange
660418cff4
Misc fixes to event registration failure cases
2008-11-21 10:22:58 +00:00
Daniel P. Berrange
41f14d6ea5
Fix crash due to failure to unregister event callbacks in QEMU driver (David Lively)
2008-11-21 10:17:22 +00:00
Daniel P. Berrange
f6dacb21d2
Add Xen compiler flags for stats_linux.c build
2008-11-21 10:12:03 +00:00
Daniel Veillard
4815221333
* po/POTFILES.in src/uml_conf.h src/uml_driver.c: fixes syntax
...
check errors, reported by Ben Guthro
daniel
2008-11-21 10:06:28 +00:00
Daniel P. Berrange
d378791480
Fix crash on NULL uri scheme
2008-11-20 14:33:59 +00:00
Daniel P. Berrange
714bef5b6a
Add an initial User Mode Linux Driver
2008-11-19 16:58:23 +00:00
Daniel P. Berrange
6d04effac7
Add a virFreeCallback to event loop APIs
2008-11-19 16:24:01 +00:00
Daniel P. Berrange
6d41cb87d3
Change public API for virEventAddHandle to allow multiple registrations per FD
2008-11-19 16:19:36 +00:00
Daniel P. Berrange
3d41e86534
Add a virFreeCallback to virDomainEventRegister (from David Lively)
2008-11-19 15:25:24 +00:00
Daniel P. Berrange
8a1553e43a
Fix windows build & build without QEMU driver
2008-11-18 12:46:13 +00:00
Daniel P. Berrange
a5e72f9177
Add QEMU driver events for defined/undefined config files
2008-11-17 16:52:32 +00:00
Daniel P. Berrange
d3d54d2fc9
Add domain events detail information
2008-11-17 16:43:00 +00:00
Daniel P. Berrange
89156f1985
Link QEMU, LXC, network and storage drivers directly into libvirtd
2008-11-17 12:18:18 +00:00
Daniel P. Berrange
618276de19
Push URI probing logic down into individual drivers
2008-11-17 11:44:51 +00:00
Daniel P. Berrange
c08a47b853
Refactor storage backends to avoid dependancy from config parser to implementation
2008-11-17 11:19:33 +00:00
Daniel P. Berrange
25047e7cf8
Use a versioned linker script
2008-11-17 11:03:25 +00:00
Daniel P. Berrange
41ebac421e
Build drivers as libtool convenience libs
2008-11-17 10:43:30 +00:00
Daniel P. Berrange
4f956c040c
Fix updating of openvz config file params
2008-11-17 09:55:59 +00:00
Cole Robinson
00e8a7a491
Use different separator for lvs command to unbreak parsing for encrypted devs.
2008-11-14 16:10:47 +00:00
Jim Meyering
94359e16d3
avoid format string warnings
...
* src/openvz_driver.c (ADD_ARG_LIT): Add "%s" arg before _(...).
* src/qemu_driver.c (PCI_ATTACH_OK_MSG): Likewise.
* src/util.c (virExec, virRun): Likewise.
2008-11-14 14:19:37 +00:00
Daniel Veillard
df285bdd8d
KVM/QEmu migration support
...
* qemud/remote.c qemud/remote_dispatch_localvars.h
qemud/remote_dispatch_proc_switch.h qemud/remote_dispatch_prototypes.h
qemud/remote_protocol.c qemud/remote_protocol.h
qemud/remote_protocol.x src/driver.h src/libvirt.c
src/libvirt_internal.h src/libvirt_sym.version src/lxc_driver.c
src/openvz_driver.c src/qemu_conf.h src/qemu_driver.c
src/remote_internal.c src/test.c src/virsh.c: large patch to
add migration support for KVM/QEmu, based on the work of Rich Jones
and Chris Lalancette. This introduce a new version of the prepare
and finish steps of the migration, so changes the driver API and
a lot of code.
Daniel
2008-11-14 08:42:47 +00:00
Daniel P. Berrange
bfdac58c36
Add bridged network to openvz driver & add some openvz docs
2008-11-12 16:35:47 +00:00
Daniel P. Berrange
48f32d8033
Revert previous storage patch which broke test driver
2008-11-12 16:28:27 +00:00
Daniel P. Berrange
8a8826600c
Re-arrange storage backend registration
2008-11-11 15:52:16 +00:00
Daniel P. Berrange
9b7fd9c4ae
Support OpenVZ filesystem template config in XML dump
2008-11-10 12:08:19 +00:00
Jim Meyering
0e7a565229
mark a few diagnostics for translation
...
* src/lxc_conf.c (lxcLoadDriverConfig): Mark a diagnostic.
* src/lxc_driver.c (lxcDomainStart): Likewise.
* po/POTFILES.in: Add src/lxc_conf.c.
* Makefile.maint (msg_gen_function): Add virReportErrorHelper
and lxcError.
2008-11-07 16:43:58 +00:00
Jim Meyering
0d4cdc0569
always compile iptables.c
...
Avoid a build error when configuring --without-xen --without-qemu.
* src/iptables.c [WITH_QEMU]: Don't #ifdef-out.
* src/iptables.h [WITH_QEMU]: Don't #ifdef-out.
* src/util.c (virRun) [__MINGW32__]: Define a stub that always fails.
2008-11-07 16:43:23 +00:00
Daniel Veillard
df93e1ee24
add new logging module, and move existing definitions there
...
* src/logging.c src/logging.h proxy/Makefile.am proxy/libvirt_proxy.c
src/Makefile.am src/cgroup.c src/datatypes.c src/domain_event.c
src/internal.h src/libvirt.c src/lxc_container.c src/lxc_controller.c
src/lxc_driver.c src/proxy_internal.c src/qemu_driver.c
src/remote_internal.c src/storage_backend_disk.c src/util.c
src/veth.c src/xen_internal.c src/xen_unified.c src/xend_internal.c:
add new logging module, and move existing definitions there
Daniel
2008-11-06 16:36:07 +00:00