Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
IPAM ?=

clippy:
cargo clippy

Expand All @@ -8,7 +10,7 @@ release: clippy
cargo build --release --target=x86_64-unknown-linux-musl --all

run: all
./target/debug/feos
sudo ./target/debug/feos --ipam $(IPAM)

clean:
rm -rf target
Expand Down
7 changes: 7 additions & 0 deletions hack/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ The virtual machine has a virtio-net NIC attached which will be connected to a L

With the make target `virsh-start` the VM will be created and started. `virsh-console` brings you into the serial console of the VM (you can exit it with `Ctrl+]`). To stop and destroy the VM call `make virsh-stop` - you'll probably want to concatenate those commands to `make virsh-start virsh-console virsh-stop`. This will start the VM, opens the serial console and waits for you to hit `Ctrl+]` to exit the serial console and destroy the VM.

### make run
To test feos locally, you can execute `make run` to compile and run feos locally as a non-PID 1 process. Via the environment system `$IPAM` you can provide the IPAM prefix, that feos will use for providing IP addresses to containers and VMs:

IPAM=2001:db8::/64 make run




## Cloud-Hypervisor
If you want to run FeOS within a [cloud-hypervisor](https://www.cloudhypervisor.org/) VM get some inspiration from this bash snippet:
Expand Down