Daniel Veillard
ad5723e792
cleanup and removal for pools in logical backend
...
* src/storage_backend_logical.c: enable stop pool in logical backend
improve portability when deleting a pool and also call pvremove
patch by Chris Lalancette
Daniel
2008-09-22 20:22:35 +00:00
Daniel Veillard
4f84e631ed
* src/storage_conf.c: fixes parsing to allow no sources for a pool
...
fix by Dan and Chris Lalancette
Daniel
2008-09-22 19:57:47 +00:00
Daniel Veillard
0958489ca5
* src/remote_internal.c src/storage_driver.c: structure init cleanup
...
by Chris Lalancette
Daniel
2008-09-22 19:53:42 +00:00
Daniel Veillard
7e0ff3aab0
read network config in OpenVZ driver
...
* src/openvz_conf.c: patch from Evgeniy Sokolov to read
network config in OpenVZ driver.
Daniel
2008-09-22 15:21:44 +00:00
Daniel P. Berrange
da622a20cd
Fix broken specfile build
2008-09-18 10:20:24 +00:00
Richard W.M. Jones
49c50366fd
Documentation cleanups.
...
* docs/bindings.html.in: Clean up the bindings page, and add
C# and Java.
* docs/windows.html.in: Remove old bogus information and add
placeholder.
2008-09-18 09:00:10 +00:00
Daniel P. Berrange
0aac8c9447
Fix trailing whitespace & unmarked diagnostic warning
2008-09-18 08:54:23 +00:00
Richard W.M. Jones
a0208e6635
src/openvz_driver.c: Fix segfault in OpenVZ driver
...
(Evgeniy Sokolov).
2008-09-17 16:07:03 +00:00
Daniel P. Berrange
bf347f5af0
Fix broken test case data files
2008-09-17 15:39:11 +00:00
Richard W.M. Jones
4f1e6e7ef2
src/storage_backend_disk.c: Missing include file.
2008-09-17 14:29:47 +00:00
Richard W.M. Jones
dd57b821e4
Remove some deadcode (Nguyen Anh Quynh).
2008-09-17 14:21:27 +00:00
Richard W.M. Jones
3b7c7d888a
Change name of "blocked" state to "idle" (John Levon).
2008-09-17 14:18:15 +00:00
Richard W.M. Jones
a744ddad59
include/libvirt/libvirt.h.in, src/libvirt.c: Fix comments
...
which incorrectly referred to non-existent 'virDomainFlags'
type (Anton Protopopov).
2008-09-17 14:15:20 +00:00
Richard W.M. Jones
7076981f50
src/conf.c: Improved error messages in XM conf module.
2008-09-17 14:11:21 +00:00
Richard W.M. Jones
422311ff32
libvirt.spec.in: Specfile enhancements for minimal
...
"client only" build (Ben Guthro).
2008-09-17 14:09:13 +00:00
Richard W.M. Jones
04e9e1b2a6
configure.in, src/qemu_driver.h, src/qemu_driver.c: KVM
...
can determine max VCPUs at runtime (Guido Günther).
2008-09-17 14:07:49 +00:00
Cole Robinson
bf26cd8ecb
Implement disk volume deleting.
2008-09-16 16:46:08 +00:00
Cole Robinson
a82bd0784b
Fix reading vncdisplay from xend, add several test cases for xen vnc corner case
...
s.
2008-09-09 13:53:58 +00:00
Cole Robinson
bf3e2132a7
Fix a segfault if defining a qemu domain without an emulator.
2008-09-09 13:44:42 +00:00
Daniel Veillard
9d3d43436e
* configure.in libvirt.spec.in docs/*: preparing release of
...
libvirt-0.4.5
* po/*: rebuilt and updated de.po
daniel
2008-09-08 14:32:18 +00:00
Daniel Veillard
58686c3dd8
add domain name in network configurations suport and on OpenVZ config bugfix
...
* src/network_conf.c src/network_conf.h src/qemu_driver.c: add
support for a domain name in network configurations, patch by
JJ Reynolds with bugfix raised by Dan
* src/openvz_conf.c: fix to small bug in openvzReadConfigParam
by Evgeniy Sokolov
Daniel
2008-09-08 12:45:29 +00:00
Daniel P. Berrange
3aa7c4639d
Fix potential NULL deref in openvz driver
2008-09-08 12:15:33 +00:00
Daniel Veillard
914e1c61de
finish applying initialization patch for logical storage backend
...
* src/storage_backend_logical.c: finish applying initialization
from Jim Fehlig patch for logical storage backend
Daniel
2008-09-08 08:03:54 +00:00
Daniel P. Berrange
a8936295ce
Fix trailing whitespace mistakes
2008-09-05 15:00:14 +00:00
Daniel P. Berrange
1cc9f9b3d8
Convert openvz driver to generic domain XML APIs
2008-09-05 14:10:58 +00:00
Daniel P. Berrange
542039fab0
Fully support mingw builds
2008-09-05 12:03:45 +00:00
Daniel P. Berrange
126d3ebeea
Fix starting of xen domains without a PVFB console by removing default emulator
2008-09-05 11:52:12 +00:00
Daniel P. Berrange
f193e19536
Fix xen capabilities data creation
2008-09-05 11:35:43 +00:00
Daniel Veillard
e88295804a
* src/storage_backend_fs.c: fix a signed/unsigned issue breaking
...
virStorageBackendProbeFile(), patch by Cole Robinson
Daniel
2008-09-04 13:34:42 +00:00
Daniel Veillard
a8d0600762
* src/qemu_driver.c: fix an error message, patch by Nguyen Anh Quynh
...
Daniel
2008-09-04 13:20:28 +00:00
Daniel P. Berrange
b9ed7914c2
Fix make check when augparse is missing
2008-09-04 13:17:47 +00:00
Daniel Veillard
c37031ebf3
fix a miscalculation of command line size for vgcreate
...
* src/storage_backend_logical.c: fix a miscalculation of command line
size for vgcreate, patch from Jim Fehlig
Daniel
2008-09-04 13:13:32 +00:00
Daniel P. Berrange
9567aad381
Add Augeas lens' for libvirtd.conf and qemu.conf
2008-09-04 10:44:23 +00:00
Daniel Veillard
18626bd225
when dumping code don't keep Xen domain live
...
* src/xend_internal.c: patch from John Levon shutting down a live
domain is just more hazardous
Daniel
2008-09-04 09:11:37 +00:00
Daniel Veillard
584ff19452
* src/xend_internal.c src/xs_internal.c: use poweroff instead of halt
...
when shutting down a xen domain, patch by John Levon
Daniel
2008-09-04 09:07:42 +00:00
Daniel Veillard
821dcf0ff7
* src/qemu_driver.c: switch flags to unsigned by James Morris
...
* AUTHORS: add James Morris
Daniel
2008-09-04 08:15:05 +00:00
Dan Smith
df01e14bd7
Add LXC version implementation
...
This patch adds an implementation of the version function to the LXC driver.
The providers use the hypervisor version in a field of one of the instances,
so we need to have something meaningful here. AFAICT, the only real option
we have (considering the limitations of the libvirt version information) is
to use the kernel version.
2008-09-03 17:21:27 +00:00
Cole Robinson
e0b4fcc280
Fix qemu media connect/eject to work with latest syntax. Add support for ejecting floppy devices and scsi cdroms.
2008-09-03 16:05:25 +00:00
Cole Robinson
fe7bb57a8b
Update domain xml after usb device hotplug.
2008-09-03 15:05:31 +00:00
Cole Robinson
f4af06d812
Scrap media eject output to try and determine success/fail.
2008-09-03 14:43:34 +00:00
Cole Robinson
34b1a03402
Fix disk ordering and add target duplication checking when parsing domain xml.
2008-09-03 14:30:24 +00:00
Daniel Veillard
53738f83a5
avoid a segfault on CD eject in KVM/QEmu
...
* src/qemu_driver.c: patch from Cole Robinson to avoid a segfault
on KVM CD eject
Daniel
2008-09-03 12:52:27 +00:00
Daniel Veillard
54a4f8d44d
add output on attach and detach success
...
* src/virsh.c: patch from Cole Robinson to add output on attach
and detach success
daniel
2008-09-03 12:38:28 +00:00
Daniel Veillard
d9d3478a89
* AUTHORS: add Cole Robinson as commiter
...
daniel
2008-09-03 12:24:50 +00:00
Daniel Veillard
b419ebc7e9
* src/storage_conf.c: add one missing check in virStoragePoolDefParseDoc
...
Daniel
2008-09-03 07:12:37 +00:00
Daniel Veillard
10ccfc92f3
* src/domain_conf.c: fix a parsing error for input devices
...
patch by Cole Robinson
daniel
2008-09-02 15:33:39 +00:00
Daniel Veillard
b8f2610280
check availbility of emulators before reporting them in capabilities
...
* src/qemu_conf.c: patch from Cole Robinson to report in the
capabilities only the ones where the emulators is actually found
* po/libvirt.pot: regenerated
* src/libvirt.c: small typo fix
Daniel
2008-09-02 15:00:09 +00:00
Daniel Veillard
41ce15a586
Adds storage source element for pools
...
* src/storage_backend.h src/storage_backend_logical.c
src/storage_conf.c src/storage_conf.h src/virsh.c:
Applied patches from David Lively to add storage source
elements needed for storage pool
* docs/formatstorage.html docs/formatstorage.html.in: associated
documentation
Daniel
2008-09-02 14:15:42 +00:00
Jim Meyering
81cb09f9fe
qemu_conf.c: use new function, virFileReadLimFD
...
* src/qemu_conf.c (qemudExtractVersionInfo): Use virFileReadLimFD
and VIR_FREE in place of an open-coded loop and a static buffer.
2008-09-02 10:30:40 +00:00
Jim Meyering
d2ac46f2b0
util.c: add a file-descriptor-based wrapper for fread_file_lim
...
* src/util.c (virFileReadLimFP): New function.
(__virFileReadLimFD): New function.
* src/util.h (__virFileReadLimFD): Declare.
(virFileReadLimFD): Define.
(virFileReadAll): Rewrite to use virFileReadLimFP.
2008-09-02 10:29:51 +00:00
Daniel P. Berrange
3348a97bd3
Switch over fork/exec code to use virExec
2008-08-29 07:11:15 +00:00
Daniel P. Berrange
afac1439aa
Allow for private root filessytem in containers using pivot_root
2008-08-28 22:40:50 +00:00
Daniel P. Berrange
8f762e34f3
Fix lookup of xen VM after define (Cole Robinson)
2008-08-28 11:59:07 +00:00
Jim Meyering
ff7ecc1d5b
improve parallel build support
...
* autobuild.sh: Append -j$N to MAKEFLAGS, if no -j option is there.
* libvirt.spec.in: Use %{?_smp_mflags} with "make".
Based on a patch from James Morris:
http://thread.gmane.org/gmane.comp.emulators.libvirt/8201
2008-08-28 09:08:44 +00:00
Daniel P. Berrange
39c9354c5c
Add storage pool source discovery support (patch from David Lively)
2008-08-27 20:05:58 +00:00
Daniel P. Berrange
406f3ee9e8
Fix QEMU domain creation by allowing virExec to preserve certain FDs
2008-08-27 11:44:58 +00:00
Daniel P. Berrange
2875ed81bd
Fix EOF handling when reading openvz domain list
2008-08-27 11:21:01 +00:00
Daniel P. Berrange
d81b038cc2
Remove use of virState apis from openvz driver
2008-08-27 11:19:45 +00:00
Dan Smith
5fb17bcc1e
[LXC] Cleanup devices on container shutdown
2008-08-22 15:35:37 +00:00
Daniel P. Berrange
8f789f1b2f
Use libvirt error message for python exceptions
2008-08-22 10:50:18 +00:00
Jim Meyering
6c02ba0540
configure.in: link with -lpthread when necessary
...
* configure.in: Explicitly add -lpthread to $LIBS.
With an empty "ACTION_IF_FOUND", AC_CHECK_LIB would have done
that for us automatically, but when there is an explicit third
argument, those commands are run instead of the default.
Reported by Jun Koi <junkoi2004@gmail.com>.
2008-08-22 08:32:58 +00:00
Jim Meyering
7e0da18527
autobuild.sh: Fix minor shell-quoting bugs.
...
* autobuild.sh: Remove unnecessary quotes.
Don't choke on a file name argument containing a space.
Don't misbehave for $AUTOBUILD_INSTALL_ROOT containing
a shell meta-character.
2008-08-21 19:31:55 +00:00
Mark McLoughlin
e2d7a26ec0
Forgotten ChangeLog entry
2008-08-21 11:51:27 +00:00
Daniel P. Berrange
9472d3e2f3
Improve error reporting from remote driver
2008-08-21 10:14:54 +00:00
Daniel P. Berrange
11a2e2972a
Propagate virConnectOpen errors to global error object
2008-08-21 10:12:32 +00:00
Daniel P. Berrange
c2bbf99e48
Remove unused lx_controller.h file
2008-08-21 10:07:21 +00:00
Daniel P. Berrange
177c74b1fa
Create lxc_controller standalone binary
2008-08-20 20:55:32 +00:00
Daniel P. Berrange
bb16f4a25d
Do conditional driver config in Makefile.am, not source files
2008-08-20 20:48:35 +00:00
Daniel P. Berrange
6334cd16df
Remove configFile/autostartLink vars from virDomainObj struct
2008-08-20 19:42:36 +00:00
Daniel Veillard
b1e5880740
add cpu management functionality to OpenVZ driver
...
* src/openvz_conf.c src/openvz_driver.c: patch from Evgeniy Sokolov
to limit the number of CPUs used by OpenVZ domains.
Daniel
2008-08-20 13:44:03 +00:00
Daniel Veillard
ce9439358c
Fix creating and cleaning up logical volumes if a target path is specified
...
* src/storage_backend_logical.c: Patch from Cole Robinson, fix
creating and cleaning up logical volumes if a target path is
specified.
Daniel
2008-08-20 13:33:01 +00:00
Daniel Veillard
ace1b6bf98
Fix size reporting for disks without partitions.
...
* src/parthelper.c: Patch from Cole Robinson, fix size reporting for
disks without partitions.
Daniel
2008-08-20 13:20:01 +00:00
Daniel Veillard
4240b3fd63
Handle HTML generation in the absence of XHTML1 DTDs
...
* configure.in libvirt.spec.in docs/Makefile.am: fix the problem
of HTML generation in the absence of XHTML1 DTDs in the system
catalog.
Daniel
2008-08-20 13:16:29 +00:00
Daniel Veillard
b73d495754
* src/network_conf.c src/network_conf.h src/qemu_driver.c: allow to
...
add static host definition for dnsmasq
Daniel
2008-08-20 12:50:29 +00:00
Daniel P. Berrange
1b4bb7d4ab
Allow non-blocking/daemon mode to be specified via virExec flags
2008-08-20 09:24:14 +00:00
Daniel P. Berrange
6bc99a7775
Allow a pre-opened FD to be be pass to virExec for stdout/err
2008-08-20 09:08:17 +00:00
Daniel P. Berrange
60ed1d2a7a
Avoid signal race in virExec
2008-08-20 08:53:49 +00:00
Daniel P. Berrange
f2172946e5
Improve virExec error reporting
2008-08-20 08:30:04 +00:00
Daniel P. Berrange
5cd1d3c53c
Remove duplicated call to virInitialize
2008-08-18 09:24:46 +00:00
Atsushi SAKAI
6fd4c30285
fix typos src/virsh.c from John Levon,
...
and 3 more files(src/domain_conf.c src/openvz_driver.c src/qemu_driver.c)
2008-08-15 01:41:49 +00:00
Daniel P. Berrange
2723efaae1
Update LXC driver in POTFILES.in
2008-08-14 09:07:18 +00:00
Daniel P. Berrange
2e7a373646
Switch LXC driver over to generic domain XML processing APIs
2008-08-13 12:50:55 +00:00
Daniel P. Berrange
763dacda97
Make LXC I/O controller process a parent of the container process
2008-08-13 10:52:15 +00:00
Daniel P. Berrange
e82c913680
Refactor LXC driver to pass tty/socket state directly
2008-08-13 10:14:47 +00:00
Daniel Veillard
415b92101f
* docs/storage.html[.in] src/storage_backend_disk.c: revert previous
...
msdos patch and apply new one from Cole Robinson
daniel
2008-08-13 09:45:10 +00:00
Jim Meyering
4ee755d641
rewrite virFileLinkPointsTo
...
* src/util.c (SAME_INODE): Define.
(virFileLinkPointsTo): Rewrite to be more portable and more efficient.
2008-08-12 17:38:08 +00:00
Daniel Veillard
8fdb2cffa5
make sure parted doesn't ask for confirmation
...
* src/storage_backend_disk.c: make sure parted doesn't ask
confirmation, patch by Cole Robinson
Daniel
2008-08-12 11:29:49 +00:00
Daniel Veillard
ef7fec1168
rename the disk type from 'dos' to 'msdos'
...
* docs/storage.html[.in] src/storage_backend_disk.c: patch from
Cole Robinson to rename the disk type from 'dos' to 'msdos'
Daniel
2008-08-12 11:26:00 +00:00
Atsushi SAKAI
413c5dbf07
add _fd to stdin, stderr stdout in struct virDomainObj for compilation on MinGW
2008-08-12 08:38:22 +00:00
Atsushi SAKAI
43c7f972aa
fix compilation for MinGW
2008-08-12 08:25:48 +00:00
Daniel Veillard
3c487a4229
Fix connection lookup in python storage instances
...
* python/generator.py: patch from Cole Robinson trying to fix
problem of connection lookup when creating storage instances
Daniel
2008-08-12 08:11:09 +00:00
Daniel Veillard
52efa8863e
* po/*: regeneration of pot file, updates of .po
...
Daniel
2008-08-12 08:05:36 +00:00
Daniel Veillard
9b4b4af716
documentation for USB passthrough
...
* docs/formatdomain.html docs/formatdomain.html.in: documentation
for the USB format option by Guido Günther
daniel
2008-08-12 07:28:28 +00:00
Jim Meyering
efb8492b9d
tests: append a newline to expected-output files lacking NL-at-EOF
...
* tests/qemuxml2argvtest.c (testCompareXMLToArgvFiles): Adjust the
code that creates "actual" output, so that it too produces a
newline-terminated buffer.
* tests/qemuxml2argvdata/*.args: Append a newline to each, via:
for i in $(find|grep '\.args$'); do echo >> $i;done
2008-08-11 12:29:58 +00:00
Daniel P. Berrange
b3728d7d72
Fix const-correctness of virRUn and virExec
2008-08-08 15:43:38 +00:00
Daniel Veillard
5ba372306a
llow to add a disk as an USB device (QEmu/KVM)
...
* src/domain_conf.c src/domain_conf.h src/qemu_conf.c
src/qemu_driver.c: patch from Guido Günther allowing to add
disk as USB devices
* docs/libvirt.rng: extend the schemas for the new value
* tests/qemuxml2argvdata/qemuxml2argv-disk-usb.args
tests/qemuxml2argvdata/qemuxml2argv-disk-usb.xml
tests/qemuxml2argvtest.c tests/qemuxml2xmltest.c: add a specific
test to the regression suite
Daniel
2008-08-08 15:03:00 +00:00
Daniel Veillard
d1710d35ea
Extend parser and add support for USB devices in QEmu/KVM
...
* src/domain_conf.c src/domain_conf.h src/qemu_conf.c
src/qemu_driver.c: Patch from Guido Günther allowing to pass
usb devices to qemu/kvm
* docs/libvirt.rng: add the new functionality to the grammar
* tests/qemuxml2argvdata/qemuxml2argv-hostdev-usb-address.args
tests/qemuxml2argvdata/qemuxml2argv-hostdev-usb-address.xml
tests/qemuxml2argvdata/qemuxml2argv-hostdev-usb-product.args
tests/qemuxml2argvdata/qemuxml2argv-hostdev-usb-product.xml
tests/qemuxml2argvtest.c tests/qemuxml2xmltest.c: adding examples
to the regression tests
* libvirt.spec.in: fix the licence tag
Daniel
2008-08-08 14:27:05 +00:00
Atsushi SAKAI
c11e64efbd
fix typos in docs
...
docs/formatdomain.html docs/formatdomain.html.in docs/java.html docs/java.html.in
2008-08-08 10:24:14 +00:00
Daniel Veillard
f61ac900b7
* tests/domainschematest: patch from Guido Günther to fix RNG checking
...
in out of tree builds.
daniel
2008-08-07 17:52:16 +00:00
Dan Smith
e94c12451b
Fix device name clash in src/veth.c
2008-08-07 13:34:17 +00:00
Jim Meyering
7846f71fb3
add the mkstemp module from gnulib
...
* bootstrap (modules): Add mkstemp.
The remainder of these changes are the result of running
./bootstrap, adding new files, and committing the result.
* gnulib/lib/gettimeofday.c: New file.
* gnulib/lib/mkstemp.c: New file.
* gnulib/lib/tempname.c: New file.
* gnulib/lib/tempname.h: New file.
* gnulib/m4/gettimeofday.m4: New file.
* gnulib/m4/mkstemp.m4: New file.
* gnulib/m4/tempname.m4: New file.
* gnulib/tests/test-gettimeofday.c: New file.
* gnulib/lib/Makefile.am: Update.
* gnulib/m4/gnulib-cache.m4: Likewise.
* gnulib/m4/gnulib-comp.m4: Likewise.
* gnulib/m4/inet_pton.m4: Likewise.
* gnulib/tests/Makefile.am: Likewise.
2008-08-07 13:02:45 +00:00
Daniel Veillard
2194f1c983
* src/bridge.c: fix a build failure on RHEL4
...
Daniel
2008-08-07 10:22:52 +00:00
Jim Meyering
57f15f779f
update from gnulib
...
* build-aux/mktempd (rand_bytes, mktempd):
* build-aux/useless-if-before-free (FILE):
* build-aux/vc-list-files:
* gnulib/lib/.cvsignore:
* gnulib/lib/Makefile.am:
* gnulib/lib/poll.c (poll):
* gnulib/lib/stdbool.in.h (_GL_STDBOOL_H, true):
* gnulib/lib/stdio-impl.h (fp_, fp_ub):
* gnulib/lib/stdio.in.h (vasprintf, obstack_printf)
(obstack_vprintf):
* gnulib/lib/vasnprintf.c (_GNU_SOURCE, sprintf, IF_LINT, exp)
(remainder, scale10_round_decimal_long_double)
(scale10_round_decimal_double, pad_ourselves):
* gnulib/m4/gnulib-cache.m4:
* gnulib/m4/gnulib-common.m4 (gl_MODULE_INDICATOR):
* gnulib/m4/gnulib-tool.m4 (gl_LOCAL_DIR, gl_M4_BASE, gl_PO_BASE)
(gl_DOC_BASE, gl_TESTS_BASE, gl_WITH_TESTS, gl_LIB, gl_LGPL)
(gl_MAKEFILE_NAME, gl_MACRO_PREFIX, gl_PO_DOMAIN, gl_VC_FILES):
* gnulib/m4/lock.m4 (gl_LOCK_EARLY_BODY, gl_PREREQ_LOCK)
(gl_DISABLE_THREADS):
* gnulib/m4/onceonly.m4:
* gnulib/m4/posix-shell.m4 (gl_POSIX_SHELL):
* gnulib/m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS):
* gnulib/tests/test-getaddrinfo.c (ENABLE_DEBUGGING, dbgprintf)
(simple):
* gnulib/tests/test-stdint.c (UINTMAX_MAX, or):
* gnulib/tests/test-vc-list-files-cvs.sh (compare):
* gnulib/tests/test-vc-list-files-git.sh (compare):
2008-08-07 09:42:29 +00:00
Jim Meyering
34afcb5b26
complete the MinGW inet_pton portability fix
...
* gnulib/m4/inet_pton.m4: New file. Required for MinGW.
* gnulib/m4/gnulib-comp.m4: Regenerate via gnulib-tool.
2008-08-07 09:36:49 +00:00
Jim Meyering
3fb53d1181
fix failing "make syntax-check"
...
* src/stats_linux.c: Don't include <c-ctype.h> no longer used.
2008-08-06 13:07:55 +00:00
Jim Meyering
783158511a
work around MinGW build failure due to its lack of inet_aton
...
Use inet_pton instead; pull in gnulib's module by the same name.
* src/network_conf.c (virNetworkDefParseXML): Use inet_pton,
rather than inet_aton.
* bootstrap (modules): Add inet_pton.
* gnulib/lib/inet_pton.c: New file, from gnulib.
2008-08-06 12:08:49 +00:00
Daniel Veillard
ed3c9c3824
* docs/formatdomain.html docs/formatdomain.html.in: fix memory unit
...
as pointed out by matthew chan it's kilobytes
Daniel
2008-08-06 11:37:53 +00:00
Chris Lalancette
b8fb68be37
DanB pointed out that my sexpr xend_internal patch from yesterday broke one of
...
the regression tests. The problem is that the xenDaemonFormatSxpr{Disk,Net}
functions are shared between domain creation time and attaching disk time.
Unfortunately, though, Xend expects something different during these two times.
During domain creation time, it wants the "(device" in front of the sexpr,
while during attach time it does not. To remedy this situation, I added a flag
to these two functions to differentiate between these two modes. With this
patch in place, all of the regression tests pass.
Signed-off-by: Chris Lalancette <clalance@redhat.com>
2008-08-06 11:26:47 +00:00
Chris Lalancette
6335c2a0cc
With the recent refactoring of the domain code, plus the changes with the Xend
...
code, a couple of bugs were introduced into the attach-disk and attach-interface
functionality. This patch fixes 3 bugs:
1) In xenDaemonAttachDevice(), there is a switch statement to determine which
of the xenDaemonFormatSxpr{Disk,Net} functions to call. Unfortunately, the case
statements are all missing the corresponding "break", so we always fall-through
to the default error case. This patch just adds the appropriate break statements.
2) (minor) In xenDaemonDomainDefineXML (that's a mouthful!), there is a stray
"fprintf". This is now converted to a proper virXendError().
3) xenDaemonFormatSxpr{Disk,Net} were adding an extra (device to the front of
the sexpr expressions that xend did not expect (this is Xend on RHEL 5.2).
Because of this, the attaches would fail. The patch fixes this by removing the
(device from the front, which makes attach-disk and attach-interface work again.
Signed-off-by: Chris Lalancette <clalance@redhat.com>
2008-08-05 16:45:07 +00:00
Chris Lalancette
8c30002862
Recently upstream Xen added support for having xvd devices > 16. For the most
...
part, this doesn't really concern libvirt, since for things like attach and
detach we just pass it through and let xend worry about whether it is supported
or not. The one place this breaks down is in the stats collecting code, where
we need to figure out the device number so we can go digging in /sys for the
statistics.
To remedy this, I've re-written xenLinuxDomainDeviceID() to use regular
expressions to figure out the device number from the name. The major advantage
is that now xenLinuxDomainDeviceID() looks fairly identical to
tools/python/xen/util/blkif.py (in the Xen sources), so that adding additional
devices in the future should be much easier. It also reduces the size of the
code, and, in my opinion, the code complexity.
With this patch in place, I was able to get block statistics both on older style
devices (/dev/xvda) and on the new, expanded devices (/dev/xvdaa).
Signed-off-by: Chris Lalancette <clalance@redhat.com>
2008-08-05 16:38:49 +00:00
Daniel Veillard
063679580d
saving UUID of new OpenVZ domains
...
* src/openvz_conf.c src/openvz_conf.h src/openvz_driver.c: patch
from Evgeniy Sokolov saving the UUID when creating or defining
a domain.
Daniel
2008-08-05 10:53:05 +00:00
Jim Meyering
6d72e14178
make distclean: remove generated source files
...
* src/Makefile.am (DISTCLEANFILES): Define to $(BUILT_SOURCES)
so "make distcheck" passes.
2008-08-05 08:43:03 +00:00
Atsushi SAKAI
adc1d93f97
fix syntax-check error (replace TAB to space)
2008-08-04 06:33:25 +00:00
Jim Meyering
07f8a8b34a
xend_internal.c, sexpr.c: const-correctness fixes
2008-08-01 14:43:12 +00:00
Richard W.M. Jones
c74c20f701
Incorrect attribution.
2008-08-01 14:30:59 +00:00
Richard W.M. Jones
969fa847c1
'virsh edit' and related commands
...
* src/virsh.c: Implement 'virsh edit', 'virsh net-edit' and
'virsh pool-edit' commands. These edit the XML for domains,
networks and storage pools respectively, and are the
equivalent of doing 'virsh dumpxml; vi foo.xml; virsh define'
* src/Makefile.am, src/.cvsignore: Auto-generate the net-edit
and pool-edit commands.
* docs/virsh.pod: Updated the documentation.
2008-08-01 14:30:41 +00:00
Daniel P. Berrange
0dee7feb74
Fix initial VM state
2008-08-01 14:19:06 +00:00
Jim Meyering
66f9bb5b95
virsh.c: more const-correctness fixes
2008-08-01 13:51:18 +00:00
Daniel P. Berrange
a7600746fb
Support for container related domain XML extensions
2008-08-01 13:31:37 +00:00
Daniel P. Berrange
ffc839fb20
Always set forward-delay on bridge, even if 0
2008-08-01 12:56:52 +00:00
Richard W.M. Jones
3f3345aa85
Const-correctness fixes in virsh.c
...
* src/virsh.c: Const-correctness.
2008-08-01 12:19:56 +00:00
Richard W.M. Jones
ccb516144e
Link to "how to contribute to open source"
...
* HACKING: Link to external document which describes how to
contribute to open source projects.
2008-08-01 11:25:22 +00:00
Daniel Veillard
c810c6cc23
* src/qemu_driver.c: patch from Chris Lalancette adding missing
...
carriage returns to logs
Daniel
2008-08-01 11:24:04 +00:00
Daniel P. Berrange
1b554381d1
Added test to validate all domain XML files against schema
2008-08-01 10:53:41 +00:00
Richard W.M. Jones
cf11bb2249
Improve error messages when XML is not well-formed.
...
* src/domain_conf.c, src/network_conf.c, src/storage_conf.c:
Improve error messages from commands such as 'virsh define'
when the XML is not well-formed by passing libxml2 errors
back out through virterror.
2008-08-01 09:39:44 +00:00
Daniel Veillard
eba65e1c6d
* docs/formatdomain.html docs/formatdomain.html.in docs/libvirt-api.xml
...
docs/libvirt-refs.xml docs/html/libvirt-libvirt.html src/libvirt.c:
fixed somedocs and API entry point descriptions as suggested by
Charles Duffy and regenerated the API descriptions.
Daniel
2008-08-01 06:42:45 +00:00
Daniel Veillard
7711e6858c
* src/qemu_driver.c: apply patch from Charles Duffy fixing erro
...
messages when trying to crate a domain already defined.
Daniel
2008-08-01 06:23:31 +00:00
Daniel P. Berrange
42e559a324
Fix autoport when domain is inactive
2008-07-31 14:39:30 +00:00
Chris Lalancette
6f17fb2851
From Charles Duffy:
...
Per subject; if autoport is in use for a host, the current
virDomainGraphicsDefFormat code always emits "port=-1", even if a port
is assigned to the host; this leaves no way for a client to find the VNC
port assigned to the host in question.
This patches fixes it by putting the vncport in place if there is one, and
only putting "-1" if we fail that test.
2008-07-31 12:30:34 +00:00
Daniel Veillard
55e1221686
* src/qemu_driver.c: patch from Guido Günther, interface stats should
...
not crash on interfaces without an ifname.
Daniel
2008-07-30 09:20:19 +00:00
Daniel Veillard
c05cf3f3e1
* src/storage_backend_logical.c: patch from David Lively fixing
...
small differences of behaviour for 'lvs' and 'vgs' on SLES
Daniel
2008-07-30 08:52:44 +00:00
Daniel Veillard
a8f10951d0
* qemud/qemud.c: patch from Guido Günther fixing the place where
...
config file check is done.
Daniel
2008-07-30 08:47:10 +00:00
Chris Lalancette
654c5714bf
The new generic domain re-factor introduced a small regression into the drive
...
handling code. In particular, if you had a section of XML like:
<disk type='file' device='cdrom'>
<target dev='hdc' bus='ide'/>
<readonly/>
</disk>
This used to work with older libvirt, but now fails. This is because we are
actually passing the literal string (null) to the qemu command-line, which qemu
barfs on. This patch fixes it up by making it blank, which allows qemu to
continue on it's merry way.
Signed-off-by: Chris Lalancette <clalance@redhat.com>
2008-07-29 12:09:21 +00:00
Daniel Veillard
4779e0bcb2
build OpenVZ and LXC support by default, fix OpenVZ build
...
* src/openvz_conf.c: fix compilation with new XPath interface
signatures
* configure.in: build OpenVZ and LXC support by default
Daniel
2008-07-29 08:42:56 +00:00
Daniel Veillard
996933bbcd
OpenVZ xml refactoring
...
* src/domain_conf.[ch] src/openvz_conf.[ch] src/openvz_driver.c:
patch from Evgeniy Sokolov doing the OpenVZ xml refactoring,
still needs to be ported to the new XML parsing code but
implements the new format.
Daniel
2008-07-28 14:06:54 +00:00
Daniel Veillard
387e06421f
* src/qemu_driver.c: patch from Guido Günther to make sure create
...
doesn't override an existing domain definition or UUID
Daniel
2008-07-28 12:52:37 +00:00
Daniel P. Berrange
c5ecc66658
Fix misc typos in domain XML handling
2008-07-25 16:25:11 +00:00
Daniel P. Berrange
e8a84817d4
Remove unused c-ctype.h include
2008-07-25 16:19:00 +00:00
Daniel P. Berrange
9351cb0ab0
Fix reporting of errors against virConnect object in XML apis
2008-07-25 14:27:25 +00:00
Daniel P. Berrange
cb29913fb1
Switch XM config file driver to use new domain APIs for XML to config conversion
2008-07-25 14:10:49 +00:00
Daniel P. Berrange
547bd71a4a
Switch XM config file driver to use new domain APIs for XML generation
2008-07-25 13:50:08 +00:00
Daniel P. Berrange
225fb3e93c
Prepare xm_internal driver for new domain XML apis
2008-07-25 13:39:02 +00:00
Daniel P. Berrange
73d021c5c1
Fix test driver inactive domains and domain ID allocation
2008-07-25 13:27:12 +00:00
Daniel P. Berrange
8c6f5a546b
Convert XenD XML->SEXPR conversion to new domain XML APIs
2008-07-25 13:17:27 +00:00
Daniel Veillard
5ee15074af
Skip python bindings for virDomainBlockPeek and virDomainMemoryPeek
...
* python/generator.py: skip generation for virDomainBlockPeek and
virDomainMemoryPeek as they break the build
Daniel
2008-07-25 12:37:06 +00:00
Daniel P. Berrange
31ac8125b8
Convert XenD SEXPR->XML convesion to new domain XML APIs
2008-07-25 10:49:33 +00:00
Daniel P. Berrange
d9383fe158
Remove unused/no-op Xen driver code
2008-07-25 09:51:23 +00:00
Daniel P. Berrange
0b4f277845
Enable openvz, lxc and xen proxy in automated builds
2008-07-25 09:43:23 +00:00
Daniel P. Berrange
3de646a51d
Misc bug fixes
2008-07-25 09:31:24 +00:00
Daniel Veillard
c1e6cc1969
* src/qemu_driver.c: some uuid to string conversion were missing
...
patch from Guido Günther
Daniel
2008-07-25 09:01:25 +00:00
Daniel Veillard
01fd287bcd
Remove Xen centric comments, rebuild the docs
...
* include/libvirt/libvirt.h include/libvirt/libvirt.h.in:
remove Xen centric comments patch from Guido Günther
* docs/apibuild.py: ignore VIR_DEPRECATED
* docs/libvirt-*.xml docs/html/libvirt-*.html: regenerated the
documentation for the API
Daniel
2008-07-25 08:52:19 +00:00
Daniel Veillard
6fae611381
wrong open() failure detection
...
* src/qemu_driver.c: Guido Trotter pointed out a wrong open() failure
detection
Daniel
2008-07-25 08:42:05 +00:00
Daniel Veillard
388502750e
* docs/libvirt.rng: patch from John Levon fixing various patterns
...
Daniel
2008-07-25 06:37:20 +00:00
Daniel Veillard
27efc8bd0d
Check for already running QEmu domain on create
...
* src/qemu_driver.c: another patch from Guido Günther checking
for an already running domain on create
Daniel
2008-07-24 07:29:50 +00:00
Daniel Veillard
d3bb1e4367
* src/qemu_driver.c: patch from Guido Günther checking for
...
unsupported migrate command
Daniel
2008-07-24 07:09:45 +00:00
Daniel Veillard
9d39ca744e
documentation for java bindings
...
* docs/java.html docs/java.html.in: added documentation for the
java bindings
Daniel
2008-07-22 17:49:53 +00:00
Jim Meyering
2eb8ab2057
better diagnostic when failing to undefine a running domain via ID
...
* src/virsh.c (cmdUndefine): Tell user to shutdown and then use name or UUID.
* tests/undefine: New test. Exercise virsh's undefine command.
* tests/Makefile.am (test_scripts): Add undefine.
2008-07-22 16:12:01 +00:00
Daniel Veillard
7e73b8b61a
cleaning up integer string parsing
...
* src/openvz_conf.c src/openvz_driver.c: patch from Evgeniy Sokolov
cleaning up integer string parsing.
Daniel
2008-07-21 13:34:19 +00:00
Daniel Veillard
403a5163c9
* src/xen_unified.c: fix a leak in xenUnifiedOpen
...
Daniel
2008-07-21 09:48:01 +00:00
Daniel Veillard
7b4f67acea
OpenVZ domain cpu time
...
* src/openvz_driver.c: patch from Evgeniy Sokolov to get OpenVZ
domain cpu time consumption.
Daniel
2008-07-21 08:08:25 +00:00
Daniel Veillard
92b56c0412
xen lib detection patch on 64bits
...
* configure.in: patch from David Lively to try to detect the xen
libs when using --with-xen-distdir= on 64bit arches.
Daniel
2008-07-21 08:03:58 +00:00
Daniel Veillard
cb3e65e922
* src/openvz_driver.c: patch from Evgeniy Sokolov avoiding domain
...
lookups based on ID as this doesn't work for a stopped domain.
Daniel
2008-07-21 07:31:14 +00:00
Jim Meyering
3ff5480d7b
remove unnecessary "V = NULL;" stmts after VIR_FREE(V)
...
* src/domain_conf.c (virDomainChrDefParseXML)
(virDomainNetDefParseXML): Likewise.
* src/iptables.c (iptRuleFree): Likewise.
* src/storage_backend.c (virStorageBackendRunProgRegex): Likewise.
* src/test.c (testOpenFromFile): Likewise.
* src/xmlrpc.c (xmlRpcCallRaw): Likewise.
2008-07-19 07:42:34 +00:00
Jim Meyering
cff27e9f40
enable format-safety checks for virDomainReportError
...
* src/domain_conf.c (virDomainReportError): Declare using
ATTRIBUTE_FORMAT(printf, 3, 4).
* Makefile.maint (msg_gen_function): Add virDomainReportError.
2008-07-18 11:02:18 +00:00
Daniel Veillard
dfccabe1e7
fix pool-create for netfs format 'auto'
...
* src/storage_backend_fs.c: patch from Cole Robinson fixing
pool-create for netfs format 'auto'
Daniel
2008-07-17 15:20:28 +00:00
Daniel Veillard
16b8942966
undefine command can't take an ID
...
* src/virsh.c: patch from Evgeniy Sokolov for the undefine command
which can't take an id
Daniel
2008-07-17 11:49:15 +00:00
Daniel Veillard
edbbb3aa12
ID domain lookup fixup
...
* src/libvirt.c src/openvz_driver.c: fix the description of the ID
domain lookup and fix the OpenVZ routine
Daniel
2008-07-16 20:42:38 +00:00
Daniel Veillard
07601749e8
lookup by ID function and error report fix for OpenVZ
...
* src/openvz_driver.c: fix the lookup by ID function and error
reporting in OpenVZ, fix by Evgeniy Sokolov
Daniel
2008-07-16 15:27:00 +00:00
Daniel Veillard
5553b0cd16
cleaning up the exec calls to OpenVZ binaries
...
* src/openvz_driver.c: another cleanup patch from Evgeniy Sokolov
cleaning up the exec calls to OpenVZ binaries
Daniel
2008-07-16 14:45:55 +00:00
Daniel P. Berrange
276bffd907
Remove unneccessary include
2008-07-12 13:53:50 +00:00
Daniel P. Berrange
6385fe3ede
Switch QEMU driver over to generic domain APIs
2008-07-11 19:34:11 +00:00
Daniel P. Berrange
774354e3ef
Set initial domain state to SHUTOFF
2008-07-11 19:31:26 +00:00
Daniel P. Berrange
a1b49bcdea
Use full path when loading XML files
2008-07-11 17:59:27 +00:00
Daniel P. Berrange
381fa1fc46
Switch QEMU driver over to generic network APIs
2008-07-11 17:33:45 +00:00
Daniel P. Berrange
d78c0a6800
Convert test driver to new domain XML apis
2008-07-11 16:41:27 +00:00
Daniel P. Berrange
c422fd1240
Convert test driver to new network XML apis
2008-07-11 16:39:08 +00:00
Daniel P. Berrange
d1304583d6
Added generic domain XML APIs
2008-07-11 16:23:36 +00:00
Daniel Veillard
d678a6e88c
fix OpenVZ probe function
...
* src/openvz_driver.c: fix from Evgeniy Sokolov to the probe function
Daniel
2008-07-11 11:09:44 +00:00
Daniel P. Berrange
747fad6654
Generic APIs for network XML configuration
2008-07-11 10:48:34 +00:00
Daniel P. Berrange
69582431a0
Fix booting QEMU off CDROM devices with -drive arg
2008-07-11 09:56:23 +00:00
Daniel P. Berrange
d4f6e9b5bb
Default to admin auth for polkit. Rename policy file
2008-07-11 09:51:25 +00:00
Daniel P. Berrange
5e239b00d6
Don't default to polkit auth when running non-root
2008-07-11 09:50:01 +00:00
Daniel P. Berrange
1d86fca433
Fix parsing of QEMU stdout looking for serial device PTY with Xenner
2008-07-11 09:48:51 +00:00
Daniel Veillard
915b86d29b
cleanup OpenVZ config file accesses
...
* src/openvz_conf.c: cleanup OpenVZ config file accesses, patch
from Evgeniy Sokolov
Daniel
2008-07-11 08:56:16 +00:00
Daniel Veillard
fc2076033b
bug in do_open()
...
* src/libvirt.c: Evgeniy Sokolov found a driver open bug
in do_open()
Daniel
2008-07-10 15:29:39 +00:00
Daniel Veillard
5215d88be2
cleanup OpenVZ error function
...
* src/openvz_conf.c src/openvz_conf.h src/openvz_driver.c
Makefile.maint: patch from Evgeniy Sokolov cleaning up the
error function used and format check based on Jim's fedback.
Daniel
2008-07-10 12:21:09 +00:00
Daniel Veillard
a665a52cb3
domain name validation fix
...
* docs/libvirt.rng: domain name validation fix by John Levon
* AUTHORS: add John Levon
Daniel
2008-07-10 08:05:39 +00:00
Daniel Veillard
47010f352c
* src/openvz_conf.c src/openvz_conf.h src/openvz_driver.c: new
...
patch from Evgeniy Sokolov adding OpenVZ autostart get and set support
Daniel
2008-07-10 07:52:14 +00:00
Daniel Veillard
f7896554e9
Adds Evgeniy to AUTHORS list
...
Daniel
2008-07-09 11:57:40 +00:00
Daniel Veillard
db9bcc9bd4
diagnostic fixes on OpenVZ failures
...
* src/openvz_conf.c src/openvz_conf.h src/openvz_driver.c: applied
patch from Evgeniy Sokolov fixing error diagnostic when exec'ing
OpenVZ commands.
Daniel
2008-07-09 11:55:27 +00:00
Daniel P. Berrange
c207f75890
Fix use of VIR_TEST_DEBUG var when OOM testing is not enabled & surpress more valgrind warnings
2008-07-09 10:27:17 +00:00
Daniel P. Berrange
08397146eb
Remove legacy debug output
2008-07-09 10:18:03 +00:00
Daniel P. Berrange
0fac29a8c6
Fix QEMU test for xen bootloader
2008-07-09 08:46:09 +00:00
Daniel P. Berrange
b897973f2e
Preserve context node when doing XPath queries to allow relative XPath expressions
2008-07-09 08:35:09 +00:00
Jim Meyering
fb2eca4cfd
give a more useful diagnostic for tap-add failure w/ENOTSUP
...
* src/qemu_conf.c (qemudNetworkIfaceConnect):
Suggestion from Daniel P. Berrange.
2008-07-09 05:24:08 +00:00
Daniel P. Berrange
a211db1b8f
Fix typo in domain state constant
2008-07-08 17:49:26 +00:00
Daniel P. Berrange
24cef5fdfd
Fix three typos pointed out by Anton Protopopov
2008-07-08 17:44:56 +00:00
Daniel P. Berrange
95675d4d76
Fix openvz build on x86_64
2008-07-07 11:48:40 +00:00
Daniel P. Berrange
d1b5773ec1
Remove bogus return statement in test code
2008-07-07 10:36:30 +00:00
Daniel P. Berrange
0caf27a2b0
ALlow OOM tests to be parallelized
2008-07-07 10:10:29 +00:00
Daniel Veillard
8d18d826a4
* proxy/libvirt_proxy.c: fix a compilation problem without Xen
...
* libvirt.spec.in: add %{release] to BuildRoot
Daniel
2008-07-07 10:00:30 +00:00
Daniel P. Berrange
bf79e90f3a
Fix memory leak in OOM cleanup
2008-07-07 09:52:26 +00:00
Dan Smith
b6cd099df4
Updated ChangeLog for recent LXC patches
2008-07-02 14:20:10 +00:00
Atsushi SAKAI
fa97486070
Compilation fix for MinGW(w/ LXC)
2008-06-30 05:11:13 +00:00
Atsushi SAKAI
f3c3550771
Fix make syntax-check
2008-06-26 10:56:19 +00:00
Atsushi SAKAI
fbb5d771a0
Compilation fixes for MinGW
2008-06-26 09:37:51 +00:00
Jim Meyering
9c593643ff
quiet "make syntax-check"
...
* Makefile.maint (strftime-check): Add "@" prefix.
(po-check): Likewise.
2008-06-25 14:21:44 +00:00
Daniel Veillard
2de7d9d224
* python/types.c: patch from Ryan Scott to remove misplaced verbosity
...
when compiling in debug mode.
Daniel
2008-06-25 11:42:27 +00:00
Daniel Veillard
93db3c61c0
* configure.in NEWS libvirt.spec* doc/* po/*: making libvirt-0.4.4
...
release
* src/xm_internal.c: fix xm driver serialization escapes
* tests/xmconfigtest.c tests/xmconfigdata/test-escape-paths.cfg
tests/xmconfigdata/test-escape-paths.xml: add test for previous
problem
Daniel
2008-06-25 08:59:37 +00:00
Daniel Veillard
3f6d44e9c9
* po/*: updated a couple of localizations and regenerated the
...
files
Daniel
2008-06-25 08:49:54 +00:00
Daniel P. Berrange
47605e1dfa
Added helpers for dealing with enumerations
2008-06-24 15:00:15 +00:00
Daniel P. Berrange
313f1a7c0d
Fix const-ness of virStorageBackendRunProgRegex()
2008-06-24 14:30:25 +00:00
Daniel Veillard
1ec7cccbd3
fix a couple of List functions for max = 0 issues
...
* src/xen_internal.c src/xend_internal.c: fix a couple of issues
for List functions where max given is 0
Daniel
2008-06-19 14:39:49 +00:00
Jim Meyering
e09fab39a8
virsh fails to read files larger than BUFSIZ bytes
...
* src/util.c (fread_file_lim): Use VIR_REALLOC_N, not VIR_ALLOC_N.
Bug introduced in 895d0fdf5b
.
* tests/Makefile.am (test_scripts): Add read-bufsiz.
* tests/read-bufsiz: New test for the above.
2008-06-19 14:30:52 +00:00
Chris Lalancette
2dc11b36a1
Update the changelog to go along with my commits for the last week.
2008-06-19 14:22:54 +00:00
Daniel Veillard
a48f26c718
adding autogen.sh to EXTRA_DIST
...
* Makefile.am: adding autogen.sh to EXTRA_DIST
Daniel
2008-06-13 09:08:44 +00:00
Daniel Veillard
5ba9e91e52
* src/qemu_conf.c: patch from Kaitlin Rupert, dynamic devices
...
for network should be defined in an 'interface' node not 'net'
Daniel
2008-06-13 07:56:59 +00:00
Daniel Veillard
7db4c905d7
* configure.in NEWS libvirt.spec* doc/* po/*: making libvirt-0.4.3
...
release
Daniel
2008-06-12 16:10:50 +00:00
Daniel P. Berrange
841dd882a4
Fix misc compile warnings
2008-06-12 13:48:29 +00:00
Daniel P. Berrange
db162cb2b8
Fix saving of iptables rules
2008-06-12 13:47:38 +00:00
Daniel P. Berrange
74fb2b9704
Deal with inactive virtual network in domain creation
2008-06-12 10:19:24 +00:00
Daniel Veillard
5d14e4fcce
* src/qemu_driver.c: patch from Kaitlin Rupert, changing vcpu or
...
memory of an active domain is a NO_SUPPORT not INTERNAL_ERROR
Daniel
2008-06-12 08:55:13 +00:00
Daniel Veillard
d7f62fefed
po regeneration
...
* po/*: update and regenerated
Daniel
2008-06-11 15:22:24 +00:00
Daniel P. Berrange
357bf10553
Fix RPM build
2008-06-11 11:26:36 +00:00
Daniel Veillard
c0626a02a9
* python/libvir.py python/libvirt-python-api.xml: more python
...
cleanups by Cole Robinson
Daniel
2008-06-11 07:49:01 +00:00
Daniel Veillard
b0a3d6809a
* configure.in: patch from Cole Robinson to reactivate storage
...
support
Daniel
2008-06-10 15:35:15 +00:00
Daniel Veillard
cb96ae2583
* python/generator.py python/libvir.c python/libvirt-python-api.xml:
...
Apply patch from Cole Robinson fixing UUIDString for python
Daniel
2008-06-10 15:20:25 +00:00
Richard W.M. Jones
406d896363
Pass syntax check for XM block devices over to XenD
...
* src/xm_internal.c: Pass responsibility for checking syntax
of XM block devices over the XenD (see also Xen cset 17617).
(Hiroyuki Kaguchi).
2008-06-10 14:39:58 +00:00
Richard W.M. Jones
6bcf25017b
virDomainMemoryPeek API
...
* include/libvirt/libvirt.h.in, src/libvirt.c, src/driver.h,
src/libvirt_sym.version: New virDomainMemoryPeek API.
* qemud/remote.c, qemud/remote_protocol.x, src/remote_internal.c:
Support for remote.
* src/qemu_driver.c: QEMU driver implementation of API.
* src/test.c: Test driver (null) implementation of API.
* docs/hvsupport.html.in: Document API.
* libvirt.spec.in: New path /var/cache/libvirt for temporary
storage of memory images.
* qemud/libvirtd.init.in: Remove any old temp files in
/var/cache/libvirt on restarts.
* src/Makefile.am: make install creates /var/cache/libvirt.
* configure.in: Detect mkdir -p.
2008-06-10 10:43:28 +00:00
David L. Leskovec
0d0c96722c
Mon Jun 9 15:42:34 PST 2008 David L. Leskovec <dlesko@linux.vnet.ibm.com>
...
* src/lxc_driver.c: Make console element is output only. Always open new
PTY when starting a container.
Fix string overrun when storing console name in VM def struct
2008-06-09 22:51:32 +00:00
Richard W.M. Jones
787e44a1d0
Better error messages in xend driver.
...
* src/xend_internal.c: Change virXendError function to take
varargs. Better error messages throughout.
2008-06-09 12:16:03 +00:00
Daniel P. Berrange
d789ef5a88
Switch over remaining driver code to use memory alloc apis
2008-06-06 11:09:57 +00:00
Daniel P. Berrange
d7d21c85e0
Switch daemon over to use internal memory allocation APIs
2008-06-06 10:52:01 +00:00
Richard W.M. Jones
a73a88a19f
virDomainBlockPeek QEMU and remote support
...
* qemud/remote.c, qemud/remote_protocol.x, src/remote_internal.c:
Remote support.
* qemud/remote_dispatch_localvars.h,
qemud/remote_dispatch_proc_switch.h,
qemud/remote_dispatch_prototypes.h,
qemud/remote_protocol.c,
qemud/remote_protocol.h:
Generated files for remote support.
* src/xen_unified.c, src/driver.h, src/libvirt.c: Small fix -
pass flags around internally.
* src/qemu_driver.c: Support for QEMU.
* src/xend_internal.c: Remove redundant fstat call from Xen.
2008-06-05 21:12:26 +00:00
Richard W.M. Jones
8354895e68
virDomainBlockPeek call
...
* configure.in: Document AC_SYS_LARGEFILE.
* docs/hvsupport.html.in: Document HV support for virDomainBlockPeek.
* include/libvirt/libvirt.h.in, src/driver.h, src/libvirt.c,
src/libvirt_sym.version: Add virDomainBlockPeek infrastructure.
* src/qemu_driver.c, src/test.c: Null versions of this call.
* src/xen_unified.c, src/xend_internal.c, src/xend_internal.h,
src/xm_internal.c, src/xm_internal.h: Xen implementation.
* tests/sexpr2xmldata/sexpr2xml-curmem.xml,
tests/sexpr2xmldata/sexpr2xml-no-source-cdrom.xml: XML output
has been reordered slightly in the Xen driver, but should be
functionally the same.
2008-06-05 13:17:45 +00:00
David L. Leskovec
0bd57cdbe1
Fix a few issues related to restart of libvirtd with containers running.
...
Mon May 12 23:32:21 PST 2008 David L. Leskovec <dlesko@linux.vnet.ibm.com>
* src/lxc_driver.c: Add sanity of tty pid before kill()
Ignore ECHILD errors during VM cleanup
Call functions to store tty pid and cleanup tty pid file
* src/lxc_conf.h: Add function to verify container process exists
Add facilities to manage storing the tty forward process pid
* src/lxc_conf.c: Add function to verify container process exists
Call function to verify container process during config load
Add facilities to manage storing the tty forward process pid
Call function to load tty pid during load config
2008-06-05 06:03:00 +00:00
Richard W.M. Jones
eeb224b812
* src/xm_internal.c: If vcpu cpuset attribute is invalid
...
then display an error instead of silently ignoring it
(Hiroyuki Kaguchi).
2008-06-03 08:01:45 +00:00
Richard W.M. Jones
4a9ebf7da7
General tips for contributing patches
...
* HACKING: Added section "general tips for contributing patches"
to this file.
2008-06-02 11:53:23 +00:00
Daniel P. Berrange
f855e91f11
Only run coverage tests if lcov is installed
2008-05-29 20:43:08 +00:00
Daniel P. Berrange
d007428ddb
Fix make dist
2008-05-29 20:09:56 +00:00
Daniel P. Berrange
84494d2e0a
Fix warning with OOM testing is disabled
2008-05-29 19:41:40 +00:00
Daniel P. Berrange
aa2bb9c88c
Switch to using lcov for code coverage repots
2008-05-29 19:27:04 +00:00
Daniel P. Berrange
5e124764c1
Fix parted check & disable storage driver if daemon isn't present
2008-05-29 19:23:17 +00:00
Daniel P. Berrange
895d0fdf5b
Convert to use new memory allocation APIs
2008-05-29 19:20:22 +00:00
Daniel P. Berrange
e8a0db81ef
Pass allocation number to callback
2008-05-29 18:47:00 +00:00
Daniel P. Berrange
46f52f32b2
Convert to use new memory allocation APIs
2008-05-29 18:45:36 +00:00
Daniel P. Berrange
489da1c4b1
Fix missing check for memory allocation failure
2008-05-29 18:45:07 +00:00
Daniel P. Berrange
4b23495509
Convert test suites over to new test infrastructure
2008-05-29 15:31:49 +00:00
Daniel P. Berrange
b0bcffda3b
Misc OOM / memory leak fixes
2008-05-29 15:28:28 +00:00
Daniel P. Berrange
364f53a67a
Generic test suite helpers for OOM testing
2008-05-29 15:21:45 +00:00