-
Notifications
You must be signed in to change notification settings - Fork 0
Steps for Testbed
-
Download Ubuntu Server 18.04, paste it in scripts folder
-
Run scripts. (requires qemu)
sudo apt-get install qemu
sudo apt-get install netperf
./scripts ubuntu-18.04.1-live-server-amd64.iso -
While setting up the QEMU ubuntu server, set all usernames and passwords as "ubuntu" run
sudo apt-get update
andsudo apt-get upgrade
after installation is done
sudo ./close
To build kernel:
- Commit your changes!
- make clean
- git clean --dffv
- cp config file from boot to linux
- update Kconfig
- make olddefconfig
- make menuconfig
- make prepare 9 make modules_prepare (requires libelf-dev, libelf-devel)
- make -j 8 m=net/sched
- make -j <no_of_cores>?
Now kernel image should be built. to install it onto the routers:
path_to_router = ../images/router
make INSTALL_MOD_PATH=path_to_router modules_install
make INSTALL_PATH=path_to_router/boot install
To open VM in QEMU, goto ../images and type:
sudo qemu-system-x86_64 -m 1G --enable-kvm -hda router.qcow2
in VM:
cd /lib/modules/5.0.0+
sudo find . -name *.ko -exec strip --strip-unneeded {} +
sudo update-initramfs -c -k 5.0.0
sudo update-grub
sudo update-grub2
poweroff
To view statistics while the tests are running,
sudo ip netns exec peer-1 ssh [email protected]
watch -n 0.1 "tc -s qdisc show dev ifb-r1r2-0"
ROUGH WORK: make modules_install - standard instead: make INSTALL_MOD_PATH=<path to root (incl router)> modules_install
installs the kernel: make install make INSTALL_PATH=<path to root (incl router)>/boot install
When installing iproute2 in the VM, run
sudo apt-get install --reinstall build-essential
sudo apt-get install bison
sudo apt-get install flex
before running the make
command
Deleting qdisc: sudo tc qdisc del dev ifb-r1r2-0 root
Viewing printk:
dmesg
- print kernel ring buffer