All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Huth <thuth@redhat.com>
To: qemu-devel@nongnu.org, Richard Henderson <richard.henderson@linaro.org>
Cc: "Daniel P. Berrangé" <berrange@redhat.com>
Subject: [PULL 3/7] tests/vm: Drop the broken Haiku VM
Date: Thu, 24 Sep 2026 11:05:54 +0200	[thread overview]
Message-ID: <20260924090558.801845-4-thuth@redhat.com> (raw)
In-Reply-To: <20260924090558.801845-1-thuth@redhat.com>

The Haiku VM has bitrotted again: At least since Haiku r1beta6 has
been released, the image does not work anymore. I tried to update
the script to use the r1beta6 repositories instead, but after the
update, the Haiku kernel only crashes during reboot.

Given the fact that hardly anybody seems to use this image and
that it is more often broken than working, let's stop wasting our
time here and simply remove it.

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-ID: <20260917062615.783485-1-thuth@redhat.com>
---
 tests/vm/haiku.x86_64 | 124 ------------------------------------------
 1 file changed, 124 deletions(-)
 delete mode 100755 tests/vm/haiku.x86_64

diff --git a/tests/vm/haiku.x86_64 b/tests/vm/haiku.x86_64
deleted file mode 100755
index 3ea48dc38a1..00000000000
--- a/tests/vm/haiku.x86_64
+++ /dev/null
@@ -1,124 +0,0 @@
-#!/usr/bin/env python3
-#
-# Haiku VM image
-#
-# Copyright 2020-2022 Haiku, Inc.
-#
-# Authors:
-#  Alexander von Gluck IV <kallisti5@unixzen.com>
-#
-# This code is licensed under the GPL version 2 or later.  See
-# the COPYING file in the top-level directory.
-#
-
-import os
-import re
-import sys
-import time
-import socket
-import subprocess
-import basevm
-
-VAGRANT_KEY_FILE = os.path.join(os.path.dirname(__file__),
-    "..", "keys", "vagrant")
-
-VAGRANT_PUB_KEY_FILE = os.path.join(os.path.dirname(__file__),
-    "..", "keys", "vagrant.pub")
-
-HAIKU_CONFIG = {
-    'cpu'             : "max",
-    'machine'         : 'pc',
-    'guest_user'      : "vagrant",
-    'guest_pass'      : "",
-    'root_user'       : "vagrant",
-    'root_pass'       : "",
-    'ssh_key_file'    : VAGRANT_KEY_FILE,
-    'ssh_pub_key_file': VAGRANT_PUB_KEY_FILE,
-    'memory'          : "4G",
-    'extra_args'      : [],
-    'qemu_args'       : "-device VGA",
-    'dns'             : "",
-    'ssh_port'        : 0,
-    'install_cmds'    : "",
-    'boot_dev_type'   : "block",
-    'ssh_timeout'     : 1,
-}
-
-class HaikuVM(basevm.BaseVM):
-    name = "haiku"
-    arch = "x86_64"
-
-    link = "https://app.vagrantup.com/haiku-os/boxes/r1beta4-x86_64/versions/20230114/providers/libvirt.box"
-    csum = "6e72a2a470e03dbc3c5e808664e057bb4022b390dca88e4c7da6188f26f6a3c9"
-
-    poweroff = "shutdown"
-
-    requirements = [
-        "devel:libbz2",
-        "devel:libcapstone",
-        "devel:libcurl",
-        "devel:libfdt",
-        "devel:libgcrypt",
-        "devel:libgl",
-        "devel:libglib_2.0",
-        "devel:libgnutls",
-        "devel:libgpg_error",
-        "devel:libintl",
-        "devel:libjpeg",
-        "devel:liblzo2",
-        "devel:libncursesw",
-        "devel:libnettle",
-        "devel:libpixman_1",
-        "devel:libpng16",
-        "devel:libsdl2_2.0",
-        "devel:libslirp",
-        "devel:libsnappy",
-        "devel:libssh2",
-        "devel:libtasn1",
-        "devel:libusb_1.0",
-        "devel:libz",
-        "ninja",
-        "pip",
-        "tomli_python310",
-        "wheel_python310",
-        "setuptools_python310",
-    ]
-
-    BUILD_SCRIPT = """
-        set -e;
-        rm -rf /tmp/qemu-test.*
-        cd $(mktemp -d /tmp/qemu-test.XXXXXX);
-        mkdir src build; cd src;
-        tar -xf /dev/disk/virtual/virtio_block/1/raw;
-        mkdir -p /usr/bin
-        ln -s /boot/system/bin/env /usr/bin/env
-        cd ../build
-        ../src/configure {configure_opts};
-        make --output-sync -j{jobs} {target} {verbose};
-    """
-
-    def build_image(self, img):
-        self.print_step("Downloading disk image")
-        tarball = self._download_with_cache(self.link, sha256sum=self.csum)
-
-        self.print_step("Extracting disk image")
-
-        subprocess.check_call(["tar", "xzf", tarball, "box.img", "-O"],
-                              stdout=open(img, 'wb'))
-
-        self.print_step("Preparing disk image")
-        self.boot(img)
-
-        # Wait for ssh to be available.
-        self.wait_ssh(wait_root=True, cmd="exit 0")
-
-        # Install packages
-        self.ssh_root("echo yes | pkgman add-repo https://eu.hpkg.haiku-os.org/haiku/r1beta5/$(getarch)/current")
-        self.ssh_root("echo yes | pkgman add-repo https://eu.hpkg.haiku-os.org/haikuports/r1beta5/$(getarch)/current")
-        self.ssh_root("pkgman install -y %s" % " ".join(self.requirements))
-        self.graceful_shutdown()
-
-        self.print_step("All done")
-
-if __name__ == "__main__":
-    sys.exit(basevm.main(HaikuVM, config=HAIKU_CONFIG))
-- 
2.55.0



  parent reply	other threads:[~2026-09-24  9:06 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-24  9:05 [PULL 0/7] XHCI fixes and drop Haiku VM Thomas Huth
2026-09-24  9:05 ` [PULL 1/7] hw/usb/hcd-xhci: Set reentrancy guard in timer functions (CVE-2026-17588) Thomas Huth
2026-09-24  9:05 ` [PULL 2/7] hw/usb/hcd-xhci: Limit DMA transfers to plain memory Thomas Huth
2026-09-24  9:12   ` Philippe Mathieu-Daudé
2026-09-24  9:21     ` Thomas Huth
2026-09-24  9:05 ` Thomas Huth [this message]
2026-09-24  9:05 ` [PULL 4/7] hw/usb/hcd-xhci: fix interval alignment after MFINDEX passes 2^32 Thomas Huth
2026-09-24  9:05 ` [PULL 5/7] hw/usb/hcd-xhci: don't assert on NAK when retrying an isoch transfer Thomas Huth
2026-09-24  9:05 ` [PULL 6/7] tests/qtest/usb-hcd-xhci: test isoch pacing with MFINDEX above 2^32 Thomas Huth
2026-09-24  9:05 ` [PULL 7/7] tests/qtest/usb-hcd-xhci: test isoch endpoint type mismatch Thomas Huth
2026-09-24 15:24 ` [PULL 0/7] XHCI fixes and drop Haiku VM Richard Henderson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260924090558.801845-4-thuth@redhat.com \
    --to=thuth@redhat.com \
    --cc=berrange@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=richard.henderson@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.