Cole Robinson
5f99a7fd23
Fix node device media insert/eject detection.
...
We were correctly registering a callback , but weren't telling hal to
actually notify us of any property changes.
2009-05-19 13:35:57 +00:00
Cole Robinson
6244c173ba
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.
2009-05-19 13:26:14 +00:00
Cole Robinson
b8893d0277
Fix rpm build: add 'mylibtool' to EXTRADIST.
2009-05-19 13:23:07 +00:00
Cole Robinson
f7ea2b5d7f
Generate some config files at build time, not install time.
...
Generating at install time breaks 'make && sudo make install' if root
can't access the users home directory (NFS w/o no_root_squash for example).
2009-05-19 13:22:00 +00:00
Cole Robinson
b509716b33
Add documentation for <sound> device XML format.
2009-05-19 13:18:00 +00:00
Cole Robinson
adf4384501
Use virAsprintf, rather than VIR_ALLOC + strcpy + strcat
2009-05-19 13:15:50 +00:00
Cole Robinson
bb175dfc53
Don't validate disk type in virsh attach-disk
...
Let the underlying driver tell us what it supports. At the moment
we are at least erroneously denying floppy eject/insert.
2009-05-19 13:04:46 +00:00
Cole Robinson
5b13f4375d
Better error reporting if 'import libvirtmod' fails
...
Don't squash a possibly legitimate libvirtmod error (e.g. some from
clashing libvirt.so versions) with 'Cannot import cygvirtmod'
2009-05-19 13:03:03 +00:00
Daniel P. Berrange
de658ab4e4
Fix misc locking bugs identified by lock checker
2009-05-19 11:06:25 +00:00
Daniel P. Berrange
6962a2dd7e
Added an optional OCaml+CIL test program for mutex lock validation
2009-05-19 10:17:17 +00:00
Daniel P. Berrange
3ce55d22e4
Declare support for QEMU migration in capabilities
2009-05-18 15:10:51 +00:00
Daniel Veillard
67cc35ade9
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
2009-05-15 14:00:50 +00:00
Daniel Veillard
37623bf49a
* src/vbox/vbox_tmpl.c: implement vbox vrdp/sdl/gui support,
...
patches by Pritesh Kothari
daniel
2009-05-15 13:45:40 +00:00
Daniel Veillard
cd223d93da
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
2009-05-15 09:43:51 +00:00
Daniel Veillard
fa1ceca232
* src/xend_internal.c: remove [] around cpumaps for recent xend
...
patch by Tatsuro Enokura
daniel
2009-05-14 10:31:11 +00:00
Cole Robinson
ee0d7552e2
Fix a few 'used uninitialized' warnings.
2009-05-13 17:43:47 +00:00
Daniel Veillard
7afe94e7e2
* src/buf.c: avoid an XML attribute escaping bug #499791
...
daniel
2009-05-13 16:19:59 +00:00
Daniel P. Berrange
0d11a25e6d
Replace sys/capability.h with linux/capability.h
2009-05-13 11:37:16 +00:00
Cole Robinson
af8600678d
Update POTFILES, and s/write/safewrite/ to appease 'make syntax-check'
2009-05-12 20:44:29 +00:00
Cole Robinson
be9e5185b4
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.
2009-05-12 20:27:17 +00:00
Cole Robinson
6852c88fc7
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
2009-05-12 20:17:21 +00:00
Cole Robinson
3804161eb6
Test driver implementation of virStorageVolCreateXMLFrom
2009-05-12 20:15:56 +00:00
Cole Robinson
885de7f8cf
Remote driver plumbing for virStorageVolCreateXMLFrom
2009-05-12 20:13:52 +00:00
Cole Robinson
5b31c7d08a
Add public API stubs for virStorageVolCreateXMLFrom
...
Also checkin regenerated docs due to API change.
2009-05-12 20:10:50 +00:00
Cole Robinson
52c5f7adc8
Fix error squashing when refreshing file volumes
2009-05-12 19:59:46 +00:00
Daniel P. Berrange
37ede4d5f5
Add test case for exercising the event loop
2009-05-12 16:45:14 +00:00
Daniel P. Berrange
470317f5c7
Fix watch/timer event deletion
2009-05-12 16:43:04 +00:00
Daniel P. Berrange
0a31be6ba2
Fix interrupting of main event thread & protect against accidental uniniitalized variables
2009-05-12 16:41:49 +00:00
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