Skip to content

Commit fe16e6f

Browse files
authored
use sudo for make run and provide env var to ./feos (#66)
* use sudo for make run and provide env var to ./feos * update hack/README.md
1 parent c8a05d5 commit fe16e6f

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
IPAM ?=
2+
13
clippy:
24
cargo clippy
35

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

1012
run: all
11-
./target/debug/feos
13+
sudo ./target/debug/feos --ipam $(IPAM)
1214

1315
clean:
1416
rm -rf target

hack/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@ The virtual machine has a virtio-net NIC attached which will be connected to a L
2525

2626
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.
2727

28+
### make run
29+
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:
30+
31+
IPAM=2001:db8::/64 make run
32+
33+
34+
2835

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

0 commit comments

Comments
 (0)