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
1dea5535b0
tweak lstat.c to avoid mingw link failure
...
* gnulib/lib/lstat.c: Include <sys/stat.h> *before* the use of stat in
orig_stat. Otherwise, on mingw (which lacks lstat), any program using
the lstat module would not get the redefinition-to-stat provided by
gnulib's sys/stat.h. Reported by Daniel P. Berrange.
2008-11-07 16:44:38 +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
Cole Robinson
3796e5802f
Log stdout and stderr in virRun
2008-11-05 18:57:42 +00:00
Cole Robinson
a9a11b5393
Log the argv passed to virExec and virRun
2008-11-05 18:41:07 +00:00
Cole Robinson
f1ca068666
Move local argvToString to virArgvToString in util.
2008-11-05 18:22:10 +00:00
Jim Meyering
7271a92bec
plug two leaks and fix a diagnostic
...
* src/qemu_conf.c (qemudLoadDriverConfig): Don't leak ->vncListen.
Fix an erroneous copy-and-pasted diagnostic.
* src/qemu_driver.c (qemudShutdown): Don't leak another ->vncListen.
2008-11-05 14:24:21 +00:00
Chris Lalancette
1ac47e34f2
Call vgscan before attempting to scan logical volumes. This makes sure we've
...
"touched" any logical volumes, so they appear in the subsequent "pvs" call.
Signed-off-by: Chris Lalancette <clalance@redhat.com>
2008-11-05 11:41:43 +00:00
Daniel P. Berrange
c9ff52fb8a
Move WITH_XXX driver feature flags into config.h instead of direct compiler/linker args
2008-11-04 23:37:23 +00:00
Daniel P. Berrange
2ea1eceb75
Move domain events helpers into dedicated file
2008-11-04 23:33:57 +00:00
Daniel P. Berrange
6ace5a39c3
Move some API declarations out of internal.h & hash.c into dedicated files
2008-11-04 23:22:06 +00:00
Daniel P. Berrange
2f19b24a03
Remove unused internal virStateSigDispatcher() API
2008-11-04 22:55:51 +00:00
Daniel P. Berrange
d714b2afae
Move internal error APIs into virterror_internal.h & drop leading __ prefix
2008-11-04 22:30:33 +00:00
Daniel P. Berrange
78439117bc
Add support for -uuid and -domid args to QEMU
2008-11-04 22:15:30 +00:00
Daniel P. Berrange
cbb1dd0a9b
Remove use of virStringList in favour of strongly typed APIs
2008-11-04 21:54:21 +00:00
Jim Meyering
b5bb5d950f
don't print an uninitialized integer in a diagnostic
...
* src/virterror.c (__virErrorMsg) [VIR_ERR_XEN_CALL]:
Use a format with only one % directive.
2008-11-04 15:02:36 +00:00
Jim Meyering
c8dc7e8ce2
add a test for today's fix
...
* tests/cpuset: New script. Test for today's fix.
* tests/Makefile.am (test_scripts): Add cpuset.
2008-11-04 14:55:30 +00:00
Daniel Veillard
acaa863576
* AUTHORS: added Guido Günther as new commiter, Dan Smith was missing too
...
daniel
2008-11-03 16:14:04 +00:00
Daniel Veillard
d9c75acde1
* src/qemu_conf.c: switch off cache if disk is shared and not read-only
...
patch by Charles Duffy
Daniel
2008-11-03 15:58:02 +00:00
Daniel Veillard
c1a9be4c1b
* src/qemu_driver.c: oops trailing blanks
...
Daniel
2008-11-03 15:52:55 +00:00
Daniel P. Berrange
b76154744c
Ignore generated makefile
2008-11-03 12:31:53 +00:00
Chris Lalancette
17a9e03cd1
Give iSCSI and disk storage backend drivers the
...
ability to resolve any kind of volume path to the pool target volume
path. For instance, if the pool was defined with a
<target><path>/dev/disk/by-id</path></target> section, and one of the
volumes is /dev/disk/by-id/scsi-S_beaf11, then you would be able to
call virStorageVolLookupByPath("/dev/sdc"), and get the correct volume
back.
Signed-off-by: Chris Lalancette <clalance@redhat.com>
2008-11-03 11:37:11 +00:00
Daniel Veillard
7d3041aff3
* python/virConnect.py: needed for events from the python bindings
...
by Ben Guthro
daniel
2008-10-31 13:56:47 +00:00
Daniel Veillard
ba2dff372c
* src/xm_internal.c: add minimum domain memory size check for Xen
...
patch by Shigeki Sakamoto
* AUTHORS: add Shigeki Sakamoto
Daniel
2008-10-31 13:06:17 +00:00
Daniel Veillard
7b716fce8e
* python/Makefile.am python/generator.py python/libvir.c
...
python/libvir.py python/libvirt_wrap.h python/types.c:
adds support for events from the python bindings, also
improves the generator allowing to embbed per function
definition files, patch by Ben Guthro
* examples/domain-events/events-python/event-test.py: also
adds a programming example
Daniel
2008-10-31 10:13:45 +00:00
Cole Robinson
c5ee075dd9
Add a test storage driver.
2008-10-30 17:40:57 +00:00
Daniel Veillard
f22d0fcd8d
* docs/relatedlinks.html docs/relatedlinks.html.in: add link
...
for AMQP/QPid bindings
daniel
2008-10-29 15:34:12 +00:00
Daniel Veillard
4780a00b14
* src/domain_conf.h src/qemu_driver.c: patch adding hor removal of
...
scsi/virtio disks for KVM, patch by Guido Günther
daniel
2008-10-29 14:32:40 +00:00
Jim Meyering
f79ebbd121
remove src/socketcompat.h; no longer needed
...
* src/socketcompat.h: Remove file.
* src/remote_internal.c: Don't include socketcompat.h.
* qemud/qemud.h: Likewise.
* qemud/remote_protocol.x: Likewise, but do include <arpa/inet.h>
for htonl.
* src/remote_internal.c: Likewise, but do include <errno.h>.
* qemud/remote_protocol.c: Regenererate.
* qemud/remote_protocol.h: Regenererate.
* src/Makefile.am (REMOTE_DRIVER_SOURCES): Remove socketcompat.h.
2008-10-28 19:09:04 +00:00
Jim Meyering
d6efc2ffd3
make generated qemud/*.[ch] files read-only
...
* qemud/Makefile.am (.x.c): Rewrite not to write directly to $@,
and to make generated files read-only.
(.x.h): Likewise.
2008-10-28 17:48:11 +00:00
Jim Meyering
487d57b341
avoid compiler warning when all storage backends are disabled
...
* src/storage_backend.c (backends): Add a NULL terminator.
(virStorageBackendForType): Use NULL terminator rather than
warning-provoking (possibly 0) array size.
2008-10-28 17:48:06 +00:00
Jim Meyering
a6c7f474eb
avoid many mingw-specific warnings
...
* tests/virshtest.c (mymain): Use only one definition of this function.
[WIN32]: Call exit(77) to skip the test.
* tests/nodeinfotest.c: Likewise.
2008-10-28 17:48:01 +00:00
Jim Meyering
57d54689da
cvsignore mingw build artifacts: *.exe
2008-10-28 17:47:54 +00:00
Jim Meyering
2bbf76ebeb
include netinet etc #ifndef HAVE_WINSOCK2_H
2008-10-28 17:47:45 +00:00
Jim Meyering
78d4d969e2
* src/remote_internal.c (remoteFindDaemonPath) [!WIN32]: Don't compile.
2008-10-28 17:47:40 +00:00
Jim Meyering
c5f45efd06
use errno, not socket_errno()
...
* remote_internal.c: s/socket_errno()/errno/, now that gnulib's
socket module ensures errno is useful in those cases.
2008-10-28 17:47:33 +00:00
Jim Meyering
b80b3ce4b3
socketcompat.h: simplify, to match latest gnulib
...
Now, sys/socket.h is always available, and errno works.
2008-10-28 17:47:23 +00:00
Jim Meyering
75e69df956
updates from gnulib
2008-10-28 17:47:12 +00:00
Jim Meyering
c54eb963dd
use more gnulib modules
...
* bootstrap: use more gnulib modules: close, connect, perror, recv,
send, socket setsockopt, gethostname.
2008-10-28 17:46:07 +00:00
Jim Meyering
cabb75c503
adapt to API change in gnulib
...
* qemud/qemud.c: Include <netdb.h>, not "getaddrinfo.h"
* src/remote_internal.c: Likewise.
2008-10-28 17:46:00 +00:00
Jim Meyering
9801d7c595
* src/network_conf.c: Include <string.h> for declaration of memcmp.
2008-10-28 17:45:41 +00:00