Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need to link qemu-kvm to qemu-system-X on Fedora #4025

Open
smitterl opened this issue Nov 12, 2024 · 1 comment
Open

Need to link qemu-kvm to qemu-system-X on Fedora #4025

smitterl opened this issue Nov 12, 2024 · 1 comment

Comments

@smitterl
Copy link
Contributor

I tried to set up tp-libvirt on Fedora 41.
No test cases are listed.

avocado -V list --vt-type libvirt reveals

vocado-vt           virsh.boot Command 'kvm' could not be found in any of the PATH dirs: ['/bin', '/root/.local/bin', '/root/bin', '/root/code/p3.11-env/bin', '/sbin', '/usr/bin', '/usr/libexec', '/usr/local
/bin', '/usr/local/sbin', '/usr/sbin']       

After adding a link from /usr/libexec/qemu-kvm to my qemu-system-X executable tests are found

@PaulYuuu
Copy link
Contributor

PaulYuuu commented Dec 5, 2024

You can refer to this:

def get_qemu_binary(params):
"""
Get the path to the qemu binary currently in use.
"""
# Update LD_LIBRARY_PATH for built libraries (libspice-server)
qemu_binary_path = get_path(
_get_backend_dir(params), params.get("qemu_binary", "qemu")
)
if not os.path.isfile(qemu_binary_path):
LOG.debug(
"Could not find params qemu in %s, searching the "
"host PATH for one to use",
qemu_binary_path,
)
QEMU_BIN_NAMES = [
"qemu-kvm",
"qemu-system-%s" % (ARCH),
"qemu-system-ppc64",
"qemu-system-x86",
"qemu_system",
"kvm",
]
for qemu_bin in QEMU_BIN_NAMES:
try:
qemu_binary = utils_path.find_command(qemu_bin)
LOG.debug("Found %s", qemu_binary)
break
except utils_path.CmdNotFoundError:
continue
else:
raise exceptions.TestError(
"qemu binary names %s not found in " "system" % " ".join(QEMU_BIN_NAMES)
)

To check if an update is required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants