You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 17, 2023. It is now read-only.
Describe the bug
After compiling the helloworld project . I noticed the files helloworld_kvm-x86_64.dbg , helloworld_kvm-x86_64 have different formats. I don't know the exact reason but this miss-mach affect the execution of helloworld_kvm-x86_64.dbg in qemu/kvm environments.
I believe this is highly related with the flags used for compilation.
In order to solve this issue I would need some input form your side.
Environment
OS
Linux 5.19.16-051916-generic #202210150742 SMP PREEMPT_DYNAMIC Sat Oct 15 08:5│6, version 1 (SYSV), statically linked, stripped
6:00 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Compiler
gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Kraft version:
kraft, version 0.5.0.dev492
To Reproduce
a. follow the get-started guide: https://unikraft.org/docs/getting-started to build the helloworld example for KVM.
b. Identify the miss match between the files by tipping the following command.
$ file helloworld_kvm-x86_64.dbg
helloworld_kvm-x86_64.dbg: **ELF 64-bit** LSB executable, **x86-64**,
version 1 (SYSV), statically linked, with debug_info, not stripped
d. after executing helloworld_kvm-x86_64.dbg as KVM partition for debuging you will notice that QEMU cannot execute the binary because there is an incompatibility
there is something like:
$ qemu-guest -P -g 1234 -k build/app-helloworld_kvm-x86_64.dbg
but it should be:
$ qemu-guest -P -g 1234 -k build/app-helloworld_kvm-x86_64
Should I fix the documentation and push a commit?
Best.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
After compiling the helloworld project . I noticed the files helloworld_kvm-x86_64.dbg , helloworld_kvm-x86_64 have different formats. I don't know the exact reason but this miss-mach affect the execution of helloworld_kvm-x86_64.dbg in qemu/kvm environments.
I believe this is highly related with the flags used for compilation.
In order to solve this issue I would need some input form your side.
Environment
To Reproduce
a. follow the get-started guide: https://unikraft.org/docs/getting-started to build the helloworld example for KVM.
b. Identify the miss match between the files by tipping the following command.
$ file helloworld_kvm-x86_64.dbg
$ file helloworld_kvm-x86_64
c. follow the guide for debuging: https://unikraft.org/community/hackathons/sessions/debugging
d. after executing helloworld_kvm-x86_64.dbg as KVM partition for debuging you will notice that QEMU cannot execute the binary because there is an incompatibility
Expected behavior
expect the qemu launch the kvm partition for debugging
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: