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

Commit

Permalink
Fix command for manually running redis
Browse files Browse the repository at this point in the history
Signed-off-by: Maria Sfiraiala <[email protected]>
  • Loading branch information
mariasfiraiala committed Nov 9, 2022
1 parent cc77231 commit 626dd96
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,18 +90,21 @@ To configure it for the KVM platform:
$ make menuconfig
```

Be aware of the fact that you'll have to choose a file system: for instance, from the `vfscore` library, choose the `Default root filesystem` to be `9pfs`.

Build the application:
```
$ make
```

Run the application:
```
sudo qemu-system-x86_64 \
sudo qemu-system-x86_64 -fsdev local,id=myid,path=$(pwd)/fs0,security_model=none \
-device virtio-9p-pci,fsdev=myid,mount_tag=rootfs,disable-modern=on,disable-legacy=off \
-netdev bridge,id=en0,br=virbr0 \
-device virtio-net-pci,netdev=en0 \
-kernel "build/app-redis_kvm-x86_64" \
-append "netdev.ipv4_addr=172.44.0.2 netdev.ipv4_gw_addr=172.44.0.1 netdev.ipv4_subnet_mask=255.255.255.0 --" \
-append "netdev.ipv4_addr=172.44.0.2 netdev.ipv4_gw_addr=172.44.0.1 netdev.ipv4_subnet_mask=255.255.255.0 -- /redis.conf" \
-cpu host \
-enable-kvm \
-nographic
Expand Down

0 comments on commit 626dd96

Please sign in to comment.