Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1. Install VirtualBox. Instructions may vary from one Linux distribution to another.
- 2. Download Rocky Linux 9.4 ISO.
- 3. Create new VM in VirtualBox as you normally would do, named “cuttlefish”.
- 4. Specify Network Adapter 1 as NAT.
- 5. Specify Network Adapter 2 as internal with some name (here is default “intnet”).
- 6. Specify Optical Drive to insert a downloaded Rocky Linux ISO.
- 7. Install Rocky Linux
- 8. install stuff to support Vbox Guest Additions, DPDK and floweaver
- sudo dnf install -y epel-release dnf-plugins-core
- sudo dnf config-manager --set-enabled crb
- sudo dnf install -y kernel gcc glibc-devel libbpf-devel zeromq-devel kernel-headers kernel-devel numactl-devel libibverbs-devel jansson-devel zlib-devel python-pip libpcap-devel libfdt-devel libxdp-devel libmnl-devel ninja-build git make pkgconfig cmake jq libcmocka-devel libconfig-devel
- reboot if the kernel is updated, for kernel-headers and kernel version to match each other
- 9. Specify Optical Drive to insert a downloaded Vbox Guest Additions ISO , download it from here: https://download.virtualbox.org/virtualbox/<vbox version>/VboxGuestAdditions<some_shit>.iso
- 10. Install Vbox Guest Additions ISO. Refer to its documentation or ask me :)
- 11. Install DPDK. Steps:
- pip install meson pyelftools
- git clone https://dpdk.org/git/dpdk
- cd dpdk
- mkdir mybuild
- cd mybuild
- meson ..
- meson compile
- sudo HOME=~ $(which meson) install
- 12. Install floweaver’s dpdk-cuttlefish binary.
- To do that, I’d suggest to add Shared Folder in VM. Mount the path to floweaver project to VM’s filespace. Let’s assume floweaver is mounted under /project folder. Then
- mkdir ~/flw-build
- cd ~/flw-build
- sudo HOME=~ $(which meson) -Dbuildtype=release /project
- sudo HOME=~ $(which meson) compile
- Now you have app/dpdk-cuttlefish/dpdk-cuttlefish binary. You run it with configuration file (kindly request one from probe team).
- 13. Setup a client VM and assign it to the same network as “cuttlefish” VM, namely “intnet”.
- You can configure it inside the guest to receive dynamic IP and if the “cuttlefish” will have running the `dpdk-cuttlefish` instance then you’ll get network connectivity through this VM.
Advertisement
Add Comment
Please, Sign In to add comment