Libvirt provides a portable, long term stable C API for managing the virtualization technologies provided by many operating systems. It includes support for QEMU, KVM, Xen, LXC, bhyve, Virtuozzo, VMware vCenter and ESX, VMware Desktop, Hyper-V, VirtualBox and the POWER Hypervisor.
Go to file
Stefan Berger 0922ff2fea qemu driver: fix positioning to end of log file
While doing some testing with Qemu and creating huge logfiles I encountered the case where the VM could not start anymore due to the lseek() to the end of the Qemu VM's log file failing. The patch below fixes the problem by replacing the previously used 'int' with 'off_t'.

To reproduce this error, you could do the following:

dd if=/dev/zero of=/var/log/libvirt/qemu/<name of VM>.log bs=1024 count=$((1024*2048))

and you should get an error like this:

error: Failed to start domain <name of VM>
error: Unable to seek to -2147482651 in /var/log/libvirt/qemu/<name of VM>.log: Success
2011-01-04 12:46:10 -05:00
.gnulib@4f2c339efd build: satisfy 'make syntax-check' regarding year change 2011-01-04 09:50:07 -07:00
daemon maint: avoid space-tab 2010-12-21 13:21:25 -07:00
docs Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
examples maint: avoid space-tab 2010-12-21 13:21:25 -07:00
include virterror: avoid API breakage with vmware 2010-12-22 09:09:04 -07:00
m4 maint: update to latest gnulib 2010-11-17 10:13:12 -07:00
po Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
python Use python discovered through env instead of hardcoding a path 2010-11-14 22:45:59 +01:00
src qemu driver: fix positioning to end of log file 2011-01-04 12:46:10 -05:00
tests qemu: add -incoming fd:n capability checking 2010-12-23 16:33:39 -07:00
tools virsh: Add --force option to update-device 2010-12-23 09:07:17 +01:00
.dir-locals.el misc: encode the Emacs suggstions from HACKING into a .dir-locals.el file 2010-11-01 10:22:58 -06:00
.gitignore Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
.gitmodules
.mailmap
.x-sc_avoid_ctype_macros
.x-sc_avoid_if_before_free
.x-sc_avoid_write Introduce new APIs for spawning processes 2010-12-02 16:00:44 -07:00
.x-sc_bindtextdomain maint: update to latest gnulib 2010-11-17 10:13:12 -07:00
.x-sc_m4_quote_check syntax-check: enable more checks 2009-02-03 13:08:36 +00:00
.x-sc_po_check build: avoid false positive syntax-check failure 2010-10-19 09:28:35 -06:00
.x-sc_prohibit_always_true_header_tests
.x-sc_prohibit_asprintf util: add virVasprintf 2010-12-02 11:23:15 -07:00
.x-sc_prohibit_close build: enforce files.h usage 2010-11-24 15:23:43 -07:00
.x-sc_prohibit_empty_lines_at_EOF tests: test RHEL 6.0 qemu-kvm -help parsing 2010-12-13 16:30:02 -07:00
.x-sc_prohibit_gethostby
.x-sc_prohibit_gethostname
.x-sc_prohibit_gettext_noop
.x-sc_prohibit_have_config_h
.x-sc_prohibit_HAVE_MBRTOWC
.x-sc_prohibit_nonreentrant
.x-sc_prohibit_readlink
.x-sc_prohibit_sprintf maint: avoid remaining sprintf uses 2010-11-17 10:13:12 -07:00
.x-sc_prohibit_strcmp
.x-sc_prohibit_strncmp maint: tighten strncmp syntax check 2010-11-18 12:21:58 -07:00
.x-sc_prohibit_strncpy Avoid checking against strncpy in virsh.c 2010-10-12 19:26:10 +02:00
.x-sc_prohibit_test_minus_ao build: fix syntax-check problems 2010-04-12 16:43:05 -06:00
.x-sc_prohibit_VIR_ERR_NO_MEMORY
.x-sc_prohibit_xmlGetProp maint: prohibit most uses of xmlGetProp 2010-11-24 15:23:43 -07:00
.x-sc_require_config_h
.x-sc_require_config_h_first
.x-sc_trailing_blank build: exempt *.ico files from the trailing blank check 2008-10-16 13:28:07 +00:00
.x-sc_unmarked_diagnostics
acinclude.m4
AUTHORS bridge_driver: avoid double call to VIR_FREE 2010-12-20 08:30:08 -05:00
autobuild.sh test: fix commandtest under autobuild.sh 2010-12-13 16:04:56 -07:00
autogen.sh build: require pkg-config for bootstrap 2010-10-05 13:54:39 -06:00
bootstrap maint: update to latest gnulib 2010-11-17 10:13:12 -07:00
bootstrap.conf build: update gnulib for pipe on mingw 2010-12-13 16:09:50 -07:00
cfg.mk Add VMware Workstation and Player driver 2010-12-17 21:19:39 +01:00
ChangeLog-old
configure.ac Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
COPYING.LIB
HACKING doc: Fix spelling of virBufferVSprintf 2010-11-25 18:14:58 +01:00
libvirt.pc.in
libvirt.spec.in Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
Makefile.am maint: prohibit most uses of xmlGetProp 2010-11-24 15:23:43 -07:00
Makefile.nonreentrant Ban use of all inet_* functions 2010-10-22 11:59:23 +01:00
mingw32-libvirt.spec.in Add dtrace static probes in libvirtd 2010-10-22 12:00:39 +01:00
README
README-hacking
TODO Update todo list file to point at bugzilla/website 2010-10-13 16:45:26 +01:00

         LibVirt : simple API for virtualization

  Libvirt is a C toolkit to interact with the virtualization capabilities
of recent versions of Linux (and other OSes). It is free software
available under the GNU Lesser General Public License. Virtualization of
the Linux Operating System means the ability to run multiple instances of
Operating Systems concurrently on a single hardware system where the basic
resources are driven by a Linux instance. The library aim at providing
long term stable C API initially for the Xen paravirtualization but
should be able to integrate other virtualization mechanisms if needed.

Daniel Veillard <veillard@redhat.com>