Mark McLoughlin
d954480892
Fri Feb 23 08:41:34 IST 2007 Mark McLoughlin <markmc@redhat.com>
...
* qemud/conf.[ch]: significantly re-factor qemudLoadConfigXML()
so that "parse the XML", "assign the def to a VM" and
"save the XML" operations are in separate functions.
Add qemudRemoveInactiveVM() and qemudRemoveInactiveNetwork().
Report errors when loading config files at startup. Check
that a domain/network's name matches the config filename.
* qemud/driver.c: update the Create() and Define() functions
to explicitly parse/assign/save. Also, fix bug where if
Create() failed, we would free the VM without removing it
from the inactive list.
* qemud/qemud.c: use qemudRemoveInactiveVM/Network()
2007-02-23 08:48:02 +00:00
Mark McLoughlin
593d20d400
Fri Feb 23 08:40:52 IST 2007 Mark McLoughlin <markmc@redhat.com>
...
* qemud/driver.[ch], qemud/dispatch.c: fix the fact that
qemudDispatchDomainStart() doesn't report an error if the uuid
lookup fails and also move the uuid lookup into the driver
so that it matches the way we do Destroy().
2007-02-23 08:41:23 +00:00
Mark McLoughlin
6ecd4045aa
Fri Feb 22 08:37:23 IST 2007 Mark McLoughlin <markmc@redhat.com>
...
* qemud/conf.c, qemud/driver.c, qemud/internal.h,
qemud/qemud.c: Merge the ->activevms and ->inactivevms
into a single ->vms list in order to make things
easier to manage. Likewise for networks. Also add
qemudIsActiveVM() and qemudIsActiveNetwork() inline
functions.
2007-02-23 08:39:49 +00:00
Daniel P. Berrange
6d6261f4e8
Ensure domains are killed off if hotplug fails. Fix deletion of inactive domains
2007-02-22 19:09:29 +00:00
Daniel P. Berrange
0f5e637a26
Updated AUTHORS file
2007-02-22 18:56:28 +00:00
Daniel P. Berrange
b3244072e4
Refuse to run shutdown/reboot on Dom0
2007-02-22 16:49:12 +00:00
Mark McLoughlin
68f1003652
Thu Feb 22 10:37:08 IST 2007 Mark McLoughlin <markmc@redhat.com>
...
* qemud/conf.c: fix another xml property leak.
2007-02-22 10:39:38 +00:00
Mark McLoughlin
5687da2c7a
Tue Feb 20 19:08:58 IST 2007 Mark McLoughlin <markmc@redhat.com>
...
* qemud/conf.c: use strerror(errno) in some error messages
to make them a bit more useful
2007-02-20 19:09:44 +00:00
Mark McLoughlin
4579467783
Fri Feb 20 19:07:12 IST 2007 Mark McLoughlin <markmc@redhat.com>
...
* qemud/conf.c: don't free active networks/vms if we
fail to save the new config
2007-02-20 19:08:09 +00:00
Mark McLoughlin
458344c94e
Fri Feb 20 18:25:42 IST 2007 Mark McLoughlin <markmc@redhat.com>
...
* virsh.c: cmdNetworkList() re-indent this.
2007-02-20 18:25:46 +00:00
Mark McLoughlin
1e20b80a91
Fri Feb 20 17:49:22 IST 2007 Mark McLoughlin <markmc@redhat.com>
...
Fix a few leaks
* qemud/qemud.c: qemudCleanup(): free the socket
structures
* qemud/conf.c: fix various leaks in the xml parsing
* qemud/iptables.c: fix a typo causing a leak
2007-02-20 17:51:41 +00:00
Mark McLoughlin
c5b3181ad9
Fri Feb 20 16:49:53 IST 2007 Mark McLoughlin <markmc@redhat.com>
...
* qemud/conf.c, qemud/qemud.c: only create config dirs
when actually trying to write out config.
2007-02-20 16:55:56 +00:00
Mark McLoughlin
5ed716484e
Fri Feb 20 09:56:35 IST 2007 Mark McLoughlin <markmc@redhat.com>
...
* qemud/bridge.c: change the fix for the alignment warning
a little.
2007-02-20 09:57:47 +00:00
Mark McLoughlin
28a07e4c80
Fri Feb 20 09:03:05 IST 2007 Mark McLoughlin <markmc@redhat.com>
...
* qemud/qemud.c: clean up qemudInitialize() and qemudListen()
so as to coalesce the two "system vs. user" code paths and
fix up some problems noticed by dan.
2007-02-20 09:04:27 +00:00
Mark McLoughlin
96b89415a3
Fri Feb 19 16:59:18 IST 2007 Mark McLoughlin <markmc@redhat.com>
...
* qemud/qemud.c: don't shutdown guest and networks on
SIGHUP
2007-02-19 17:00:05 +00:00
Mark McLoughlin
272639aaac
Fri Feb 19 16:58:53 IST 2007 Mark McLoughlin <markmc@redhat.com>
...
* qemud/qemud.c: handle SIGQUIT.
2007-02-19 16:59:15 +00:00
Daniel P. Berrange
10041b979d
Fixed data type casts to address endianness issues on ia64
2007-02-19 15:01:20 +00:00
Mark McLoughlin
cfa655f9b8
Fri Feb 16 18:28:32 IST 2007 Mark McLoughlin <markmc@redhat.com>
...
* qemud/qemud.c, qemud/dispatch.c, qemud/internal.h
qemud/conf.c, qemud/driver.c, configure.in: add a
qemudLog() function which uses syslog() if we're in daemon
mode, doesn't output INFO/DEBUG messages unless the
verbose flag is set and doesn't output DEBUG messages
unless compiled with --enable-debug. Also, make a first
pass through fatal errors and add error messages for them.
2007-02-16 18:30:55 +00:00
Mark McLoughlin
49fe28206a
Fri Feb 16 18:26:55 IST 2007 Mark McLoughlin <markmc@redhat.com>
...
* qemud/internal.h, qemud/qemud.c: improve signal handling
and handle SIGHUP by shutting down all guests and networks
and re-loading configs, and handle SIGINT and SIGTERM
by shutting down cleanly.
2007-02-16 18:28:17 +00:00
Mark McLoughlin
49dcc264e5
Fri Feb 16 18:24:08 IST 2007 Mark McLoughlin <markmc@redhat.com>
...
* qemud/qemud.c, qemud/bridge.c, qemud/iptables.c: fix
our FD_CLOEXEC usage so that all fds which should be
closed on exec are marked as such and that we leave
exec() to do the actual closing.
2007-02-16 18:26:18 +00:00
Mark McLoughlin
80820ec7a9
Fri Feb 16 18:23:15 IST 2007 Mark McLoughlin <markmc@redhat.com>
...
* qemud/qemud.c: fix qemudEnableIpForwarding() to not leak
an fd if writing to /proc/sys/net/ipv4/ip_forward fails.
2007-02-16 18:24:14 +00:00
Daniel P. Berrange
1b350c101b
Ignore libvirt-*.tar.gz
2007-02-16 17:06:38 +00:00
Daniel P. Berrange
7c025f04e8
Remove now redundant BuildRequires on gnutls
2007-02-16 17:04:51 +00:00
Daniel P. Berrange
44fbfe1d14
Ignore coverage & results.og files
2007-02-16 16:58:46 +00:00
Daniel P. Berrange
2d0f0ca5bb
Ignore autogenerated file remove-potcdate.sed
2007-02-16 16:58:19 +00:00
Daniel P. Berrange
926950f3eb
Fixed test suite linkage
2007-02-16 16:56:47 +00:00
Daniel P. Berrange
7c24fbb00c
Remove init method
2007-02-16 16:04:54 +00:00
Daniel P. Berrange
9d0fa40919
Remove mistaken includes for gnutls
2007-02-16 15:44:08 +00:00
Mark McLoughlin
fb387cbe27
Thu Feb 15 19:07:24 IST 2007 Mark McLoughlin <markmc@redhat.com>
...
* qemud/conf.c: fix <interface type='network'> output
2007-02-15 19:08:08 +00:00
Mark McLoughlin
e8f064000d
Thu Feb 15 19:06:56 IST 2007 Mark McLoughlin <markmc@redhat.com>
...
* qemud/conf.c: fix the <graphics> output - we weren't
handling sdl
2007-02-15 19:07:06 +00:00
Mark McLoughlin
4e2fa18166
Thu Feb 15 19:06:22 IST 2007 Mark McLoughlin <markmc@redhat.com>
...
* qemud/conf.c: fix a couple of typos
2007-02-15 19:06:10 +00:00
Mark McLoughlin
9839cf3798
Thu Feb 15 19:05:48 IST 2007 Mark McLoughlin <markmc@redhat.com>
...
* qemud/conf.c: fix segfault
2007-02-15 19:05:27 +00:00
Mark McLoughlin
7902317a4f
Thu Feb 15 19:04:10 IST 2007 Mark McLoughlin <markmc@redhat.com>
...
* qemud/conf.h: move qemudFreeVMDef() down a bit
2007-02-15 19:04:45 +00:00
Mark McLoughlin
ca4553d0e7
Thu Feb 15 16:00:05 IST 2007 Mark McLoughlin <markmc@redhat.com>
...
* qemud/bridge.c: don't output bridge parameters if they
are the default.
2007-02-15 16:01:09 +00:00
Mark McLoughlin
f9f7aeb4b7
Thu Feb 15 15:56:32 IST 2007 Mark McLoughlin <markmc@redhat.com>
...
* qemud/conf.[ch], qemud/dispatch.c, qemud/internal.h,
qemud/qemud.c, qemud/driver.c: allow re-defining network
configs; basically copying dan's patch for domains.
2007-02-15 16:00:16 +00:00
Mark McLoughlin
f83f9ad351
Thu Feb 15 15:56:32 IST 2007 Mark McLoughlin <markmc@redhat.com>
...
* qemud/conf.[ch], qemud/dispatch.c, qemud/internal.h,
qemud/qemud.c, qemud/driver.c: allow re-defining network
configs; basically copying dan's patch for domains.
2007-02-15 15:57:43 +00:00
Mark McLoughlin
bf5fae6a8c
Thu Feb 15 15:47:46 IST 2007 Mark McLoughlin <markmc@redhat.com>
...
* qemud/conf.c: fix a couple of qemud_vm_def leaks
* driver.c: simplify qemudDomainDefine()
2007-02-15 15:52:28 +00:00
Daniel P. Berrange
6ad5b9d5fb
Pre-create the toplevel libvirt config directory
2007-02-14 22:01:40 +00:00
Daniel P. Berrange
31ea5e9733
Fix <features> block. Only include ID & VNC port for active domain XML
2007-02-14 21:47:59 +00:00
Daniel P. Berrange
8dca13efc1
Fixed path for autostarting daemon
2007-02-14 21:46:06 +00:00
Daniel Veillard
de48dae9f0
* libvirt.spec.in: spec cleanup and missing BuildRequires
...
* qemud/Makefile.am: avoid -Werror
daniel
2007-02-14 18:54:26 +00:00
Daniel Veillard
2edf53128e
* configure.in NEWS include/libvirt/libvirt.h docs/* docs/apibuild.py:
...
prepare release of 0.2.0, update doc, avoid console module for API.
* po/*: regenerated
Daniel
2007-02-14 18:08:45 +00:00
Daniel P. Berrange
fd35f8ca58
Added libsysfs-devel dep & pre-create config/socket dir
2007-02-14 17:36:39 +00:00
Daniel P. Berrange
f9b263118f
Moved qemu sockets/configs
2007-02-14 17:35:38 +00:00
Daniel P. Berrange
a1432a5215
Blacklist vshRunConsole from python
2007-02-14 17:20:27 +00:00
Daniel P. Berrange
845272d541
Updated po files
2007-02-14 17:19:18 +00:00
Daniel P. Berrange
2e5e51151c
Refactor to allowing changing config of active domains
2007-02-14 17:05:55 +00:00
Mark McLoughlin
4ccb9579ff
Tue Feb 14 16:53:25 IST 2007 Mark McLoughlin <markmc@redhat.com>
...
Fix from Richard W.M. Jones <rjones@redhat.com>
* virsh.c: add a colon after the connect arg to
getopt_long()
2007-02-14 16:53:55 +00:00
Mark McLoughlin
ee310ec815
Tue Feb 14 16:48:24 IST 2007 Mark McLoughlin <markmc@redhat.com>
...
* src/qemu_internal.c: correctly register the network
driver
2007-02-14 16:48:51 +00:00
Mark McLoughlin
081c8d435c
Tue Feb 14 16:35:56 IST 2007 Mark McLoughlin <markmc@redhat.com>
...
* autogen.sh: run autoheader before automake
2007-02-14 16:35:47 +00:00