[libvirt] More then one pci device possible with libvirt and pci passthrough?
by Mirko Raasch
Hi,
i want to use more then one pci card in my debian guest.
But when i start the guest, the log says:
libvirtd: 15:44:55.459: warning : pciTrySecondaryBusReset:483 : Other
devices on bus with 0000:05:01.0, not doing bus reset
With "/usr/bin/qemu-system-x86_64 -m 512 -name test -hda
/media/vm/test.img -boot c -vnc :2 -k de -pcidevice host=05:01.0
-pcidevice host=05:02.0 -pcidevice host=05:03.0" there seems to be no
problems.
How can i start my guest with three pci devices passed through and libvirt?
My hostdev section in the xml looks like this:
<hostdev mode='subsystem' type='pci' managed='yes'>
<source>
<address domain='0x0000' bus='0x05' slot='0x01' function='0x0'/>
</source>
</hostdev>
<hostdev mode='subsystem' type='pci' managed='yes'>
<source>
<address domain='0x0000' bus='0x05' slot='0x02' function='0x0'/>
</source>
</hostdev>
<hostdev mode='subsystem' type='pci' managed='yes'>
<source>
<address domain='0x0000' bus='0x05' slot='0x03' function='0x0'/>
</source>
</hostdev>
Greetings
Mirko
15 years, 4 months
[libvirt] F11 and KVM Migrations
by Scott Baker
I have two host machines on the same subnet, and I have
/var/lib/libvirt/images shared between the two via NFS. I'm trying to do a
"migration" from one host to another and I'm getting an error.
virsh # migrate --live Narwhal qemu+ssh://10.1.1.1/system
error: operation failed: failed to start listening VM
That's from the host running the VM to the new host. I'm assuming you have
to do a "push" migrate, not a "pull"? Where can I look next to figure out
why it didn't work?
--
Scott Baker - Canby Telcom
System Administrator - RHCE - 503.266.8253
15 years, 4 months
[libvirt] more options for virt-manager
by Gene Czarcinski
I noticed that the command line qemu and qemu-kvm offer a number of options
such as using vmware display and addition sound card emulation as compared to
that when using virt-manager.
Are there any plans to add these as options to virt-manager?
As a more general question, is there some document which describes the plans,
roadmaps, etc. for Fedora Virtualization (or should I say Linux Virtualization
since it does apply to other distributions as well)?
I pick up tid-bits in various messages and bug reports such as libvirt
supporting vmware and "pool storage" providing some improvements but I do not
have an overall picture as to what is planned. While developers may do some
things sooner rather than later because they are easy to do, we users may have
some preferences as to what features/capabilities are more important to us
than others.
Gene
15 years, 4 months
[libvirt] libvirt and physical hardware devices
by Arjun Roy
Greetings.
I am interested in finding out what kinds of physical hardware data can
be pulled out of libvirt at present.
In particular, I'm interested in sourcing:
1. All the processor information that would be revealed from /proc/cpuinfo
-cpu #
-core #
-# cores total
-model
-family
-cpuid_lvl
-speed
-cache
-vendor
-flags
2. The following network device paramters:
-interface name
-mac address
-current ip address
-current netmask
-current broadcast
-current link bandwidth
This post
(https://www.redhat.com/archives/libvir-list/2009-June/msg00236.html)
seemed promising at least wrt. network stuff, and I was wondering if it
ever went anywhere.
So my overall questions:
1. Is this data (specifically, all of it) tracked and exposed by libvirt
at present?
2. If not, are there any plans to do so?
I know it is possible to find out this data using /proc/cpuinfo and the
various socket ioctls, but would like to avoid relying on those if possible.
Thanks,
-Arjun Roy
15 years, 4 months
[libvirt] preview comments
by Gene Czarcinski
I am currently running the set of "preview" packages:
-------------------
libvirt.x86_64 0.6.5-1.fc11 @rawvirt
libvirt-python.x86_64 0.6.5-1.fc11 @rawvirt
qemu.x86_64 2:0.10.50-8.kvm87.fc11 @rawvirt
qemu-common.x86_64 2:0.10.50-8.kvm87.fc11 @rawvirt
qemu-img.x86_64 2:0.10.50-8.kvm87.fc11 @rawvirt
qemu-kvm.x86_64 2:0.10.50-8.kvm87.fc11 @rawvirt
qemu-system-arm.x86_64 2:0.10.50-8.kvm87.fc11 @rawvirt
qemu-system-cris.x86_64 2:0.10.50-8.kvm87.fc11 @rawvirt
qemu-system-m68k.x86_64 2:0.10.50-8.kvm87.fc11 @rawvirt
qemu-system-mips.x86_64 2:0.10.50-8.kvm87.fc11 @rawvirt
qemu-system-ppc.x86_64 2:0.10.50-8.kvm87.fc11 @rawvirt
qemu-system-sh4.x86_64 2:0.10.50-8.kvm87.fc11 @rawvirt
qemu-system-sparc.x86_64 2:0.10.50-8.kvm87.fc11 @rawvirt
qemu-system-x86.x86_64 2:0.10.50-8.kvm87.fc11 @rawvirt
qemu-user.x86_64 2:0.10.50-8.kvm87.fc11 @rawvirt
--------------------------------------------
So far I have been very pleased! Not only does it work but it scratches my
itch on how file contexts are handled ... when a guest begins to run, the
context is set and when it stops, the context is restored. I notice this is
not only being done for not only for ISO image files but for logical volumes
also. Very good!
However (you knew this was coming), I have found an undesirable characteristic
(commonly called a bug) which I will be reporting to bugzilla.
The problem occurs if two or more guests are sharing a file such as an ISO
image file (which should be perfectly reasonable to share). The
"virt_content_t" context is set when the first guest starts running and the
additional guests will use that. However, when one of these guests stops
running, the context is reset which will block the file from the other guests.
I suspect a simply implementation was used which uses restorecon to reset the
file's context when a guest stops. Unfortunately, I believe that the "fix" is
going to be a lot more difficult and complex to implement.
However, if it does take some time to fix, I still prefer the new way where file
contexts are restored even if there is a known problem which, for right now
means that for running multiple guests using the same file it is "don't do
that".
Gene
15 years, 4 months
[libvirt] bootstrap/autogen.sh warnings/errors
by Daniel P. Berrange
Since the gnulib change, running autogen.sh prints out tonnes of warnings
and results in errors during configure. This trace from RHEL-5 completes
eventually, but throws errors. On Fedora 11 it won't complete configure
at all, failing most header tests with errors about 'long long long',
yes that's 3 longs.
RHEL5:
Putting files in AC_CONFIG_AUX_DIR, `build-aux'.
aclocal:configure.in:12: warning: macro `AM_SILENT_RULES' not found in library
aclocal:gnulib/m4/gnulib-comp.m4:189: warning: macro `AM_XGETTEXT_OPTION' not found in library
configure.in:53: warning: AC_TYPE_LONG_LONG_INT is m4_require'd but is not m4_defun'd
configure.in:53: AC_TYPE_LONG_LONG_INT is required by...
gnulib/m4/stdint.m4:301: gl_STDINT_H is expanded from...
gnulib/m4/gnulib-comp.m4:287: gl_INIT is expanded from...
configure.in:53: the top level
configure.in:53: warning: AC_TYPE_UNSIGNED_LONG_LONG_INT is m4_require'd but is not m4_defun'd
configure.in:53: AC_TYPE_UNSIGNED_LONG_LONG_INT is required by...
gnulib/m4/vasnprintf.m4:38: gl_PREREQ_PRINTF_ARGS is expanded from...
gnulib/m4/vasnprintf.m4:30: gl_REPLACE_VASNPRINTF is expanded from...
gnulib/m4/vasnprintf.m4:13: gl_FUNC_VASNPRINTF is expanded from...
gnulib/m4/vasnprintf.m4:52: gl_PREREQ_PRINTF_PARSE is expanded from...
gnulib/m4/intmax_t.m4:61: gt_AC_TYPE_INTMAX_T is expanded from...
configure.in:53: gt_AC_TYPE_INTMAX_T is required by...
gnulib/m4/vasnprintf.m4:65: _gl_DEFUN_ONCE([gl_PREREQ_VASNPRINTF]) is expanded from...
configure.in:53: _gl_DEFUN_ONCE([gl_PREREQ_VASNPRINTF]) is required by...
gnulib/m4/vasnprintf.m4:65: gl_PREREQ_VASNPRINTF is expanded from...
configure.in:53: warning: AC_TYPE_LONG_LONG_INT is m4_require'd but is not m4_defun'd
configure.in:53: AC_TYPE_LONG_LONG_INT is required by...
gnulib/m4/stdint.m4:301: gl_STDINT_H is expanded from...
gnulib/m4/gnulib-comp.m4:287: gl_INIT is expanded from...
configure.in:53: the top level
configure.in:53: warning: AC_TYPE_UNSIGNED_LONG_LONG_INT is m4_require'd but is not m4_defun'd
configure.in:53: AC_TYPE_UNSIGNED_LONG_LONG_INT is required by...
gnulib/m4/vasnprintf.m4:38: gl_PREREQ_PRINTF_ARGS is expanded from...
gnulib/m4/vasnprintf.m4:30: gl_REPLACE_VASNPRINTF is expanded from...
gnulib/m4/vasnprintf.m4:13: gl_FUNC_VASNPRINTF is expanded from...
gnulib/m4/vasnprintf.m4:52: gl_PREREQ_PRINTF_PARSE is expanded from...
gnulib/m4/intmax_t.m4:61: gt_AC_TYPE_INTMAX_T is expanded from...
configure.in:53: gt_AC_TYPE_INTMAX_T is required by...
gnulib/m4/vasnprintf.m4:65: _gl_DEFUN_ONCE([gl_PREREQ_VASNPRINTF]) is expanded from...
configure.in:53: _gl_DEFUN_ONCE([gl_PREREQ_VASNPRINTF]) is required by...
gnulib/m4/vasnprintf.m4:65: gl_PREREQ_VASNPRINTF is expanded from...
configure.in:53: warning: AC_TYPE_LONG_LONG_INT is m4_require'd but is not m4_defun'd
configure.in:53: AC_TYPE_LONG_LONG_INT is required by...
gnulib/m4/stdint.m4:301: gl_STDINT_H is expanded from...
gnulib/m4/gnulib-comp.m4:287: gl_INIT is expanded from...
configure.in:53: the top level
configure.in:53: warning: AC_TYPE_UNSIGNED_LONG_LONG_INT is m4_require'd but is not m4_defun'd
configure.in:53: AC_TYPE_UNSIGNED_LONG_LONG_INT is required by...
gnulib/m4/vasnprintf.m4:38: gl_PREREQ_PRINTF_ARGS is expanded from...
gnulib/m4/vasnprintf.m4:30: gl_REPLACE_VASNPRINTF is expanded from...
gnulib/m4/vasnprintf.m4:13: gl_FUNC_VASNPRINTF is expanded from...
gnulib/m4/vasnprintf.m4:52: gl_PREREQ_PRINTF_PARSE is expanded from...
gnulib/m4/intmax_t.m4:61: gt_AC_TYPE_INTMAX_T is expanded from...
configure.in:53: gt_AC_TYPE_INTMAX_T is required by...
gnulib/m4/vasnprintf.m4:65: _gl_DEFUN_ONCE([gl_PREREQ_VASNPRINTF]) is expanded from...
configure.in:53: _gl_DEFUN_ONCE([gl_PREREQ_VASNPRINTF]) is required by...
gnulib/m4/vasnprintf.m4:65: gl_PREREQ_VASNPRINTF is expanded from...
configure.in: installing `build-aux/install-sh'
configure.in: installing `build-aux/missing'
docs/examples/Makefile.am: installing `build-aux/depcomp'
examples/domain-events/events-c/Makefile.am: installing `build-aux/compile'
src/Makefile.am:390: variable `libvirt_driver_interface_la_LDFLAGS' is defined but no program or
src/Makefile.am:390: library has `libvirt_driver_interface_la' as canonic name (possible typo)
Makefile.am: installing `./INSTALL'
configure.in:53: warning: AC_TYPE_LONG_LONG_INT is m4_require'd but is not m4_defun'd
configure.in:53: AC_TYPE_LONG_LONG_INT is required by...
gnulib/m4/stdint.m4:301: gl_STDINT_H is expanded from...
gnulib/m4/gnulib-comp.m4:287: gl_INIT is expanded from...
configure.in:53: the top level
configure.in:53: warning: AC_TYPE_UNSIGNED_LONG_LONG_INT is m4_require'd but is not m4_defun'd
configure.in:53: AC_TYPE_UNSIGNED_LONG_LONG_INT is required by...
gnulib/m4/vasnprintf.m4:38: gl_PREREQ_PRINTF_ARGS is expanded from...
gnulib/m4/vasnprintf.m4:30: gl_REPLACE_VASNPRINTF is expanded from...
gnulib/m4/vasnprintf.m4:13: gl_FUNC_VASNPRINTF is expanded from...
gnulib/m4/vasnprintf.m4:52: gl_PREREQ_PRINTF_PARSE is expanded from...
gnulib/m4/intmax_t.m4:61: gt_AC_TYPE_INTMAX_T is expanded from...
configure.in:53: gt_AC_TYPE_INTMAX_T is required by...
gnulib/m4/vasnprintf.m4:65: _gl_DEFUN_ONCE([gl_PREREQ_VASNPRINTF]) is expanded from...
configure.in:53: _gl_DEFUN_ONCE([gl_PREREQ_VASNPRINTF]) is required by...
gnulib/m4/vasnprintf.m4:65: gl_PREREQ_VASNPRINTF is expanded from...
configure:11495: error: possibly undefined macro: AC_TYPE_LONG_LONG_INT
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure:11496: error: possibly undefined macro: AC_TYPE_UNSIGNED_LONG_LONG_INT
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... x86_64-redhat-linux-gnu
checking host system type... x86_64-redhat-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for a BSD-compatible install... /usr/bin/install -c
checking how to run the C preprocessor... gcc -E
checking for ranlib... ranlib
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for _LARGEFILE_SOURCE value needed for large files... no
checking for fseeko... yes
checking for working alloca.h... yes
checking for alloca... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking float.h usability... yes
checking float.h presence... yes
checking for float.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking stdio_ext.h usability... yes
checking stdio_ext.h presence... yes
checking for stdio_ext.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/filio.h usability... no
checking sys/filio.h presence... no
checking for sys/filio.h... no
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking for stdint.h... (cached) yes
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking for unistd.h... (cached) yes
checking sys/wait.h usability... yes
checking sys/wait.h presence... yes
checking for sys/wait.h... yes
checking whether the preprocessor supports include_next... yes
checking for inline... inline
checking whether <sys/socket.h> is self-contained... yes
checking for shutdown... yes
checking whether <sys/socket.h> defines the SHUT_* macros... yes
checking for struct sockaddr_storage... yes
checking for sa_family_t... yes
checking for complete errno.h... yes
checking whether stdin defaults to large file offsets... yes
checking for library containing gethostbyname... none required
checking for gethostbyname... yes
checking for library containing getservbyname... none required
checking for getservbyname... yes
checking for C/C++ restrict keyword... __restrict
checking for IPv4 sockets... yes
checking for IPv6 sockets... yes
checking whether getdelim is declared... yes
checking whether getline is declared... yes
checking whether getpass is declared... yes
checking for __fsetlocking... yes
checking for tcgetattr... yes
checking for tcsetattr... yes
checking for gettimeofday... yes
checking for lstat... yes
checking for mprotect... yes
checking for vasnprintf... no
checking whether fflush_unlocked is declared... yes
checking whether flockfile is declared... yes
checking whether fputs_unlocked is declared... yes
checking whether funlockfile is declared... yes
checking whether putc_unlocked is declared... yes
checking for struct timeval... yes
checking whether malloc, realloc, calloc are POSIX compliant... yes
checking for mmap... yes
checking for MAP_ANONYMOUS... yes
checking for memchr... yes
checking whether memchr works... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for _LARGE_FILES value needed for large files... no
checking for external symbol _system_configuration... no
checking whether <sys/select.h> is self-contained... yes
checking whether snprintf is declared... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
./configure: line 11495: AC_TYPE_LONG_LONG_INT: command not found
./configure: line 11496: AC_TYPE_UNSIGNED_LONG_LONG_INT: command not found
checking whether strdup is declared... yes
checking for working strerror function... yes
checking whether strndup is declared... yes
checking whether strnlen is declared... yes
checking whether stat file-mode macros are broken... no
checking for struct timespec in <time.h>... yes
./configure: line 12443: AC_TYPE_LONG_LONG_INT: command not found
checking for wchar_t... yes
checking for wint_t... yes
./configure: line 12570: AC_TYPE_LONG_LONG_INT: command not found
checking for size_t... yes
checking for inttypes.h... yes
checking for stdint.h... yes
./configure: line 12763: AC_TYPE_LONG_LONG_INT: command not found
checking for intmax_t... yes
./configure: line 12847: AC_TYPE_LONG_LONG_INT: command not found
checking for snprintf... yes
checking for strnlen... yes
checking for wcslen... yes
checking for wcsnlen... yes
checking for mbrtowc... yes
checking for wcrtomb... yes
checking whether _snprintf is declared... no
checking whether ungetc works on arbitrary bytes... yes
checking for alloca as a compiler built-in... yes
checking for fseeko... yes
configure: checking how to do getaddrinfo, freeaddrinfo and getnameinfo
checking for library containing getaddrinfo... none required
checking for getaddrinfo... yes
checking for gai_strerror (possibly via ws2tcpip.h)... yes
checking for struct sockaddr.sa_len... no
checking whether getaddrinfo is declared... yes
checking whether freeaddrinfo is declared... yes
checking whether gai_strerror is declared... yes
checking whether getnameinfo is declared... yes
checking for struct addrinfo... yes
checking for getdelim... yes
checking for gethostname... yes
checking for getline... yes
checking for working getline function... yes
checking for getpagesize... yes
checking for getpass... yes
checking for gettimeofday with POSIX signature... yes
checking whether gettimeofday clobbers localtime buffer... no
checking for library containing gethostbyname... (cached) none required
checking for gethostbyname... (cached) yes
checking for library containing inet_ntop... none required
checking whether inet_ntop is declared... yes
checking for inet_pton... yes
checking whether inet_pton is declared... yes
checking whether lseek detects pipes... yes
checking whether lstat dereferences a symlink specified with a trailing slash... yes
checking for working mkstemp... yes
checking whether <netinet/in.h> is self-contained... yes
checking for sys/pstat.h... no
checking for sys/sysmp.h... no
checking for sys/sysinfo.h... yes
checking for machine/hal_sysinfo.h... no
checking for sys/table.h... no
checking for sys/param.h... yes
checking for sys/sysctl.h... yes
checking for sys/systemcfg.h... no
checking for pstat_getstatic... no
checking for pstat_getdynamic... no
checking for sysmp... no
checking for getsysinfo... no
checking for sysctl... yes
checking for table... no
checking poll.h usability... yes
checking poll.h presence... yes
checking for poll.h... yes
checking for poll... yes
checking for a shell that conforms to POSIX... /bin/sh
checking for random_r... yes
checking whether select supports a 0 argument... yes
checking for library containing getservbyname... (cached) none required
checking for getservbyname... (cached) yes
checking for stdint.h... (cached) yes
checking for SIZE_MAX... yes
checking for snprintf... (cached) yes
checking whether snprintf respects a size of 1... yes
checking for socklen_t... yes
./configure: line 21828: test: =: unary operator expected
./configure: line 21835: test: =: unary operator expected
checking whether stdint.h conforms to C99... yes
checking for random.h... no
checking for struct random_data... yes
checking for stpcpy... yes
F11
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `build-aux'.
libtoolize: copying file `build-aux/ltmain.sh'
libtoolize: putting macros in `gnulib/m4'.
libtoolize: copying file `gnulib/m4/libtool.m4'
libtoolize: copying file `gnulib/m4/ltoptions.m4'
libtoolize: copying file `gnulib/m4/ltsugar.m4'
libtoolize: copying file `gnulib/m4/ltversion.m4'
libtoolize: copying file `gnulib/m4/lt~obsolete.m4'
libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.in and
libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
gnulib/m4/gnulib-comp.m4:189: warning: macro `AM_XGETTEXT_OPTION' not found in library
configure.in:53: warning: gl_AC_HEADER_INTTYPES_H is m4_require'd but not m4_defun'd
gnulib/m4/intmax_t.m4:35: gt_AC_TYPE_INTMAX_T is expanded from...
gnulib/m4/vasnprintf.m4:41: gl_PREREQ_PRINTF_PARSE is expanded from...
gnulib/m4/vasnprintf.m4:15: gl_REPLACE_VASNPRINTF is expanded from...
gnulib/m4/vasnprintf.m4:7: gl_FUNC_VASNPRINTF is expanded from...
gnulib/m4/gnulib-comp.m4:34: gl_INIT is expanded from...
configure.in:53: the top level
configure.in:53: warning: gl_AC_HEADER_STDINT_H is m4_require'd but not m4_defun'd
configure.in:53: warning: gl_AC_HEADER_INTTYPES_H is m4_require'd but not m4_defun'd
gnulib/m4/intmax_t.m4:35: gt_AC_TYPE_INTMAX_T is expanded from...
gnulib/m4/vasnprintf.m4:41: gl_PREREQ_PRINTF_PARSE is expanded from...
gnulib/m4/vasnprintf.m4:15: gl_REPLACE_VASNPRINTF is expanded from...
gnulib/m4/vasnprintf.m4:7: gl_FUNC_VASNPRINTF is expanded from...
gnulib/m4/gnulib-comp.m4:34: gl_INIT is expanded from...
configure.in:53: the top level
configure.in:53: warning: gl_AC_HEADER_STDINT_H is m4_require'd but not m4_defun'd
configure.in:53: warning: gl_AC_HEADER_INTTYPES_H is m4_require'd but not m4_defun'd
gnulib/m4/intmax_t.m4:35: gt_AC_TYPE_INTMAX_T is expanded from...
gnulib/m4/vasnprintf.m4:41: gl_PREREQ_PRINTF_PARSE is expanded from...
gnulib/m4/vasnprintf.m4:15: gl_REPLACE_VASNPRINTF is expanded from...
gnulib/m4/vasnprintf.m4:7: gl_FUNC_VASNPRINTF is expanded from...
gnulib/m4/gnulib-comp.m4:34: gl_INIT is expanded from...
configure.in:53: the top level
configure.in:53: warning: gl_AC_HEADER_STDINT_H is m4_require'd but not m4_defun'd
configure.in:66: installing `build-aux/compile'
configure.in:14: installing `build-aux/config.guess'
configure.in:14: installing `build-aux/config.sub'
configure.in:8: installing `build-aux/install-sh'
configure.in:8: installing `build-aux/missing'
docs/examples/Makefile.am: installing `build-aux/depcomp'
src/Makefile.am:390: variable `libvirt_driver_interface_la_LDFLAGS' is defined but no program or
src/Makefile.am:390: library has `libvirt_driver_interface_la' as canonical name (possible typo)
Makefile.am: installing `./INSTALL'
configure.in:53: warning: gl_AC_HEADER_INTTYPES_H is m4_require'd but not m4_defun'd
gnulib/m4/intmax_t.m4:35: gt_AC_TYPE_INTMAX_T is expanded from...
gnulib/m4/vasnprintf.m4:41: gl_PREREQ_PRINTF_PARSE is expanded from...
gnulib/m4/vasnprintf.m4:15: gl_REPLACE_VASNPRINTF is expanded from...
gnulib/m4/vasnprintf.m4:7: gl_FUNC_VASNPRINTF is expanded from...
gnulib/m4/gnulib-comp.m4:34: gl_INIT is expanded from...
configure.in:53: the top level
configure.in:53: warning: gl_AC_HEADER_STDINT_H is m4_require'd but not m4_defun'd
configure:14195: error: possibly undefined macro: gl_AC_HEADER_INTTYPES_H
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure:14196: error: possibly undefined macro: gl_AC_HEADER_STDINT_H
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for a BSD-compatible install... /usr/bin/install -c
checking how to run the C preprocessor... gcc -E
checking for ranlib... ranlib
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for _LARGEFILE_SOURCE value needed for large files... no
checking for working alloca.h... yes
checking for alloca... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking float.h usability... yes
checking float.h presence... yes
checking for float.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking stdio_ext.h usability... yes
checking stdio_ext.h presence... yes
checking for stdio_ext.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/filio.h usability... no
checking sys/filio.h presence... no
checking for sys/filio.h... no
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking for stdint.h... (cached) yes
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking for unistd.h... (cached) yes
checking sys/wait.h usability... yes
checking sys/wait.h presence... yes
checking for sys/wait.h... yes
checking whether the preprocessor supports include_next... yes
checking for inline... inline
checking whether <sys/socket.h> is self-contained... yes
checking for shutdown... yes
checking whether <sys/socket.h> defines the SHUT_* macros... yes
checking for struct sockaddr_storage... yes
checking for sa_family_t... yes
checking for complete errno.h... yes
checking whether stdin defaults to large file offsets... yes
checking for library containing gethostbyname... none required
checking for gethostbyname... yes
checking for library containing getservbyname... none required
checking for getservbyname... yes
checking for C/C++ restrict keyword... __restrict
checking for IPv4 sockets... yes
checking for IPv6 sockets... yes
checking whether getdelim is declared... yes
checking whether getline is declared... yes
checking whether getpass is declared... yes
checking for __fsetlocking... yes
checking for tcgetattr... yes
checking for tcsetattr... yes
checking for gettimeofday... yes
checking for lstat... yes
checking for mprotect... yes
checking for vasnprintf... no
checking whether fflush_unlocked is declared... yes
checking whether flockfile is declared... yes
checking whether fputs_unlocked is declared... yes
checking whether funlockfile is declared... yes
checking whether putc_unlocked is declared... yes
checking for struct timeval... yes
checking whether malloc, realloc, calloc are POSIX compliant... yes
checking for mmap... yes
checking for MAP_ANONYMOUS... yes
checking for memchr... yes
checking whether memchr works... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for external symbol _system_configuration... no
checking whether <sys/select.h> is self-contained... yes
checking whether snprintf is declared... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for long long int... yes
checking for unsigned long long int... yes
checking whether strdup is declared... yes
checking for working strerror function... yes
checking whether strndup is declared... yes
checking whether strnlen is declared... yes
checking whether stat file-mode macros are broken... no
checking for struct timespec in <time.h>... yes
checking for wchar_t... yes
checking for wint_t... yes
checking for size_t... yes
./configure: line 14195: gl_AC_HEADER_INTTYPES_H: command not found
./configure: line 14196: gl_AC_HEADER_STDINT_H: command not found
checking for intmax_t... no
checking for snprintf... yes
checking for strnlen... yes
checking for wcslen... yes
checking for wcsnlen... yes
checking for mbrtowc... yes
checking for wcrtomb... yes
checking whether _snprintf is declared... no
checking whether ungetc works on arbitrary bytes... yes
checking for alloca as a compiler built-in... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for fseeko... yes
configure: checking how to do getaddrinfo, freeaddrinfo and getnameinfo
checking for library containing getaddrinfo... none required
checking for getaddrinfo... no
checking for getaddrinfo in ws2tcpip.h and -lws2_32... no
checking for gai_strerror (possibly via ws2tcpip.h)... no
checking for struct sockaddr.sa_len... no
checking whether getaddrinfo is declared... no
checking whether freeaddrinfo is declared... no
checking whether gai_strerror is declared... no
checking whether getnameinfo is declared... no
checking for struct addrinfo... no
checking for getdelim... yes
checking for gethostname... yes
checking for getline... yes
checking for working getline function... yes
checking for getpagesize... yes
checking for getpass... yes
checking for gettimeofday with POSIX signature... yes
checking whether gettimeofday clobbers localtime buffer... no
checking for library containing gethostbyname... (cached) none required
checking for gethostbyname... (cached) yes
checking for library containing inet_ntop... none required
checking whether inet_ntop is declared... no
checking for inet_pton... yes
checking whether inet_pton is declared... no
checking whether lseek detects pipes... yes
checking whether lstat dereferences a symlink specified with a trailing slash... no
checking for working mkstemp... no
checking whether <netinet/in.h> is self-contained... no
checking for netinet/in.h... (cached) yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for sys/pstat.h... no
checking for sys/sysmp.h... no
checking for sys/sysinfo.h... no
checking for machine/hal_sysinfo.h... no
checking for sys/table.h... no
checking for sys/param.h... no
checking for sys/sysctl.h... no
checking for sys/systemcfg.h... no
checking for pstat_getstatic... no
checking for pstat_getdynamic... no
checking for sysmp... no
checking for getsysinfo... no
checking for sysctl... yes
checking for table... no
checking poll.h usability... no
checking poll.h presence... yes
configure: WARNING: poll.h: present but cannot be compiled
configure: WARNING: poll.h: check for missing prerequisite headers?
configure: WARNING: poll.h: see the Autoconf documentation
configure: WARNING: poll.h: section "Present But Cannot Be Compiled"
configure: WARNING: poll.h: proceeding with the preprocessor's result
configure: WARNING: poll.h: in the future, the compiler will take precedence
checking for poll.h... yes
checking for poll... yes
checking for a shell that conforms to POSIX... /bin/sh
checking for random_r... yes
checking whether select supports a 0 argument... yes
checking for library containing getservbyname... (cached) none required
checking for getservbyname... (cached) yes
checking for stdint.h... (cached) yes
checking for SIZE_MAX... yes
checking for snprintf... (cached) yes
checking whether snprintf respects a size of 1... yes
checking for socklen_t... yes
checking whether stdint.h conforms to C99... no
checking sys/inttypes.h usability... no
checking sys/inttypes.h presence... no
checking for sys/inttypes.h... no
checking sys/bitypes.h usability... no
checking sys/bitypes.h presence... yes
configure: WARNING: sys/bitypes.h: present but cannot be compiled
configure: WARNING: sys/bitypes.h: check for missing prerequisite headers?
configure: WARNING: sys/bitypes.h: see the Autoconf documentation
configure: WARNING: sys/bitypes.h: section "Present But Cannot Be Compiled"
configure: WARNING: sys/bitypes.h: proceeding with the preprocessor's result
configure: WARNING: sys/bitypes.h: in the future, the compiler will take precedence
checking for sys/bitypes.h... yes
checking for bit size of ptrdiff_t... 32
checking for bit size of size_t... 32
checking for bit size of sig_atomic_t... 32
checking for bit size of wchar_t... 32
checking for bit size of wint_t... 32
checking whether sig_atomic_t is signed... yes
checking whether wchar_t is signed... yes
checking whether wint_t is signed... no
checking for ptrdiff_t integer literal suffix...
checking for size_t integer literal suffix... u
checking for sig_atomic_t integer literal suffix...
checking for wchar_t integer literal suffix... l
checking for wint_t integer literal suffix... u
checking for random.h... no
checking for struct random_data... yes
checking for stpcpy... yes
checking for strdup... yes
checking for working strndup... yes
checking for working strnlen... no
checking for strsep... yes
checking whether <sys/ioctl.h> declares ioctl... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking whether <sys/select.h> is self-contained... (cached) yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking whether <sys/socket.h> is self-contained... (cached) yes
checking for shutdown... (cached) yes
checking whether <sys/socket.h> defines the SHUT_* macros... (cached) yes
checking for struct sockaddr_storage... (cached) yes
checking for sa_family_t... (cached) yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for nlink_t... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking whether localtime_r is compatible with its POSIX signature... yes
checking for ptrdiff_t... no
checking for vasprintf... yes
checking whether <wchar.h> is standalone... yes
checking for stdint.h... (cached) yes
checking for library containing setsockopt... none needed
checking for wchar_t... (cached) yes
checking for wint_t... (cached) yes
checking for shutdown... (cached) yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking for an ANSI C-conforming const... yes
checking for function prototypes... yes
checking for string.h... (cached) yes
checking for a sed that does not truncate output... /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1966080
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... (cached) ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for dlfcn.h... no
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether gcc and cc understand -c and -o together... yes
checking whether compiler accepts -Wall... yes
checking whether compiler accepts -Wformat... yes
checking whether compiler accepts -Wformat-security... yes
checking whether compiler accepts -Wmissing-prototypes... yes
checking whether compiler accepts -Wnested-externs... yes
checking whether compiler accepts -Wpointer-arith... yes
checking whether compiler accepts -Wextra... yes
checking whether compiler accepts -Wshadow... yes
checking whether compiler accepts -Wcast-align... yes
checking whether compiler accepts -Wwrite-strings... yes
checking whether compiler accepts -Waggregate-return... yes
checking whether compiler accepts -Wstrict-prototypes... yes
checking whether compiler accepts -Winline... yes
checking whether compiler accepts -Wredundant-decls... yes
checking whether compiler accepts -Wno-sign-compare... yes
checking whether compiler accepts -Wp,-D_FORTIFY_SOURCE=2... yes
checking whether compiler accepts -fexceptions... yes
checking whether compiler accepts -fasynchronous-unwind-tables... yes
checking whether compiler accepts -Werror... yes
checking what language compliance flags to pass to the C compiler...
checking whether compiler accepts -Wno-redundant-decls... yes
checking for special C compiler options needed for large files... (cached) no
checking for _FILE_OFFSET_BITS value needed for large files... (cached) 64
checking for cfmakeraw... yes
checking for regexec... yes
checking for uname... yes
checking for sched_getaffinity... yes
checking for getuid... yes
checking for getgid... yes
checking for posix_fallocate... yes
checking for mmap... (cached) yes
checking for readlink... yes
checking for strerror_r... yes
checking for strtok_r... yes
checking for getmntent_r... yes
checking for getgrnam_r... yes
checking for getpwuid_r... yes
checking pwd.h usability... no
checking pwd.h presence... yes
configure: WARNING: pwd.h: present but cannot be compiled
configure: WARNING: pwd.h: check for missing prerequisite headers?
configure: WARNING: pwd.h: see the Autoconf documentation
configure: WARNING: pwd.h: section "Present But Cannot Be Compiled"
configure: WARNING: pwd.h: proceeding with the preprocessor's result
configure: WARNING: pwd.h: in the future, the compiler will take precedence
checking for pwd.h... yes
checking paths.h usability... no
checking paths.h presence... yes
configure: WARNING: paths.h: present but cannot be compiled
configure: WARNING: paths.h: check for missing prerequisite headers?
configure: WARNING: paths.h: see the Autoconf documentation
configure: WARNING: paths.h: section "Present But Cannot Be Compiled"
configure: WARNING: paths.h: proceeding with the preprocessor's result
configure: WARNING: paths.h: in the future, the compiler will take precedence
checking for paths.h... yes
checking regex.h usability... no
checking regex.h presence... yes
configure: WARNING: regex.h: present but cannot be compiled
configure: WARNING: regex.h: check for missing prerequisite headers?
configure: WARNING: regex.h: see the Autoconf documentation
configure: WARNING: regex.h: section "Present But Cannot Be Compiled"
configure: WARNING: regex.h: proceeding with the preprocessor's result
configure: WARNING: regex.h: in the future, the compiler will take precedence
checking for regex.h... yes
checking sys/syslimits.h usability... no
checking sys/syslimits.h presence... no
checking for sys/syslimits.h... no
checking sys/utsname.h usability... no
checking sys/utsname.h presence... yes
configure: WARNING: sys/utsname.h: present but cannot be compiled
configure: WARNING: sys/utsname.h: check for missing prerequisite headers?
configure: WARNING: sys/utsname.h: see the Autoconf documentation
configure: WARNING: sys/utsname.h: section "Present But Cannot Be Compiled"
configure: WARNING: sys/utsname.h: proceeding with the preprocessor's result
configure: WARNING: sys/utsname.h: in the future, the compiler will take precedence
checking for sys/utsname.h... yes
checking for sys/wait.h... (cached) yes
checking winsock2.h usability... no
checking winsock2.h presence... no
checking for winsock2.h... no
checking sched.h usability... no
checking sched.h presence... yes
configure: WARNING: sched.h: present but cannot be compiled
configure: WARNING: sched.h: check for missing prerequisite headers?
configure: WARNING: sched.h: see the Autoconf documentation
configure: WARNING: sched.h: section "Present But Cannot Be Compiled"
configure: WARNING: sched.h: proceeding with the preprocessor's result
configure: WARNING: sched.h: in the future, the compiler will take precedence
checking for sched.h... yes
checking for termios.h... (cached) yes
checking sys/poll.h usability... no
checking sys/poll.h presence... yes
configure: WARNING: sys/poll.h: present but cannot be compiled
configure: WARNING: sys/poll.h: check for missing prerequisite headers?
configure: WARNING: sys/poll.h: see the Autoconf documentation
configure: WARNING: sys/poll.h: section "Present But Cannot Be Compiled"
configure: WARNING: sys/poll.h: proceeding with the preprocessor's result
configure: WARNING: sys/poll.h: in the future, the compiler will take precedence
checking for sys/poll.h... yes
checking syslog.h usability... no
checking syslog.h presence... yes
configure: WARNING: syslog.h: present but cannot be compiled
configure: WARNING: syslog.h: check for missing prerequisite headers?
configure: WARNING: syslog.h: see the Autoconf documentation
configure: WARNING: syslog.h: section "Present But Cannot Be Compiled"
configure: WARNING: syslog.h: proceeding with the preprocessor's result
configure: WARNING: syslog.h: in the future, the compiler will take precedence
checking for syslog.h... yes
checking for xdrmem_create in -lportablexdr... no
checking for library containing xdrmem_create... none required
checking for gettext in -lintl... no
checking for rpcgen... /usr/bin/rpcgen
checking pthread.h usability... no
checking pthread.h presence... yes
configure: WARNING: pthread.h: present but cannot be compiled
configure: WARNING: pthread.h: check for missing prerequisite headers?
configure: WARNING: pthread.h: see the Autoconf documentation
configure: WARNING: pthread.h: section "Present But Cannot Be Compiled"
configure: WARNING: pthread.h: proceeding with the preprocessor's result
configure: WARNING: pthread.h: in the future, the compiler will take precedence
checking for pthread.h... yes
checking for pthread_join in -lpthread... yes
checking for rm... /bin/rm
checking for mv... /bin/mv
checking for tar... /bin/tar
checking for xmllint... /usr/bin/xmllint
checking for xmlcatalog... /usr/bin/xmlcatalog
checking for xsltproc... /usr/bin/xsltproc
checking for augparse... /usr/bin/augparse
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for dnsmasq... /usr/sbin/dnsmasq
checking for brctl... /usr/sbin/brctl
checking for udevadm... /sbin/udevadm
checking for udevsettle... /sbin/udevsettle
checking for modprobe... /sbin/modprobe
checking where to write libvirtd PID file... /var/run/libvirtd.pid
checking for init script flavor... redhat
checking for lokkit... /usr/sbin/lokkit
checking for iptables... /sbin/iptables
checking for xs_read in -lxenstore... yes
checking for xen/xen.h... no
configure: error: Cannot find standard Xen headers. Is xen-devel installed?
Config.log says
configure:40254: checking for xen/xen.h
configure:40277: gcc -c -g -O2 conftest.c >&5
In file included from conftest.c:192:
/usr/include/stdint.h:139: error: 'long long long' is too long for GCC
/usr/include/stdint.h:139: error: 'long long long' is too long for GCC
Daniel
--
|: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :|
|: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|
15 years, 4 months
[libvirt] [PATCH] doc: clone+build instructions
by Jim Meyering
I realized it'd be nice to include instructions
on how to build from a just-cloned repository, so copied
most of this new file, README-hacking, from coreutils:
>From 7ffc5ce3ebb0769c0edc9f6fa9dc25e315ffdcf3 Mon Sep 17 00:00:00 2001
From: Jim Meyering <meyering(a)redhat.com>
Date: Wed, 8 Jul 2009 21:37:59 +0200
Subject: [PATCH] doc: clone+build instructions
* README-hacking: New file.
* bootstrap: Remove obsolete comments.
---
README-hacking | 74 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
bootstrap | 8 +-----
2 files changed, 75 insertions(+), 7 deletions(-)
create mode 100644 README-hacking
diff --git a/README-hacking b/README-hacking
new file mode 100644
index 0000000..3463da2
--- /dev/null
+++ b/README-hacking
@@ -0,0 +1,74 @@
+-*- outline -*-
+
+These notes intend to help people working on the checked-out sources.
+These requirements do not apply when building from a distribution tarball.
+See also HACKING for more detailed libvirt contribution guidelines.
+
+* Requirements
+
+We've opted to keep only the highest-level sources in the GIT repository.
+This eases our maintenance burden, (fewer merges etc.), but imposes more
+requirements on anyone wishing to build from the just-checked-out sources.
+Note the requirements to build the released archive are much less and
+are just the requirements of the standard ./configure && make procedure.
+Specific development tools and versions will be checked for and listed by
+the bootstrap script. See README-prereq for specific notes on obtaining
+these prerequisite tools.
+
+Valgrind <http://valgrind.org/> is also highly recommended, if
+Valgrind supports your architecture. See also README-valgrind.
+
+While building from a just-cloned source tree may require installing a
+few prerequisites, later, a plain `git pull && make' should be sufficient.
+
+* First GIT checkout
+
+You can get a copy of the source repository like this:
+
+ $ git clone git://libvirt.org/libvirt
+ $ cd libvirt
+
+The next step is to get and check other files needed to build,
+which are extracted from other source packages:
+
+ $ ./bootstrap
+
+Then run this to create e.g., Makefiles and ./configure,
+and to invoke ./configure:
+
+ $ ./autogen.sh
+
+And there you are! Just
+
+ $ make
+ $ make check
+
+At this point, there should be no difference between your local copy,
+and the GIT master copy:
+
+ $ git diff
+
+should output no difference.
+
+Enjoy!
+
+-----
+
+Copyright (C) 2002-2009 Free Software Foundation, Inc.
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+Local Variables:
+indent-tabs-mode: nil
+End:
diff --git a/bootstrap b/bootstrap
index 0754d02..8b81e0e 100755
--- a/bootstrap
+++ b/bootstrap
@@ -1,11 +1,5 @@
#!/bin/sh
-# Run this after autogen.sh, to pull in all of the gnulib-related bits.
-# It's important to run *after* autogen.sh, since it updates some of
-# the same files autogen.sh does, yet those from gnulib are newer,
-# and match the tests. So if a gnulib bug has been fixed since the
-# snapshot taken for whatever gettext release you're using, yet you
-# run "make check" against the wrong version, the corresponding unit
-# test in gl-tests/ may well fail.
+# Run this before autogen.sh, to pull in all of the gnulib-related bits.
usage() {
echo >&2 "\
--
1.6.3.3.524.g8586b
15 years, 4 months
[libvirt] the role of libvirtd
by Hugh O. Brock
Hello all.
I spent quite a while yesterday in a meeting with a client interested in
using libvirt for a large project.
They are quite happy in general with the direction things are
going. However they have objections to a couple of libvirt design points
that have come up in multiple cases in the past, including in developing
the other project I'm involved in, oVirt. Specifically, they would
really prefer that libvirtd be a one-stop shop for everything they need
to do on a virtualization host, including things we have traditionally
held out-of-scope for libvirt. A partial list of those things would
include:
* In-depth multipath config management
* Hardware lifecycle management (power-off, reboot, etc.)
* HA configuration
... and pretty much anything else you might want to do on a piece of
hardware that is hosting virtual machines.
My initial reaction of course was to tell them "Well you should just
use a separate agent for that sort of thing." But of course this means
making a separate connection to the node depending on what operation
you want to perform, which is cumbersome.
So I guess what I'm asking is, why *not* expand the scope of libvirtd
to be a one-stop shop for managing a node? Is there a really good
reason it shouldn't have the remaining capabilities libvirt users
want? Is that reason good enough to balance the headache our users
have to deal with in coming up with a separate package to handle the
tasks libvirtd does not?
Slings, arrows, or thunderous applause welcome...
Take care,
--Hugh
15 years, 4 months
[libvirt] [PATCH] use gnulib via a submodule
by Jim Meyering
Please NOTE: do not apply the changes below.
They are incomplete because I've removed all the boring, repetitive parts.
If you want to apply something, use this:
http://meyering.net/code/tmp/libvirt-submodule.patch.bz2
For an overall summary of the process of hooking up
gnulib as a submodule, see the long commit log for 5/7, below:
Subject: [PATCH 5/7] make .gnulib a submodule
I'm not sure all of 1/7 is welcome, but at least the silent-rules
part seems in line with what people here like, considering
that mylibtool does something similar. With this, you might
be comfortable removing mylibtool.
Jim
>From 41e0b6942648065dcf00e9aee3f961297464a336 Mon Sep 17 00:00:00 2001
From: Jim Meyering <meyering(a)redhat.com>
Date: Mon, 6 Jul 2009 19:06:00 +0200
Subject: [PATCH 1/7] configure.in: use automake-1.11
---
configure.in | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/configure.in b/configure.in
index 29c8867..1170958 100644
--- a/configure.in
+++ b/configure.in
@@ -5,7 +5,8 @@ AC_CONFIG_SRCDIR([src/libvirt.c])
AC_CONFIG_AUX_DIR([build-aux])
AM_CONFIG_HEADER([config.h])
dnl Make automake keep quiet about wildcards & other GNUmake-isms
-AM_INIT_AUTOMAKE([-Wno-portability])
+AM_INIT_AUTOMAKE([1.11 color-tests parallel-tests -Wno-portability])
+AM_SILENT_RULES([yes]) # make --enable-silent-rules the default.
AC_CANONICAL_HOST
LIBVIRT_MAJOR_VERSION=`echo $VERSION | awk -F. '{print $1}'`
--
1.6.3.3.524.g8586b
>From d73c9fc35bdcac3c1f8b24cad226fc879325d3c2 Mon Sep 17 00:00:00 2001
From: Jim Meyering <meyering(a)redhat.com>
Date: Mon, 6 Jul 2009 18:23:44 +0200
Subject: [PATCH 2/7] * Makefile.cfg: Rename to...
* cfg.mk: ...this. New file.
---
Makefile.cfg => cfg.mk | 0
1 files changed, 0 insertions(+), 0 deletions(-)
rename Makefile.cfg => cfg.mk (100%)
diff --git a/Makefile.cfg b/cfg.mk
similarity index 100%
rename from Makefile.cfg
rename to cfg.mk
--
1.6.3.3.524.g8586b
>From 1cacbc7f4c883f763606e0bed36bd8d149add0d9 Mon Sep 17 00:00:00 2001
From: Jim Meyering <meyering(a)redhat.com>
Date: Mon, 6 Jul 2009 18:28:10 +0200
Subject: [PATCH 3/7] Prepare to use maint.mk from gnulib
Since Makefile.maint will soon come from gnulib's maint.mk,
sync Makefile.maint to have the same contents (modulo minor
things). In syncing it, we have to remove some libvirt-specific
rules. Since we want to keep them (of course), put those in cfg.mk.
* Makefile.maint: Merge from gnulib's maint.mk.
* cfg.mk (sc_avoid_write): New rule. From Makefile.cfg.
(sc_prohibit_strcmp_and_strncmp): Likewise, and rename.
(sc_prohibit_asprintf, sc_prohibit_VIR_ERR_NO_MEMORY): Likewise.
(sc_prohibit_nonreentrant): Likewise.
(sc_prohibit_ctype_h): Likewise.
(sc_TAB_in_indentation, sc_avoid_ctype_macros): Likewise.
(sc_prohibit_virBufferAdd_with_string_literal): Likewise.
(sc_prohibit_gethostby): Likewise.
(sc_libvirt_unmarked_diagnostics): Likewise. Also, rename the
rule, inserting "_libvirt", since this rule is a specialization of
the one in gnulib.
* GNUmakefile: Include cfg.mk, not Makefile.cfg
* .x-sc_prohibit_strcmp_and_strncmp: New file.
* Makefile.am (EXTRA_DIST): Add .x-sc_prohibit_strcmp_and_strncmp
.
---
.x-sc_prohibit_strcmp_and_strncmp | 1 +
GNUmakefile | 4 +-
Makefile.am | 1 +
Makefile.maint | 734 +++++++++++++++++--------------------
cfg.mk | 163 ++++++++
5 files changed, 505 insertions(+), 398 deletions(-)
create mode 100644 .x-sc_prohibit_strcmp_and_strncmp
diff --git a/.x-sc_prohibit_strcmp_and_strncmp b/.x-sc_prohibit_strcmp_and_strncmp
new file mode 100644
index 0000000..b7c456e
--- /dev/null
+++ b/.x-sc_prohibit_strcmp_and_strncmp
@@ -0,0 +1 @@
+^gnulib/
diff --git a/GNUmakefile b/GNUmakefile
index 157f432..e6d4178 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -40,7 +40,7 @@ export TAR_OPTIONS = --owner=0 --group=0 --numeric-owner
include Makefile
-include $(srcdir)/Makefile.cfg
+include $(srcdir)/cfg.mk
include $(srcdir)/Makefile.maint
else
diff --git a/Makefile.am b/Makefile.am
index 681034a..dd98ff2 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -16,6 +16,7 @@ EXTRA_DIST = \
.x-sc_avoid_if_before_free \
.x-sc_require_config_h_first \
.x-sc_prohibit_strcmp \
+ .x-sc_prohibit_strcmp_and_strncmp \
.x-sc_require_config_h \
.x-sc_prohibit_nonreentrant \
Makefile.nonreentrant \
...
--
1.6.3.3.524.g8586b
>From a4b10833246264377c9c0c99a0178c3e9b6af0f7 Mon Sep 17 00:00:00 2001
From: Jim Meyering <meyering(a)redhat.com>
Date: Mon, 6 Jul 2009 19:17:06 +0200
Subject: [PATCH 4/7] skip some of gnulib's new rules
* cfg.mk (local-checks-to-skip): Add these: sc_error_message_uppercase,
sc_program_name, sc_require_test_exit_idiom, sc_makefile_check.
---
cfg.mk | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/cfg.mk b/cfg.mk
index 3c9feb6..35bedd1 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -52,6 +52,10 @@ local-checks-to-skip = \
sc_system_h_headers \
sc_tight_scope \
sc_two_space_separator_in_usage \
+ sc_error_message_uppercase \
+ sc_program_name \
+ sc_require_test_exit_idiom \
+ sc_makefile_check \
sc_useless_cpp_parens
useless_free_options = \
--
1.6.3.3.524.g8586b
>From 856172836da7f639323702aff67489e9a74d47d5 Mon Sep 17 00:00:00 2001
From: Jim Meyering <meyering(a)redhat.com>
Date: Tue, 7 Jul 2009 11:22:52 +0200
Subject: [PATCH 5/7] make .gnulib a submodule
This makes it so we record (via a git submodule)
a snapshot of whatever version of gnulib we're using,
and none of gnulib sources are in the libvirt repository.
The result is that we have as much reproducibility as when
we version-controlled imported copies of the gnulib sources,
but without the hassle of the manual process we used when
syncing with upstream.
Note that when you clone libvirt, you get only the libvirt
repository, but when you first run ./bootstrap, it clones
gnulib (at the SHA1 recorded via the submodule), creating
the .gnulib/ hierarchy. Then, the bootstrap script runs
gnulib-tool to populate gnulib/ with the files that make
up the selected modules.
Put the following in your ~/.gitconfig file.
[alias]
syncsub = submodule foreach git pull origin master
The update procedure is simple:
git syncsub
...build & test...
git commit -m 'gnulib: sync submodule to latest' .gnulib
* .gitmodules: New file.
* .gnulib: Initialize.
* bootstrap: Set up to use the new submodule.
Stop using --no-vc-files.
Don't remove .gitignore files.
Don't use or create .cvsignore.
Diagnose an invalid --gnulib-srcdir=DIR argument.
* build-aux/vc-list-files: Delete file, now pulled from gnulib.
* build-aux/useless-if-before-free: Likewise.
* po/POTFILES.in: Remove gnulib/lib/gai_strerror.c, since
it no longer contains translatable strings.
* gnulib/*: Remove gnulib/ hierarchy.
---
.gitignore | 1 +
.gitmodules | 3 +
.gnulib | 1 +
bootstrap | 45 +-
build-aux/useless-if-before-free | 180 --
build-aux/vc-list-files | 107 -
gnulib/lib/.cvsignore | 26 -
gnulib/lib/.gitignore | 26 -
gnulib/lib/Makefile.am | 1241 --------
gnulib/lib/alloca.c | 489 ----
gnulib/lib/alloca.in.h | 56 -
gnulib/lib/arpa/.cvsignore | 1 -
gnulib/lib/arpa/.gitignore | 1 -
gnulib/lib/arpa_inet.in.h | 90 -
...
diff --git a/.gitignore b/.gitignore
index ca73a98..964580c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -34,3 +34,4 @@ stamp-h
stamp-h.in
stamp-h1
update.log
+tests/*.log
diff --git a/.gitmodules b/.gitmodules
new file mode 100644
index 0000000..7acb1ea
--- /dev/null
+++ b/.gitmodules
@@ -0,0 +1,3 @@
+[submodule "gnulib"]
+ path = .gnulib
+ url = git://git.sv.gnu.org/gnulib.git
diff --git a/.gnulib b/.gnulib
new file mode 160000
index 0000000..1203e8d
--- /dev/null
+++ b/.gnulib
@@ -0,0 +1 @@
+Subproject commit 1203e8d1f62dec3d2436dffadd5c20793cf84366
diff --git a/bootstrap b/bootstrap
index baf52e7..7ce28da 100755
--- a/bootstrap
+++ b/bootstrap
@@ -40,25 +40,31 @@ do
esac
done
-cleanup_gnulib() {
- st=$?
- rm -fr .gnulib
- exit $st
-}
+# Get gnulib files.
case ${GNULIB_SRCDIR--} in
-)
- if [ ! -d .gnulib ]; then
+ echo "$0: getting gnulib files..."
+ git submodule init || exit $?
+ git submodule update || exit $?
+ GNULIB_SRCDIR=.gnulib
+ ;;
+*)
+ # Redirect the gnulib submodule to the directory on the command line
+ # if possible.
+ if test -d "$GNULIB_SRCDIR"/.git && \
+ git config --file .gitmodules submodule.gnulib.url >/dev/null; then
+ git submodule init
+ GNULIB_SRCDIR=`cd $GNULIB_SRCDIR && pwd`
+ git config --replace-all submodule.gnulib.url $GNULIB_SRCDIR
echo "$0: getting gnulib files..."
-
- trap cleanup_gnulib 1 2 13 15
-
- git clone --depth 1 git://git.sv.gnu.org/gnulib .gnulib ||
- cleanup_gnulib
-
- trap - 1 2 13 15
+ git submodule update || exit $?
+ GNULIB_SRCDIR=.gnulib
+ else
+ echo >&2 "$0: invalid gnulib srcdir: $GNULIB_SRCDIR"
+ exit 1
fi
- GNULIB_SRCDIR=.gnulib
+ ;;
esac
gnulib_tool=$GNULIB_SRCDIR/gnulib-tool
@@ -103,20 +109,9 @@ vc-list-files
# put *.[ch] files in new gnulib/lib/ dir.
$gnulib_tool \
- --no-vc-files \
--lgpl=2 \
--with-tests \
--m4-base=gnulib/m4 \
--source-base=gnulib/lib \
--tests-base=gnulib/tests \
--import $modules
-
-rm -f \
- .gitignore \
- gnulib/lib/.gitignore \
- gnulib/m4/.gitignore \
- gnulib/tests/.gitignore
-
-(cd gnulib/lib &&
- (cat .cvsignore; \
- ls -1 *.in.h|sed 's/\.in\.h/.h/') | sort -u > .t; mv .t .cvsignore)
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 973f580..357cd70 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -1,4 +1,3 @@
-gnulib/lib/gai_strerror.c
qemud/qemud.c
qemud/remote.c
src/bridge.c
...
--
1.6.3.3.524.g8586b
>From ab811737a6914133bf12a46d4c5b5a2a2bdd9ee9 Mon Sep 17 00:00:00 2001
From: Jim Meyering <meyering(a)redhat.com>
Date: Tue, 7 Jul 2009 12:05:18 +0200
Subject: [PATCH 6/7] remove all .cvsignore files
---
.cvsignore | 34 -------------------------
build-aux/.cvsignore | 10 -------
build-aux/.gitignore | 2 +
docs/.cvsignore | 4 ---
docs/devhelp/.cvsignore | 3 --
docs/examples/.cvsignore | 7 -----
docs/examples/python/.cvsignore | 2 -
docs/schemas/.cvsignore | 2 -
examples/domain-events/events-c/.cvsignore | 6 ----
examples/hellolibvirt/.cvsignore | 5 ----
include/.cvsignore | 2 -
include/libvirt/.cvsignore | 2 -
m4/.cvsignore | 37 ----------------------------
po/.cvsignore | 15 -----------
proxy/.cvsignore | 5 ----
python/.cvsignore | 15 -----------
python/tests/.cvsignore | 2 -
qemud/.cvsignore | 12 ---------
src/.cvsignore | 20 ---------------
tests/.cvsignore | 28 ---------------------
tests/confdata/.cvsignore | 2 -
tests/sexpr2xmldata/.cvsignore | 2 -
tests/xencapsdata/.cvsignore | 2 -
tests/xmconfigdata/.cvsignore | 2 -
tests/xml2sexprdata/.cvsignore | 2 -
tools/.cvsignore | 4 ---
26 files changed, 2 insertions(+), 225 deletions(-)
...
--
1.6.3.3.524.g8586b
>From b718b0763f8fbfc35af586fa6d132d39259d0e11 Mon Sep 17 00:00:00 2001
From: Jim Meyering <meyering(a)redhat.com>
Date: Tue, 7 Jul 2009 18:08:45 +0200
Subject: [PATCH 7/7] use gnumakefile and maintainer-makefile modules from gnulib
* bootstrap (modules): Add gnumakefile and maintainer-makefile.
* GNUmakefile: Remove file, now provided by gnulib.
* Makefile.maint: Remove. Replaced by maint.mk from gnulib.
.gitignore: Add GNUmakefile and maint.mk.
* cfg.mk (prev_version_file): Disable this feature.
Setting this to /dev/null avoids an otherwise harmless diagnostic.
---
.gitignore | 2 +
GNUmakefile | 60 -----
Makefile.maint | 770 --------------------------------------------------------
bootstrap | 2 +
cfg.mk | 3 +
5 files changed, 7 insertions(+), 830 deletions(-)
delete mode 100644 GNUmakefile
delete mode 100644 Makefile.maint
...
diff --git a/bootstrap b/bootstrap
index 7ce28da..b0de3df 100755
--- a/bootstrap
+++ b/bootstrap
@@ -78,8 +78,10 @@ getaddrinfo
gethostname
getpass
gettext
+gnumakefile
inet_pton
ioctl
+maintainer-makefile
mkstemp
mktempd
perror
diff --git a/cfg.mk b/cfg.mk
index 35bedd1..736f7c0 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -227,3 +227,6 @@ sc_libvirt_unmarked_diagnostics:
| grep '[ ]"' && \
{ echo '$(ME): found unmarked diagnostic(s)' 1>&2; \
exit 1; } || :
+
+# We don't use this feature of maint.mk.
+prev_version_file = /dev/null
--
1.6.3.3.524.g8586b
15 years, 4 months
[libvirt] turn off dnsmasq
by Mike Power
I have a series of kvm vms I am running via libvirt. I have bind9 and
dhcp3-server installed and I am happy with their configuration.
The problem I have is that dhcp3-server and dnsmasq are currently
fighting over who hands out the ip address. My vms work when they get
their ip from dhcp3-server, and they fail when dnsmasq hands out the ip
address.
Unfortunately I can not get dnsmasq to stop handing out ip addresses.
This is the configuration of my default network:
<network>
<name>default</name>
<bridge name="virbr%d" />
<forward/>
<ip address="192.168.122.1" netmask="255.255.255.0">
</ip>
</network>
Notice in the ip tag the optional dhcp tag is missing. Thus dnsmasq I
thought, was supposed to leave well enough alone. It doesn't.
I can turn off dhcp3-server and start up a host.
What I see in the syslog is:
Jul 7 08:52:21 vmhost dnsmasq[3420]: DHCPREQUEST(virbr0)
192.168.122.244 52:54:00:8f:7c:a4
Jul 7 08:52:21 vmhost dnsmasq[3420]: DHCPACK(virbr0) 192.168.122.244
52:54:00:8f:7c:a4 host1000
Then when I run ifconfig on the host1000 vm, it has an ip address that
it obviously got from dnsmasq.
I just need dnsmasq to stop handing out IPs, how do I do that?
Mike Power
15 years, 4 months