yerden

Untitled

Aug 7th, 2024
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.20 KB | None | 0 0
  1. 1. Install VirtualBox. Instructions may vary from one Linux distribution to another.
  2. 2. Download Rocky Linux 9.4 ISO.
  3. 3. Create new VM in VirtualBox as you normally would do, named “cuttlefish”.
  4. 4. Specify Network Adapter 1 as NAT.
  5.  
  6.  
  7.  
  8.  
  9.  
  10. 5. Specify Network Adapter 2 as internal with some name (here is default “intnet”).
  11.  
  12.  
  13. 6. Specify Optical Drive to insert a downloaded Rocky Linux ISO.
  14.  
  15. 7. Install Rocky Linux
  16.  
  17. 8. install stuff to support Vbox Guest Additions, DPDK and floweaver
  18.  
  19.  
  20. sudo dnf install -y epel-release dnf-plugins-core
  21. sudo dnf config-manager --set-enabled crb
  22. 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
  23.  
  24. reboot if the kernel is updated, for kernel-headers and kernel version to match each other
  25.  
  26. 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
  27.  
  28.  
  29. 10. Install Vbox Guest Additions ISO. Refer to its documentation or ask me :)
  30.  
  31. 11. Install DPDK. Steps:
  32.  
  33. pip install meson pyelftools
  34. git clone https://dpdk.org/git/dpdk
  35. cd dpdk
  36. mkdir mybuild
  37. cd mybuild
  38. meson ..
  39. meson compile
  40. sudo HOME=~ $(which meson) install
  41.  
  42.  
  43. 12. Install floweaver’s dpdk-cuttlefish binary.
  44.  
  45. 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
  46.  
  47. mkdir ~/flw-build
  48. cd ~/flw-build
  49. sudo HOME=~ $(which meson) -Dbuildtype=release /project
  50. sudo HOME=~ $(which meson) compile
  51.  
  52. Now you have app/dpdk-cuttlefish/dpdk-cuttlefish binary. You run it with configuration file (kindly request one from probe team).
  53.  
  54. 13. Setup a client VM and assign it to the same network as “cuttlefish” VM, namely “intnet”.
  55.  
  56.  
  57. 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