-
Notifications
You must be signed in to change notification settings - Fork 125
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
Build from code and run is not working in a VM with kernel version 5.xxx-generic IF hypervisor (host) has a bigger kernel version like 6.xxx-generic #656
Comments
gh-656 - Build and parser fixes with clang-14
The issue is fixed. Please try the following -
Further if you want to run loxilb in the same build system, you would need to install loxilb loader tools as follows -
|
Meanwhile, we also added support for Ubuntu 24.04 build environment as well. Feel free to have a look. |
@TrekkieCoder
I think |
Yes currently loxilb depends on libbpf 0.8. But currently you can -
It will install libbpf 0.8 but it might overwrite other libbpf versions already installed. We will statically link libbpf dependency in future. bpf_get_link_xdp_id is deprecated even in 0.8 but porting to newer versions of libbpf is a work in progress. |
Thanks! I can't install libbpf 0.8 because my other bpf program depending on libbpf > 1. look forward to have static link or porting to newer libbpf version |
gh-656 - Build tweaked to include static libbpf
#660 enables static linking. Closing this as completed. |
Hi @TrekkieCoder, The first part of the installation passed but still with some erros and It's not working the "sudo cp api/certification/server.* /opt/loxilb/cert/" saying "No such file or directory" and "sudo ./loxilb" part on tutorial for next steps: What I did:
|
I think this step got missed -
|
@TrekkieCoder, It still didn't solve the problem. Bellow are the steps I did:
See bellow output for the commands from step 2: |
Thanks for the logs. I too spawned a new host (x86-64), installed Ubuntu 22.04.4 Kernel 6.5.0-28. Roughly followed the steps as per this link which is almost same as you did. It ran just fine.
Attaching logs - Finally, I ran latest loxilb docker in the same box. That also went fine.
Further, loxilb build/run is validated in ubuntu22.04 among others as well. Please check logs here Kind of perplexed why it is not working for you. |
Hi @TrekkieCoder, I don't know but I tried here again and the command "sudo ./loxilb" fails. Can you provide more information about the VM setup you did? because I'm using here the VirtualBox (Version 7.0.10 r158379 (Qt5.15.3)) and my VM has 4 processors, 6gb of memory... bellow screenshot has full details about my VM: I'm supposing it's an inconpatibility with virtualbox, what do you think? |
Hi @TrekkieCoder, my hypervisor (base system) is Ubuntu 22.04, and kernel version 6.5.0-28-generic without clang: My VM on virtual box has kernel version 5.15.0-105-generic and clang version 14.0.0-1ubuntu1.1: |
I tried the exact same configuration as yours but could not replicate your error: It would be great if we are able to solve your issue. If it is fine with you, please join loxilb slack channel. We can discuss this further. |
Hi @TrekkieCoder, I find out that my issue is related the kernel version. So, IF the hypervisor (base system) has a kernel version 6.5.0-28-generic and the VM a lower kernel version like it was 5.15.0-105-generic the loxilb won't work. What I did here to make it working now was that I first tried directly on my computer with kernel version 6.5.0-28-generic and worked/is working perfectly. After that I created a new VM with ubuntu 24.04 that has the kernel version 6.8.0-31-generic and boom it worked as well: For me it seems that the bug here is "loxilb do not work in a VM with lower kernel version then the hypervisor". |
Thanks for digging into this. Will try to check how interaction between hypervisor host and VM is affecting this. |
It is currently not reproducible anymore. Kindly reopen if problem persists with latest loxilb version. |
I'm following the tutorial here https://loxilb-io.github.io/loxilbdocs/run/, but I had no success to install the loxilb returning the error bellow:
The text was updated successfully, but these errors were encountered: