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

Add kraft.cloud.yaml #19

Closed
wants to merge 1 commit into from

Conversation

razvand
Copy link
Contributor

@razvand razvand commented Aug 23, 2023

This is to be used for KraftCloud deployments.

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.

I think, it makes sense to remove all targets that are not runnable on KraftCloud and also name the KraftCloud target accordingly. Also 9pfs is not supported on the plat. initrd is also the only option.

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 -- /redis.conf
```

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

razvand commented Aug 23, 2023

I think, it makes sense to remove all targets that are not runnable on KraftCloud and also name the KraftCloud target accordingly. Also 9pfs is not supported on the plat. initrd is also the only option.

@marcrittinghaus, done.

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.

There are some firecracker networking issues unrelated to this pr. This is fine.
Reviewed-by: Stefan Jumarea stefanjumarea02@gmail.com

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

unikraft-bot pushed a commit that referenced this pull request Sep 8, 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 -- /redis.conf
```

Signed-off-by: Razvan Deaconescu <razvand@unikraft.io>
Reviewed-by: Stefan Jumarea <stefanjumarea02@gmail.com>
Approved-by: Marc Rittinghaus <marc.rittinghaus@unikraft.io>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Closes: #19
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

4 participants