summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-06-16 10:19:39 +0100
committerRichard W.M. Jones <rjones@redhat.com>2012-06-27 16:36:15 +0100
commit78bd074f424fec0beb51d968f18df36e9139518e (patch)
treee0f61134e5b4740ac4424f75c695d3ae35472d11
parentcadfab1a20f3cfb37e1a4d69fbea001754dcba32 (diff)
downloadlibguestfs-78bd074f424fec0beb51d968f18df36e9139518e.tar.gz
libguestfs-78bd074f424fec0beb51d968f18df36e9139518e.tar.xz
libguestfs-78bd074f424fec0beb51d968f18df36e9139518e.zip
EPEL 5: Remove checks which fail with ancient qemu.
Note that g->qemu_version and g->qemu_devices will both be empty strings.
-rw-r--r--configure.ac57
-rw-r--r--src/launch.c14
2 files changed, 2 insertions, 69 deletions
diff --git a/configure.ac b/configure.ac
index dc2a1035..75d2c5ed 100644
--- a/configure.ac
+++ b/configure.ac
@@ -573,63 +573,6 @@ This could be a very old version of qemu, or qemu might not be
working.
])
fi
-
- AC_MSG_CHECKING([that $QEMU -version works])
- if $QEMU -version >&AS_MESSAGE_LOG_FD 2>&1; then
- AC_MSG_RESULT([yes])
- else
- AC_MSG_RESULT([no])
- AC_MSG_FAILURE(
-[$QEMU -version: command failed.
-
-This could be a very old version of qemu, or qemu might not be
-working.
-])
- fi
-
- AC_MSG_CHECKING([for $QEMU version >= 1])
- if $QEMU -version | grep -sq 'version @<:@1-@:>@'; then
- AC_MSG_RESULT([yes])
- else
- AC_MSG_RESULT([no])
- AC_MSG_FAILURE([$QEMU version must be >= 1.0.])
- fi
-
- AC_MSG_CHECKING([that $QEMU -machine accel=kvm:tcg -device ? works])
- if $QEMU -machine accel=kvm:tcg -device \? >&AS_MESSAGE_LOG_FD 2>&1; then
- AC_MSG_RESULT([yes])
- else
- AC_MSG_RESULT([no])
- AC_MSG_FAILURE([$QEMU -machine accel=kvm:tcg -device ? doesn't work.])
- fi
-
- AC_MSG_CHECKING([for virtio-serial support in $QEMU])
- if $QEMU $QEMU_OPTIONS -machine accel=kvm:tcg -device \? 2>&1 | grep -sq virtio-serial; then
- AC_MSG_RESULT([yes])
- else
- AC_MSG_RESULT([no])
- AC_MSG_FAILURE(
-[I did not find virtio-serial support in
-$QEMU.
-
-virtio-serial support in qemu or KVM is essential for libguestfs
-to operate.
-
-Usually this means that you have to install a newer version of qemu
-and/or KVM. Please read the relevant section in the README file for
-more information about this.
-
-You can override this test by setting the environment variable
-vmchannel_test=no
-
-However if you don't have the right support in your qemu, then this
-just delays the pain.
-
-If I am using the wrong qemu or you want to compile qemu from source
-and install it in another location, then you should configure with
-the --with-qemu option.
-])
- fi
fi
dnl Enable packet dumps when in verbose mode. This generates lots
diff --git a/src/launch.c b/src/launch.c
index 3cd16f41..3bb41ae6 100644
--- a/src/launch.c
+++ b/src/launch.c
@@ -1394,18 +1394,8 @@ test_qemu (guestfs_h *g)
return -1;
}
- snprintf (cmd, sizeof cmd, "LC_ALL=C '%s' -nographic -version 2>/dev/null",
- g->qemu);
-
- if (test_qemu_cmd (g, cmd, &g->qemu_version) == -1)
- goto qemu_error;
-
- snprintf (cmd, sizeof cmd,
- "LC_ALL=C '%s' -nographic -machine accel=kvm:tcg -device '?' 2>&1",
- g->qemu);
-
- if (test_qemu_cmd (g, cmd, &g->qemu_devices) == -1)
- goto qemu_error;
+ g->qemu_version = safe_strdup (g, "");
+ g->qemu_devices = safe_strdup (g, "");
return 0;
}