Daniel P. Berrange
72dc6d60ab
Remove use of qemudSetNonBlock/SetCloseExec in favour of shared impl
2009-05-12 15:43:07 +00:00
Daniel P. Berrange
b8761bb215
Add libtool wrapper to allow quiet build with "make -s"
2009-05-12 15:40:03 +00:00
Daniel P. Berrange
1a60d6bcd6
Improve driver open URI handling
2009-05-12 15:35:18 +00:00
Daniel Veillard
e978774ec6
* src/network_driver.c: enable bridges which are not up
...
without an IP address, patch by Ludwig Nussel
Daniel
2009-05-12 15:31:22 +00:00
Daniel P. Berrange
6582d5872d
Make hash destructors call internal unref methods to free objects
2009-05-11 15:27:37 +00:00
Daniel P. Berrange
65ecb4b434
Fix unused variable warning in LXC driver
2009-05-11 15:26:23 +00:00
Daniel P. Berrange
426f9772b8
Fix QEMU ARGV detection with kvm >= 85
2009-05-11 15:14:24 +00:00
Daniel P. Berrange
9927ca6274
Report detailed error if initial connection open attempt fails
2009-05-11 14:55:52 +00:00
Daniel Veillard
9959a1dd9d
drop CAP_SYS_BOOT capability from LXC containers
...
* src/lxc_container.c: drop LXC CAP_SYS_BOOT capability to avoid
reboot from inside containers, patch by Ryota Ozaki
Daniel
2009-05-11 14:05:27 +00:00
Cole Robinson
0c8a9d2d51
Check that QEMU is still alive while reading startup output.
...
By checking the pid every retry period, we can quickly determine if
the process crashed at startup, rather than make the user wait for
the entire timeout (3 seconds).
2009-05-11 13:52:31 +00:00
Cole Robinson
a331653dad
Add pidfile argument to __virExec
...
virExec will write out the pid of the daemonized process only. Use this
in the QEMU driver, rather than QEMU's pidfile, so we can catch errors we
might miss if the emulator bails early.
2009-05-11 13:50:38 +00:00
Cole Robinson
27d72bd517
Report qemu log data if we fail to daemonize the process.
...
This ensures the user will actually see 'hook' function error output.
2009-05-11 13:37:19 +00:00
Cole Robinson
79d9d2432f
Add helper function virExecDaemonize
...
Wraps __virExec with the VIR_EXEC_DAEMON flag. Waits on the intermediate
process to ensure we don't end up with any zombies, and differentiates between
original process errors and intermediate process errors.
2009-05-11 13:34:37 +00:00
Daniel Veillard
2e878906e4
"Host only" and "Internal" network support for vbox
...
* src/vbox/vbox_tmpl.c: "Host only" and "Internal" network support
for vbox, patch by Pritesh Kothari
daniel
2009-05-11 09:56:04 +00:00
Daniel Veillard
070c1c82b0
Support for 'internal' network
...
* src/domain_conf.[ch] docs/schemas/domain.rng: add support
for internal network in the generic part of the code, and
update the Relax-NG grammar accordingly, patch by Pritesh Kothari
daniel
2009-05-11 09:50:27 +00:00
Daniel P. Berrange
b81c7c0892
Create cgroups mode 755, not 655 (Ryota Ozaki)
2009-05-08 10:24:11 +00:00
Daniel P. Berrange
328eac61cd
Fix /dev/ population to use char devices (Ryota Ozaki)
2009-05-08 10:22:46 +00:00
Guido Günther
6059354da6
return VIR_DRV_OPEN_DECLINED instead of VIR_DRV_OPEN_ERROR when vbox can't be
...
found so other hypervisors can be probed. Patch by Pritesh Kothari.
2009-05-08 10:18:26 +00:00
Guido Günther
67e2804ecb
fix crash when init fails early (i.e. due to vbox not being installed)
2009-05-08 10:14:30 +00:00
Daniel P. Berrange
54ebbde1e1
Improve name & UUID uniqueness checking in QEMU driver
2009-05-08 10:11:14 +00:00
Daniel P. Berrange
88e22e4e8c
Enable save/restore/migrate for QEMU >= 0.10.0
2009-05-08 10:07:15 +00:00
Daniel P. Berrange
0fb9066aaf
Log dlopen() errors more verbosely
2009-05-08 10:05:56 +00:00
Daniel P. Berrange
7022759b7e
Add new VIR_ERR_OPERATION_INVALID error code & use it in Xen & QEMU drivers
2009-05-08 09:58:46 +00:00
Daniel Veillard
2a1c7b57ff
Improve init.d file headers
...
* qemud/libvirtd.init.in: improve the LSB init header for the
init.d file, patch by Frederik Himpe
Daniel
2009-05-07 07:34:05 +00:00
Guido Günther
1dfc35677e
check for NULL pointers in pidfile functions
2009-05-07 07:29:51 +00:00
Daniel Veillard
7ee54d8356
Changes needed for multiple graphics adapters
...
* src/domain_conf.c src/domain_conf.h: parse and save multiple
graphics elements instead of one, patch by Pritesh Kothari
* src/qemu_conf.c src/qemu_driver.c: adapt the qemu/kvm driver for
the new structures, patch by Pritesh Kothari
* src/xend_internal.c src/xm_internal.c: same thing for Xen drivers
Daniel
2009-05-07 07:27:49 +00:00
Guido Günther
9f9ce6130d
don't crash when called without arguments
2009-05-07 07:17:25 +00:00
Mark McLoughlin
1d6c713b18
Fix qemu driver's interpretation of <hostdev managed='yes'/>
...
This change:
Tue Mar 3 08:55:13 GMT 2009 Daniel P. Berrange <berrange@redhat.com>
Don't try to detach & reset PCI devices while running test
suite for XML-> ARGV conversion.
* src/qemu_driver.c: Add qemuPrepareHostDevices() helper to
detach and reset PCI devices.
* src/qemu_conf.c: Don't detach & reset PCI devices while
building the command line argv
accidentally did this:
- if (hostdev->managed) {
+ if (!hostdev->managed) {
Which results in managed='yes' not causing the device to be
detached when the guest is starting.
Signed-off-by: Mark McLoughlin <markmc@redhat.com>
2009-05-06 15:56:20 +00:00
Cole Robinson
4f10759024
Refresh QEMU driver capabilities for each getCapabilities call.
...
Also fix up a couple issues where caps are accessed without locking
the driver structure.
2009-05-06 14:20:34 +00:00
Daniel Veillard
5432ec8ded
VirtualBox version improvement and cleanups
...
* src/vbox/vbox_driver.c src/vbox/vbox_tmpl.c: changes in
VirtualBox driver version detection and move informations
from a global variable into a driver structure, patch by Pritesh
Kothari.
Daniel
2009-05-06 13:51:19 +00:00
Daniel Veillard
81748c62c7
* libvirt.spec.in: add a couple of missing directories
...
Daniel
2009-05-06 13:27:54 +00:00
Daniel Veillard
9ccdbb5d61
* src/vbox/vbox_XPCOMCGlue.[ch]: improve VirtualBox path detection
...
patch by Pritesh Kothari
Daniel
2009-05-06 13:23:44 +00:00
Cole Robinson
840955ff7c
Don't throw away StartVM errors when migrating/restoring in qemu driver.
2009-05-05 14:26:02 +00:00
Cole Robinson
03f3736511
Small cleanups in test driver VolCreateXML
2009-05-05 14:19:59 +00:00
Cole Robinson
2a9ca74164
Remove some debug code from storage_driver.c
2009-05-05 14:18:51 +00:00
Cole Robinson
48e9d6862a
Use proper error code in virStorageVolCreateXML
2009-05-05 14:17:50 +00:00
Cole Robinson
3f24e6c21c
Fix a comment typo in storage_backend_fs.c
2009-05-04 15:44:44 +00:00
Cole Robinson
5314dffc85
virExec: Delay daemonizing as long as possible.
...
This way the caller can catch more errors (e.g. from a hook callback) from
the intermediate process.
2009-05-04 15:43:25 +00:00
Cole Robinson
a4d0a3fd50
Add some documentation to __virExec and virExec
2009-05-04 15:41:46 +00:00
Daniel P. Berrange
cb4a6614fa
Fix check for -Wformat-security which depends on -Wformat
2009-04-28 10:55:45 +00:00
Daniel Veillard
9cae1d5ed6
release of 0.6.3
...
* NEWS configure.in libvirt.spec.in docs/*: release of 0.6.3
* po/*: regenerated
* src/libvirt.c src/virterror.c: fixed some function comments
Daniel
2009-04-24 14:04:54 +00:00
Daniel P. Berrange
62aa1b56d6
Add virNodeDeviceCreateXML / virNodeDeviceDestroy boilerplate public API and remote protocol impl
2009-04-24 13:11:23 +00:00
Daniel P. Berrange
1aac8114ae
Fix Xen dlopen module missing export
2009-04-24 12:19:00 +00:00
Daniel P. Berrange
1fbee8dadf
Fix XM driver VIF config creation
2009-04-24 12:17:50 +00:00
Daniel Veillard
741fecedaa
Update of localizations and XML descriptions
...
* po/*: updated a could of locale, regenerated
* docs/libvirt-api.xml docs/libvirt-refs.xml: regenerated too
daniel
2009-04-24 10:09:24 +00:00
Daniel P. Berrange
d83ded2dba
Avoid compile warnings about assignment/conditional/truthvalue
2009-04-22 14:28:25 +00:00
Daniel P. Berrange
220bcb0535
Use a private /dev/pts instance in containers if kernel is new enough
2009-04-22 14:26:50 +00:00
Daniel P. Berrange
9c19a898f9
Remove stale QEMU pidfiles
2009-04-21 19:14:50 +00:00
Daniel P. Berrange
7a367cca30
Ensure VirtualBox domain IDs start from 1 instead of 0
2009-04-21 19:13:23 +00:00
Daniel Veillard
4c3f3b4d46
* src/network_conf.c src/network_conf.h: add dynamic bridge names
...
support, patch by Soren Hansen
* AUTHORS: add Soren
daniel
2009-04-21 19:00:06 +00:00
Daniel Veillard
ec4e379125
* src/xend_internal.c: let xend try vcpu pinning operation even
...
if the domain is not running, patch by Takahashi Tomohiro
daniel
2009-04-21 15:10:23 +00:00
Daniel Veillard
5237c2b847
* docs/drvvbox.html[.in]: tiny fixes to VirtualBox docs
...
Daniel
2009-04-21 13:39:40 +00:00
Daniel Veillard
b4ee10dfde
VirtualBox Documentation
...
* docs/drvvbox.html.in docs/hvsupport.html.in docs/drivers.html.in
docs/sitemap.html.in docs/*.html: VirtualBox Documentation by
Pritesh Kothari
Daniel
2009-04-21 12:24:14 +00:00
Daniel Veillard
bfc48afa14
cope with kernels where CLONE_NEWUSER is not supported
...
* src/lxc_container.c src/lxc_container.h: cope with kernels
where CLONE_NEWUSER is not supported, patch by Serge Hallyn
daniel
2009-04-20 12:27:12 +00:00
Mark McLoughlin
a4b1c0977a
Fix typo in manpage
...
It's "service libvirtd start", not "service start libvirtd".
Reported-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Mark McLoughlin <markmc@redhat.com>
2009-04-20 11:55:53 +00:00
Daniel Veillard
55671efe80
* po/*: merge in a lot of localization updates and regenerate
...
daniel
2009-04-20 09:25:44 +00:00
Daniel Veillard
943a2f2b60
* src/bridge.c: fix a compilation breakage raised by Anton Protopopov
...
daniel
2009-04-20 09:18:26 +00:00
Daniel P. Berrange
fd9a55254f
Added new virt-xml-validate tool to mingw specfile
2009-04-19 16:47:43 +00:00
Daniel P. Berrange
969209ce07
Disable vbox driver for mingw32 builds
2009-04-19 16:37:15 +00:00
Daniel P. Berrange
89626e8d69
Add another vbox file to EXTRA_DIST
2009-04-19 16:36:22 +00:00
Daniel P. Berrange
ac6797b28c
Add missing break in error code
2009-04-19 15:49:00 +00:00
Daniel P. Berrange
cfa30de3b8
Improve error reporting for lookup failures on inactive domains
2009-04-19 15:30:50 +00:00
Daniel P. Berrange
c881b32215
Fix 2 domain ID handling bugs in remote driver
2009-04-19 15:21:54 +00:00
Daniel P. Berrange
cb43623acd
Switch over todo domain lookup based on UUID in virDomainAssignDef
2009-04-19 15:16:43 +00:00
Daniel P. Berrange
8372a8c127
Regenerate API docs to pull in vbox driver error codes
2009-04-19 15:14:44 +00:00
Daniel P. Berrange
001390a684
Add 2 missing vbox files to EXTRA_DIST
2009-04-19 15:12:01 +00:00
Daniel P. Berrange
fa4126087b
Add tool for validating XML & fix misc bugs in virsh POD docs
2009-04-19 15:10:45 +00:00
Daniel P. Berrange
9a15c48d2d
Switch to using virDomainDefPtr for building command line in QEMU driver
2009-04-19 14:50:01 +00:00
Daniel Veillard
2cd9b2d8ee
drop the pool lock when allocating fs volumes
...
* src/libvirt_private.syms src/storage_backend.h
src/storage_backend_fs.c src/storage_conf.h src/storage_driver.c:
drop the pool lock when allocating fs volumes, patch by Cole Robinson
daniel
2009-04-17 19:12:37 +00:00
Daniel Veillard
10d1650843
integration of the VirtualBox support
...
* configure.in include/libvirt/virterror.h src/Makefile.am
src/domain_conf.[ch] src/driver.h src/virterror.c src/vbox/README
src/vbox/vbox_CAPI_v2_2.h src/vbox/vbox_V2_2.c
src/vbox/vbox_XPCOMCGlue.[ch] src/vbox/vbox_driver.[ch]
src/vbox/vbox_tmpl.c: integration of the VirtualBox support
patches by Pritesh Kothari
Daniel
2009-04-17 16:09:07 +00:00
Daniel Veillard
81e6a22192
Small doc fixes
...
* src/libvirt.c: fix the doc of virNodeGetFreeMemory to say bytes
* docs/drvlxc.html.in docs/drvlxc.html: fix command used in examples
daniel
2009-04-17 15:34:53 +00:00
Guido Günther
d24f6aabbb
fix "make syntax-check"
2009-04-17 08:21:40 +00:00
Guido Günther
5caa1e0eb0
Don't log monitor output to domain log file.
...
It's logged via the logging system already. Prefix monitor debug output with vm
name.
2009-04-16 15:56:27 +00:00
Guido Günther
a6c612a4ad
don't hardcode buffer for getgrnam_r to 1024 bytes and increase it on ERANGE.
2009-04-16 14:53:19 +00:00
Mark McLoughlin
9fa79000ec
qemu -drive takes format= not fmt=
...
Seems like a simple typo - it has been "format=" since the flag
was introduced, but we added it as "fmt=".
Signed-off-by: Mark McLoughlin <markmc@redhat.com>
2009-04-16 14:21:35 +00:00
Mark McLoughlin
169afbe9aa
Fix lxc syntax-check failure
...
Fixes:
CHECK: avoid_if_before_free
src/lxc_container.c: if (oldroot) VIR_FREE(oldroot)
src/lxc_container.c: if (newroot) VIR_FREE(newroot)
Makefile.maint: found useless "if" before "free" above
and:
src/lxc_container.c:317:
Makefile.maint: found trailing blank(s)
Signed-off-by: Mark McLoughlin <markmc@redhat.com>
2009-04-16 13:08:03 +00:00
Daniel Veillard
316befbb0c
Api documentation
...
* docs/Makefile.am docs/api.html docs/api.html.in docs/archdomain.html
docs/archnetwork.html docs/archnode.html docs/archstorage.html
docs/goals.html docs/intro.html
docs/libvirt-daemon-arch.fig docs/libvirt-daemon-arch.png
docs/libvirt-driver-arch.fig docs/libvirt-driver-arch.png
docs/libvirt-object-model.fig docs/libvirt-object-model.png
docs/page.xsl docs/sitemap.html docs/sitemap.html.in:
adding a new api page, extending the stylesheet to allow references
and including images from Dan Berrange
daniel
2009-04-15 20:42:50 +00:00
Daniel Veillard
f61208bde9
* src/virsh.c: fix for virsh ttyconsole return value bug #495954
...
daniel
2009-04-15 20:09:09 +00:00
Daniel Veillard
a28a644680
* drvlxc.html.in drvlxc.html: some examples from Serge Hallyn
...
daniel
2009-04-15 20:00:29 +00:00
Daniel Veillard
14687aad81
* src/xm_internal.c: fix a crash on vcpupin to inactive Xen domains,
...
as raised by Takahashi Tomohiro
daniel
2009-04-15 09:53:34 +00:00
Daniel Veillard
cab9eed62e
* src/lxc_driver.c: adds the getHostname method to the lxc driver
...
patch by Dan Smith
daniel
2009-04-15 09:34:56 +00:00
Dan Smith
06e43a8f2c
Commit patches by Serge Hallyn from 6-Apr and 7-Apr
2009-04-14 17:51:12 +00:00
Daniel Veillard
4fb341d741
* libvirt.spec.in: fix build on RHEL and Centos 5.x
...
daniel
2009-04-14 12:47:34 +00:00
Daniel Veillard
b2df3510b7
* src/storage_backend_scsi.[ch]: add SCSI storage rescan support,
...
patch by David Allan
daniel
2009-04-07 12:50:17 +00:00
Daniel Veillard
8536e697b6
release of 0.6.2
...
* configure.in libvirt.spec.in NEWS docs/*: release of 0.6.2
* po/*: Gujarati and Polish updates, rebuild
* AUTHORS: add one missing
Daniel
2009-04-03 15:25:38 +00:00
Cole Robinson
6d910c9fd4
Don't lose file format info on volume refresh.
2009-04-03 14:17:57 +00:00
Cole Robinson
766b2250e1
Refresh volume alloc/capacity when dumping XML.
2009-04-03 14:15:30 +00:00
Cole Robinson
a843f44c51
Fix test driver domain restore return value.
2009-04-03 14:14:05 +00:00
Cole Robinson
e807e4d9e9
Fix sparse volume allocation reporting.
2009-04-03 14:13:02 +00:00
Daniel P. Berrange
9ec1a56923
Fix crash in svirt verification, and incorrect cleanup in VM failure paths
2009-04-03 14:10:17 +00:00
Daniel P. Berrange
f0817018b1
Allow autoconnect to virsh console in create/start. Refuse to connect to remote consoles
2009-04-03 14:03:38 +00:00
Daniel P. Berrange
92ff72b52c
Misc NUMA related fixes
2009-04-03 12:45:05 +00:00
Daniel P. Berrange
e4073623a6
Support PCI passthrough for Xen
2009-04-03 12:38:52 +00:00
Daniel P. Berrange
11b0ed46c5
Improve security label error reporting & verification (Dan Walsh)
2009-04-03 10:55:51 +00:00
Daniel P. Berrange
d9ec9c6937
Fix mingw32 portability
2009-04-02 18:42:33 +00:00
Daniel Veillard
0722925986
* docs/schemas/domain.rng: some missing disk bus values and cleanups
...
daniel
2009-04-02 13:19:11 +00:00
Daniel Veillard
89dd05cc6f
* docs/*: start cleanup/revamp of architecture docs
...
daniel
2009-04-02 12:01:11 +00:00
Daniel Veillard
8b8f4c5cbc
* po/*: updated brazilian, spanish, polish and simplified chinese translations
...
and regenerated
Daniel
2009-04-02 09:56:17 +00:00
Daniel P. Berrange
55ae53d971
SCSI HBA storage pool implementation (Dave Allan)
2009-04-01 16:03:22 +00:00
Daniel P. Berrange
ecedb9cef3
Make SASL check also look for libsasl.so if libsasl2.so is missing
2009-04-01 10:40:38 +00:00