summaryrefslogtreecommitdiffstats
path: root/src/seastar/kvm/scripts/bootstrap.sh
blob: dd0258e3f0f88e916e10f8daf45971459c3d30da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh -e
nmcli c modify eth0 ipv4.ignore-auto-dns "yes"
systemctl restart network
echo nameserver 8.8.8.8 > /etc/resolv.conf
useradd -m -p "" -g wheel seastar
chage -d 0 seastar
yum install -y gcc gcc-c++ libaio-devel ninja-build ragel hwloc-devel numactl-devel libpciaccess-devel cryptopp-devel boost-devel kernel-devel libxml2-devel zlib-devel libasan libubsan git wget python3 tar pciutils xterm
cd /root
wget http://dpdk.org/browse/dpdk/snapshot/dpdk-2.0.0.tar.gz
tar -xpf dpdk-2.0.0.tar.gz
mv dpdk-2.0.0 dpdk
cd dpdk
cat config/common_linuxapp | sed -e "s/CONFIG_RTE_MBUF_REFCNT_ATOMIC=y/CONFIG_RTE_MBUF_REFCNT_ATOMIC=n/g" | sed -e "s/CONFIG_RTE_BUILD_SHARED_LIB=n/CONFIG_RTE_BUILD_SHARED_LIB=y/g" > /tmp/common_linuxapp
mv /tmp/common_linuxapp config
make T=x86_64-native-linuxapp-gcc install
cd -
cd seastar
./configure.py --dpdk-target ~/dpdk/x86_64-native-linuxapp-gcc
ninja-build -j2