All of lore.kernel.org
 help / color / mirror / Atom feed
From: Markus Armbruster <armbru@redhat.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: qemu-devel@nongnu.org
Subject: Re: make vm-build-freebsd appears to require . in PATH
Date: Tue, 10 Jan 2023 17:26:25 +0100	[thread overview]
Message-ID: <87358inyoe.fsf@pond.sub.org> (raw)
In-Reply-To: <CAFEAcA8ugDcG_e_DWgbz7MW_cK6xuCMcps7MgqyWF=bXjT8CmA@mail.gmail.com> (Peter Maydell's message of "Tue, 10 Jan 2023 15:55:56 +0000")

Peter Maydell <peter.maydell@linaro.org> writes:

> On Tue, 10 Jan 2023 at 15:44, Markus Armbruster <armbru@redhat.com> wrote:
>>
>> Look at this:
>>
>>     $ make vm-build-freebsd
>>     [...]
>>     ### Preparing iso and disk image ...
>>     /home/armbru/.cache/qemu-vm/images/freebsd.img.install.iso.xz (1/1)
>>       100 %       684.3 MiB / 959.4 MiB = 0.713   222 MiB/s       0:04
>>     Failed to prepare guest environment
>>     Traceback (most recent call last):
>>       File "/work/armbru/qemu/tests/vm/basevm.py", line 640, in main
>>         return vm.build_image(args.image)
>>                ^^^^^^^^^^^^^^^^^^^^^^^^^^
>>       File "/work/armbru/qemu/tests/vm/freebsd", line 100, in build_image
>>         self.exec_qemu_img("create", "-f", "qcow2", img_tmp, self.size)
>>       File "/work/armbru/qemu/tests/vm/basevm.py", line 270, in exec_qemu_img
>>         subprocess.check_call(cmd)
>>       File "/usr/lib64/python3.11/subprocess.py", line 408, in check_call
>>         retcode = call(*popenargs, **kwargs)
>>                   ^^^^^^^^^^^^^^^^^^^^^^^^^^
>>       File "/usr/lib64/python3.11/subprocess.py", line 389, in call
>>         with Popen(*popenargs, **kwargs) as p:
>>              ^^^^^^^^^^^^^^^^^^^^^^^^^^^
>>       File "/usr/lib64/python3.11/subprocess.py", line 1024, in __init__
>>         self._execute_child(args, executable, preexec_fn, close_fds,
>>       File "/usr/lib64/python3.11/subprocess.py", line 1901, in _execute_child
>>         raise child_exception_type(errno_num, err_msg, err_filename)
>>     FileNotFoundError: [Errno 2] No such file or directory: 'qemu-img'
>>     make: *** [/work/armbru/qemu/tests/vm/Makefile.include:97: /home/armbru/.cache/qemu-vm/images/freebsd.img] Error 2
>>     make: Target 'vm-build-freebsd' not remade because of errors.
>>     make: Leaving directory '/work/armbru/qemu/bld'
>>
>> Or similar errors at a later stage when the "guest environment" doesn't
>> need preparing anymore (I guess).
>
> Does it actually require '.' on the PATH, or does it just want
> a qemu-img binary on the PATH? (eg your distro one in /usr/bin).
> I don't have '.' on my PATH and it works for me.

Do we want to use qemu-img, qemu-system-x86_64 and so forth from PATH,
or the one in the build tree?

The former could well be old, which feels like a potential source of
problems.

> (Alternatively you can set QEMU_IMG to an absolute path to a
> qemu-img, as documented in the 'make vm-help' output.)

Thanks.



  reply	other threads:[~2023-01-10 17:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-10 14:28 make vm-build-freebsd appears to require . in PATH Markus Armbruster
2023-01-10 15:55 ` Peter Maydell
2023-01-10 16:26   ` Markus Armbruster [this message]
2023-01-10 16:37     ` Peter Maydell
2023-01-11  5:50       ` Markus Armbruster

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=87358inyoe.fsf@pond.sub.org \
    --to=armbru@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.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.