Daniel P. Berrange
a480572244
Add uniqness checking for LXC define/create methods
...
* src/lxc_driver.c: Check for name & UUID uniqueness when
defining or creating domains
2009-08-05 12:01:04 +01:00
Daniel P. Berrange
388f3368cb
Fix removal of transient VMs when LXC aborts
...
* src/lxc_driver.c: Remove transient VM after monitor triggered
shutdown
2009-08-05 12:01:04 +01:00
Daniel P. Berrange
53d9a92497
Don't try to activate cgroups if not present for LXC
...
* src/lxc_controller.c: Don't throw error in LXC startup if
the cgroups driver mount isn't available. Improve error
logging for resource setup
2009-08-05 12:01:04 +01:00
Daniel P. Berrange
87f3d69dac
Fix configure checks from previous commits
...
* configure.in: Don't set AM_CONDITIIONAL until *after* making
the checks
2009-08-05 11:59:58 +01:00
Daniel P. Berrange
acec6c3d02
Avoid a warning if compiling without inotify
...
* src/xm_internal.c: split the implementations of xenInotifyActive()
2009-08-05 12:04:26 +02:00
Aron Griffis
3879b33447
Typo and comment fixes
...
* docs/schemas/*.rng: the comments were wrong
* src/qemu_conf.c: typo in an error message
2009-08-05 11:56:56 +02:00
Cole Robinson
a11010c07d
Refresh /etc/xen if inotify wasn't
...
* src/xm_internal.c: in case of multiple connections to the xen driver
and some clients were not using domain events, the whole /etc/xen
monitoring would break leading to disapearing domains.
2009-08-05 11:46:33 +02:00
Cole Robinson
8ddfb40e2d
Don't loose id on xen domain redefine
...
* src/xm_internal.c: bug when redefining a domain, if it was running
we would loose its id
2009-08-05 11:39:31 +02:00
Daniel Veillard
3e64748c72
Remove a stray semicolon
...
* src/xend_internal.c: extraneous ; in xenDaemonParseSxprGraphicsNew
2009-08-05 11:24:23 +02:00
Maximilian Wilhelm
3f11d7820a
Workaround for broken GCC in Debian Etch
...
* src/storage_conf.c src/internal.h: move previous check in internal.h
and add a workaround for a GCC bug in Debian Etch on limit definitions
2009-08-05 11:19:34 +02:00
Maximilian Wilhelm
64bf389bca
Xen Inotify support needs sys/inotify.h
...
* configure.in: to activate Xen Inotify checking we need to check for
sys/inotify.h availability
2009-08-05 10:57:40 +02:00
Maximilian Wilhelm
a3a623dd57
LXC driver requires sched.h and unshare()
...
* configure.in: make it check by default for both
2009-08-05 10:52:14 +02:00
Maximilian Wilhelm
16928a161b
Configure UML support only if sys/inotify.h present
...
* configure.in: UML support requires sys/inotify.h so make it check
by default.
2009-08-05 10:47:18 +02:00
Maximilian Wilhelm
939cc47431
Fix libcurl automatic check and ESX status
...
* configure.in: if libcurl is not present ESX should be desactivated
so default to check for esx
2009-08-05 10:43:37 +02:00
Matthias Bolte
10a4e969a6
Extend the ESX URL to habdle ports and GSX
...
* src/esx/esx_driver.c src/esx/esx_vi.[ch] src/esx/esx_vmx.[ch]:
adds version checking for GSX 2.0, allows to pass a specific port
for the connection and also add a new specific gsx scheme for
easier connections to GSX hosts
2009-08-05 10:23:59 +02:00
Daniel P. Berrange
8feb499ba2
Fix escaping of 8-bit high characters
...
Fix https://bugzilla.redhat.com/show_bug.cgi?id=479517
* src/buf.c: Cast to 'unsigned char' before doing compare to
avoid rejecting 8-bit high characters
2009-08-04 18:13:09 +01:00
Daniel P. Berrange
bf69fd9b22
Fix memory leak in openvz driver
...
* src/openvz_driver.c: Remove unneccessary strdup() on hypervisor
type api call
2009-08-03 11:42:39 +01:00
Chris Lalancette
7a4769bbdb
Remove ATTRIBUTE_UNUSED from flags to qemudDomainMigratePerform.
...
Signed-off-by: Chris Lalancette <clalance@redhat.com>
2009-08-02 12:08:11 +02:00
Chris Lalancette
1fdb582a09
Add a comment about setting errors after qemudStartVMDaemon().
...
Signed-off-by: Chris Lalancette <clalance@redhat.com>
2009-08-02 12:08:00 +02:00
Chris Lalancette
067c00f533
Fix an erroneous debug error to KVM; it should read QEMU/KVM.
...
Signed-off-by: Chris Lalancette <clalance@redhat.com>
2009-08-02 12:07:45 +02:00
Chris Lalancette
1a94521770
Remove a stray semicolon in qemudDomainMigratePrepare2.
...
Signed-off-by: Chris Lalancette <clalance@redhat.com>
2009-08-02 12:07:33 +02:00
Chris Lalancette
08cb0b3cfc
Convert a few stray users of free() in libvirt.c to VIR_FREE().
...
Signed-off-by: Chris Lalancette <clalance@redhat.com>
2009-08-02 12:07:20 +02:00
Chris Lalancette
180ca598c4
Use virGetHostname instead of gethostname.
...
Fix up qemudDomainMigratePrepare2 to use virGetHostname instead of
gethostname. Besides the fact that virGetHostname is far more clever,
there was a latent bug in the handling that could cause a buffer overflow
on a very long hostname.
Signed-off-by: Chris Lalancette <clalance@redhat.com>
2009-08-02 12:07:02 +02:00
Chris Lalancette
f24d4671d4
Fix up a minor indentation issue with virDomainMigratePrepare.
...
Signed-off-by: Chris Lalancette <clalance@redhat.com>
2009-08-02 12:06:35 +02:00
Chris Lalancette
e1ec2a1ea6
Fix virCapabilitiesDefaultGuestMachine documentation.
...
Signed-off-by: Chris Lalancette <clalance@redhat.com>
2009-08-02 12:06:20 +02:00
Chris Lalancette
5705a7e066
Fix up a silly typo in apibuild.py.
...
Signed-off-by: Chris Lalancette <clalance@redhat.com>
2009-08-02 12:05:33 +02:00
Daniel P. Berrange
e170af3ac0
Protected against potential crash scenarios
...
* src/qemu_driver.c: Check that monitor device is not NULL
before runing a command to protect against bugs in caller
2009-07-31 17:06:44 +01:00
Daniel P. Berrange
88e3e8be7c
Improve diagnostics when pidfile writing fails
...
* src/util.c: Include path & pid when logging pidfile failure
2009-07-31 17:06:44 +01:00
Daniel P. Berrange
5d3e02aaa2
Fix crash when attempting to shutdown inactive QEMU vm
...
* src/qemu_driver.c: Add check that QEMU is active before attemting
to shutdown. Fix error code for check in destroy method
2009-07-31 17:06:44 +01:00
Daniel P. Berrange
84e96866ac
Enable ESX driver build on Mingw32
...
* autobuild.sh, mingw32-libvirt.spec.in: Enable esx on mingw32
* src/esx/esx_driver.c: Define AI_ADDRCONFIG if not set
* src/esx/esx_util.c, src/esx/esx_vi_types.c: Always use
%lld & friends, since gnulib guarentees we have these
and not the target's own variants
2009-07-31 16:15:51 +01:00
Daniel P. Berrange
651153216b
Disable IPv6 on virtual networks
...
If the bridge device is configured to have IPv6 address and
accept router advertisments, then a malicious guest can send
out bogus advertisments and hijack/DOS host IPv6 connectivity
* src/network_driver.c: Set accept_ra=0, disable_ipv6=1, autoconf=0
for IPv6 sysctl on virual network bridge devices
2009-07-31 16:14:26 +01:00
Mark McLoughlin
a49cf8a57d
Fix PCIe FLR detection
...
PCIe DevCap register is actually 32 bits, not 16 bits. Since FLR is
bit 28, we clearly are failing to detect FLR support.
Known to fix device reset with some SR-IOV devices.
* src/pci.c: fix pciDetectFunctionLevelReset()
2009-07-31 15:41:36 +01:00
Mark McLoughlin
f4e7157716
Set perms on /var/lib/libvirt/images to 0711
...
Allow qemu user to open images in this dir, but still prevent others
from listing it.
* libvirt.spec.in: set /var/lib/libvirt/images perms to 0711
2009-07-31 09:52:24 +01:00
Daniel P. Berrange
9a152d481b
Fix problem writing QEMU pidfile
...
* src/util.c: Don't drop capabilities until after the PID file has
been written. Kill off child if writing the PID file fails
* src/qemu_driver.c: Remove bogus trailing '/' in state dir
2009-07-30 17:47:34 +01:00
Daniel P. Berrange
df3de82c06
Allow dnsmasq to provide DNS without DHCP
...
* src/network_driver.c: Always start dnsmasq to allow it to provide
DNS, even if no DHCP ranges are enabled
2009-07-30 17:47:15 +01:00
Maximilian Wilhelm
8db5f642e9
Avoid warning when compiling without IFF_VNET_HDR
...
* src/bridge.c: avoid a couple of unused var/func warnings
2009-07-30 17:28:44 +02:00
Daniel P. Berrange
16208bca89
Fix build on mingw32 by disabling netcf
...
* autobuild.sh, mingw32-libvirt.spec.in: Set --without-netcf for
mingw32 builds
2009-07-30 13:07:51 +01:00
Matthias Bolte
3f3ec73d39
ESX Scheduler documentation and cleanup
...
* esx/esx_driver.c: add some documentation about the CPU scheduler
parameters and remove some old, unnecessary compensation code, since
virsh uses the proposed parameter types now.
2009-07-30 13:41:04 +02:00
Henrik Persson
c9bece0c8f
Fix vcpupin on Xen problem
...
* src/xend_internal.c: the update on the cpu affinity map format
had na error and made the changes in the wrong buffer, fix those
2009-07-30 13:32:03 +02:00
Daniel P. Berrange
eb78ccf391
Fix RPM upgrades from F11 to F12
...
* libvirt.spec.in: Create qemu/kvm user/group in %pre script
2009-07-30 12:26:58 +01:00
Aron Griffis
d3209478d5
Fix an initialization problem in previous patch
...
* src/bridge.c: fix struct ifreq ifr init in brAddTap()
2009-07-30 09:14:47 +02:00
Bryan Kearney
13e5668a84
Update the java bindings page
...
* docs/java.html[.in]: update the java bindings html page to reflect the
new repositories, JNA usage, and maven access
2009-07-29 23:28:50 +02:00
Aron Griffis
8fa592e3dc
Remove MAX_TAP_ID and let kernel do numbering
...
* src/bridge.c: no need to format the device string in brAddTap()
this can be delegated to the kernel and removes an arbitrary limit.
2009-07-29 23:23:23 +02:00
Ron Yorston
e195b43932
Kernel command line support for UML
...
* src/uml_conf.c: add support for additional kernel command line
arguments.
2009-07-29 16:40:49 +02:00
Daniel P. Berrange
664085ab74
Fix deadlock in remote driver domain events
...
* src/remote_internal.c: Release driver lock when dispatching events
to callbacks
2009-07-29 15:25:18 +01:00
Ryota Ozaki
abe3ee9cc5
qemu: fix monitor socket reconnection
...
* src/qemu_driver.c: fix qemudOpenMonitorUnix() to retry on ENOENT
instead of EACCES which is the error one receive when the socket
error hasn't shown up yet
2009-07-29 16:13:05 +02:00
Mark McLoughlin
a8e34e298e
Fix polkit/netcf disabling on older fedoras
...
polkit was disabled by default for a reason - because we selectively
enable it on newer fedoras rather than disable it on older fedoras
Same fix needed for netcf
2009-07-29 10:05:39 +01:00
Mark McLoughlin
181c80d6eb
Capilize libvirt-client summary
...
Fixes:
W: summary-not-capitalized client side library and utilities of the libvirt library
2009-07-29 09:57:24 +01:00
Mark McLoughlin
56d672afeb
Move ldconfig calls to libvirt-client %post/%postun
...
Now that the library has moved to libvirt-client
2009-07-29 09:55:43 +01:00
Mark McLoughlin
b9ebee4939
Convert NEWS to UTF-8
...
* docs/news.xsl: request UTF-8 as the output encoding
* NEWS: re-generate with UTF-8 encoding
2009-07-29 09:04:21 +01:00