From: Wainer dos Santos Moschetta <wainersm@redhat.com>
To: qemu-devel@nongnu.org
Cc: fam@euphon.net, philmd@redhat.com, alex.bennee@linaro.org
Subject: [PATCH 0/1] tests/vm: Allow to set path to qemu-img
Date: Thu, 14 Nov 2019 08:42:45 -0500 [thread overview]
Message-ID: <20191114134246.12073-1-wainersm@redhat.com> (raw)
Usually I build QEMU in a system which doesn't have any qemu
package installed. When I need to `make vm-build-something`
it fails due system-qemu-<arch> and qemu-img not found
system-wide (and I want to use the built binaries). The
formed can be set with QEMU env var, but the later can't. So
this patch allows to set the path to qemu-img using yet another
env var.
Git:
- Tree: https://github.com/wainersm/qemu
- Branch: https://github.com/wainersm/qemu/tree/test_vm_qemu-img
Travis:
- (FAIL) https://travis-ci.org/wainersm/qemu/builds/611563267
Two build jobs reached timeout. Not related with this change though.
Bug found: I realized that when I export QEMU it is always overwritten
with <BUILD>/qemu/xtensa-linux-user/qemu-xtensa
See the error below.
---
[root@localhost qemu]# export QEMU_IMG=$PWD/qemu-img
[root@localhost qemu]# export QEMU=$PWD/x86_64-softmmu/qemu-system-x86_64
[root@localhost qemu]# make vm-build-fedora
VM-IMAGE fedora
### Downloading install iso ...
### Preparing iso and disk image ...
Formatting '/root/.cache/qemu-vm/images/fedora.img.tmp', fmt=qcow2 size=21474836480 cluster_size=65536 lazy_refcounts=off refcount_bits=16
### Booting installer ...
ERROR:root:Failed to launch QEMU, command line:
ERROR:root:/root/build/qemu/xtensa-linux-user/qemu-xtensa -nodefaults -m 4G -cpu max -netdev user,id=vnet,hostfwd=:127.0.0.1:0-:22 -device virtio-net-pci,netdev=vnet -vnc 127.0.0.1:0,to=20 -smp 8 -enable-kvm -device VGA -drive file=/root/.cache/qemu-vm/images/fedora.img.tmp,if=none,id=drive0,cache=writeback -device virtio-blk,drive=drive0,bootindex=0 -bios pc-bios/bios-256k.bin -machine graphics=off -cdrom /root/.cache/qemu-vm/images/fedora.img.install.iso
ERROR:root:Log:
ERROR:root:qemu: unknown option 'chardev'
---
Wainer dos Santos Moschetta (1):
tests/vm: Allow to set qemu-img path
docs/devel/testing.rst | 6 ++++--
tests/vm/Makefile.include | 1 +
tests/vm/basevm.py | 5 +++++
tests/vm/centos | 2 +-
tests/vm/fedora | 4 +---
tests/vm/freebsd | 3 +--
tests/vm/netbsd | 3 +--
tests/vm/openbsd | 3 +--
tests/vm/ubuntu.i386 | 2 +-
9 files changed, 16 insertions(+), 13 deletions(-)
--
2.18.1
next reply other threads:[~2019-11-14 13:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-14 13:42 Wainer dos Santos Moschetta [this message]
2019-11-14 13:42 ` [PATCH 1/1] tests/vm: Allow to set qemu-img path Wainer dos Santos Moschetta
2019-12-03 11:35 ` Alex Bennée
2019-12-03 16:17 ` Philippe Mathieu-Daudé
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=20191114134246.12073-1-wainersm@redhat.com \
--to=wainersm@redhat.com \
--cc=alex.bennee@linaro.org \
--cc=fam@euphon.net \
--cc=philmd@redhat.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).