Daniel Veillard [Wed, 20 May 2009 13:37:30 +0000 (13:37 +0000)]
cleanup of some direct stderr logging
* qemud/qemud.c src/console.c src/network_driver.c
src/node_device_conf.c src/node_device_hal.c src/storage_conf.c
src/util.c: cleanup of some direct stderr logging
daniel
Cole Robinson [Tue, 19 May 2009 13:37:51 +0000 (13:37 +0000)]
Storage driver implementation for CreateXMLFrom
There is some funkiness here, since we are either dealing with 2 different
pools (which means validation x 2) or the same pool, where we have to be
careful not to deadlock.
Cole Robinson [Tue, 19 May 2009 13:26:14 +0000 (13:26 +0000)]
Fix a possible deadlock in HAL nodedev driver.
The cap_lost and prop_modified callbacks could deadlock if an existing
device needed to be refreshed, since dev_create expects the driver to
be unlocked.
Daniel Veillard [Fri, 15 May 2009 14:00:50 +0000 (14:00 +0000)]
Finish hostonly networks support in vbox
* src/vbox/vbox_driver.c src/vbox/vbox_tmpl.c: last patch for
hostonly networks support in vbox driver, patch by Pritesh Kothari
daniel
Daniel Veillard [Fri, 15 May 2009 09:43:51 +0000 (09:43 +0000)]
generic support for RDP and desktop graphic extensions
* docs/schemas/domain.rng src/domain_conf.[ch] src/qemu_driver.c:
extend the generic code for the RDP and desktop extensions of
the graphic tag needed for vbox, patch by Pritesh Kothari
Daniel
Cole Robinson [Tue, 12 May 2009 20:27:17 +0000 (20:27 +0000)]
Break out FS volume build routines to their own functions.
Improves readability, particularly wrt the pending CreateFromXML changes.
This will also help implementing File->Block volume creation in the future,
since some of this code will need to be moved to a backend agnostic file.
Cole Robinson [Tue, 12 May 2009 20:17:21 +0000 (20:17 +0000)]
Virsh commands vol-clone and vol-create-from
vol-clone is a convenience function, requiring only a volume to clone and a
new name.
vol-create-from is a direct mapping to the public API, which allows cloning
across pools, converting between formats, etc, but requires an xml file to be
passed
Daniel Veillard [Mon, 11 May 2009 14:05:27 +0000 (14:05 +0000)]
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
Cole Robinson [Mon, 11 May 2009 13:52:31 +0000 (13:52 +0000)]
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).
Cole Robinson [Mon, 11 May 2009 13:50:38 +0000 (13:50 +0000)]
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.
Cole Robinson [Mon, 11 May 2009 13:34:37 +0000 (13:34 +0000)]
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.
Daniel Veillard [Mon, 11 May 2009 09:56:04 +0000 (09:56 +0000)]
"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
Daniel Veillard [Mon, 11 May 2009 09:50:27 +0000 (09:50 +0000)]
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
Daniel Veillard [Thu, 7 May 2009 07:27:49 +0000 (07:27 +0000)]
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
Mark McLoughlin [Wed, 6 May 2009 15:56:20 +0000 (15:56 +0000)]
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>
Daniel Veillard [Wed, 6 May 2009 13:51:19 +0000 (13:51 +0000)]
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
Daniel Veillard [Fri, 24 Apr 2009 14:04:54 +0000 (14:04 +0000)]
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
Daniel Veillard [Fri, 24 Apr 2009 10:09:24 +0000 (10:09 +0000)]
Update of localizations and XML descriptions
* po/*: updated a could of locale, regenerated
* docs/libvirt-api.xml docs/libvirt-refs.xml: regenerated too
daniel
Daniel Veillard [Mon, 20 Apr 2009 12:27:12 +0000 (12:27 +0000)]
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