Skip to content
This repository has been archived by the owner on Jul 17, 2023. It is now read-only.

Error while installing kraft on fresh fedora install #107

Open
osmten opened this issue May 1, 2022 · 2 comments
Open

Error while installing kraft on fresh fedora install #107

osmten opened this issue May 1, 2022 · 2 comments
Assignees

Comments

@osmten
Copy link

osmten commented May 1, 2022

Hi I have problem installing and using kraft on fresh fedora install. I followed following steps

I installed requirements using following step:

sudo dnf install @development-tools ncurses-devel libyaml flex git wget socat bison unzip libuuid python3 python3-setuptools python3-pip

I then installed kraft using pip3

I then ran this command

kraft list

I got following output and it asked for the github token ad rate limit exceeded

[INFO    ] Using direct repository: https://github.com/unikraft/unikraft.git
[INFO    ] Found core/unikraft via https://github.com/unikraft/unikraft.git...
[INFO    ] Populating via wildcard: https://github.com/unikraft/plat-*
[ERROR   ] GitHub rate limit exceeded!  If you have not done so already,
[ERROR   ] you can tell kraft to use a personal access token when contacting
[ERROR   ] the GitHub API.  First, visit:
[ERROR   ]  
[ERROR   ]   https://github.com/settings/tokens/new
[ERROR   ]  
[ERROR   ] then select 'repo:public_repo'.  You can then set the
[ERROR   ] environmental variable UK_KRAFT_GITHUB_TOKEN with this new token,
[ERROR   ] for example:
[ERROR   ]  
[ERROR   ]   export UK_KRAFT_GITHUB_TOKEN=<token>
[ERROR   ]  
[ERROR   ] Once this is done, please try again :-)


I then set environment variable with the github token and ran kraft list again

It doesn't show any platforms,libraries or applications. Below is the output

[WARNING ] unikraft directory is empty: /home/liveuser/.unikraft/unikraft  
UNIKRAFT    VERSION     RELEASED        LAST CHECKED
unikraft    0.8.0       12 hours ago    4 hours ago  

I then, tried to run the hello world application using following command, I got following error.

kraft up -p kvm -m x86_64 -t helloworld helloworld

I got this error.

[WARNING ] Could not find manifest: helloworld
[ERROR   ] No manifests to download

@judcole
Copy link

judcole commented Jul 15, 2022

You need to run kraft list update to refresh the list once you have the token in the environment!

HTH

@judcole
Copy link

judcole commented Jul 16, 2022

You also need to alias Bison to YACC:

sudo ln -s /usr/bin/bison /usr/bin/yacc

and while troubleshooting the virtualization I did the following to get some extra tools, but I am not sure if it actually is needed:

sudo dnf group install virtualization

but after those I was able to build and run helloworld.

HTH

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

No branches or pull requests

3 participants