Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

Add KraftKit configuration file for KraftCloud #16

Closed
wants to merge 1 commit into from

Conversation

razvand
Copy link
Contributor

@razvand razvand commented Aug 23, 2023

Add kraft.cloud.yaml configuration file to build and run for KraftCloud.

Build with:

kraft build --kraftfile kraft.cloud.yaml -j $(nproc)

Run with:

sudo kraft net create -n 172.44.0.1/24 kraft0
sudo kraft run --kraftfile kraft.cloud.yaml --network bridge:kraft0 --plat firecracker --initrd ./fs0 -a netdev.ipv4_addr=172.44.0.2 -a netdev.ipv4_gw_addr=172.44.0.1 -a netdev.ipv4_subnet_mask=255.255.255.0 -- -c /nginx/conf/nginx.conf

@razvand razvand added the enhancement New feature or request label Aug 23, 2023
@marcrittinghaus marcrittinghaus changed the title Add KraftKit configuration file for KraftClout Add KraftKit configuration file for KraftCloud Aug 23, 2023
Copy link
Member

@marcrittinghaus marcrittinghaus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @razvand,

please check out the requested changes and also fix the commit title.

We probably also need to switch to posix-mmap due to lib-ukp-bin

kraft.cloud.yaml Outdated Show resolved Hide resolved
kraft.cloud.yaml Outdated Show resolved Hide resolved
@craciunoiuc
Copy link
Member

only one comment from my side: You can use maps instead of lists if you fancy those

- CONFIG_LWIP_DHCP=y -> CONFIG_LWIP_DHCP: "y"

@razvand razvand force-pushed the razvand/kraft.cloud branch 3 times, most recently from 969be2a to 31d5d85 Compare August 23, 2023 15:31
@StefanJum
Copy link
Member

@razvand running the commands you mentioned, I get this error at runtime:
could not detect any project targets based on plat="fc" arch="x86_64".

Everything build fine, the application image is there. Any idea?

@razvand
Copy link
Contributor Author

razvand commented Aug 23, 2023

@razvand running the commands you mentioned, I get this error at runtime: could not detect any project targets based on plat="fc" arch="x86_64".

Everything build fine, the application image is there. Any idea?

You need the latest kraftkit. Download it, do make devenv, then make kraft, the result executable is part of dist/kraft.

Add `kraft.cloud.yaml` configuration file to build and run for
KraftCloud.

Build with:

```
kraft build --kraftfile kraft.cloud.yaml -j $(nproc)
```

Run with:

```
sudo kraft net create -n 172.44.0.1/24 kraft0
sudo kraft run --kraftfile kraft.cloud.yaml --network bridge:kraft0 --plat firecracker --initrd ./fs0 -a netdev.ipv4_addr=172.44.0.2 -a netdev.ipv4_gw_addr=172.44.0.1 -a netdev.ipv4_subnet_mask=255.255.255.0 -- -c /nginx/conf/nginx.conf
```

Signed-off-by: Razvan Deaconescu <razvand@unikraft.io>
Copy link
Member

@StefanJum StefanJum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All good, thanks.

Reviewed-by: Stefan Jumarea stefanjumarea02@gmail.com

Copy link
Member

@craciunoiuc craciunoiuc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All good here. Thanks!

Reviewed-by: Cezar Craciunoiu cezar.craciunoiu@unikraft.io

Copy link
Member

@marcrittinghaus marcrittinghaus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved-by: Marc Rittinghaus marc.rittinghaus@unikraft.io

@razvand razvand deleted the razvand/kraft.cloud branch August 30, 2023 07:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
ci/merged enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants