Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ycai
simbricks
Commits
fdb50e3f
Commit
fdb50e3f
authored
Sep 15, 2020
by
Antoine Kaufmann
Browse files
images: add tas image
parent
c63197c0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
102 additions
and
1 deletion
+102
-1
images/Makefile
images/Makefile
+8
-1
images/scripts/install-tas.sh
images/scripts/install-tas.sh
+22
-0
images/tas.json
images/tas.json
+72
-0
No files found.
images/Makefile
View file @
fdb50e3f
...
@@ -5,7 +5,8 @@ UBUNTU_IMAGE := output-ubuntu1804/ubuntu1804
...
@@ -5,7 +5,8 @@ UBUNTU_IMAGE := output-ubuntu1804/ubuntu1804
BASE_IMAGE
:=
output-base/base
BASE_IMAGE
:=
output-base/base
NOPAXOS_IMAGE
:=
output-nopaxos/nopaxos
NOPAXOS_IMAGE
:=
output-nopaxos/nopaxos
MTCP_IMAGE
:=
output-mtcp/mtcp
MTCP_IMAGE
:=
output-mtcp/mtcp
IMAGES
:=
$(BASE_IMAGE)
$(NOPAXOS_IMAGE)
$(MTCP_IMAGE)
TAS_IMAGE
:=
output-tas/tas
IMAGES
:=
$(BASE_IMAGE)
$(NOPAXOS_IMAGE)
$(MTCP_IMAGE)
$(TAS_IMAGE)
RAW_IMAGES
:=
$(
addsuffix
.raw,
$(IMAGES)
)
RAW_IMAGES
:=
$(
addsuffix
.raw,
$(IMAGES)
)
QEMU_IMG
:=
../qemu/qemu-img
QEMU_IMG
:=
../qemu/qemu-img
...
@@ -17,6 +18,7 @@ clean:
...
@@ -17,6 +18,7 @@ clean:
mqnic/mqnic.ko mqnic/
*
.o mqnic/.
*
.cmd mqnic/mqnic.mod.c
\
mqnic/mqnic.ko mqnic/
*
.o mqnic/.
*
.cmd mqnic/mqnic.mod.c
\
mqnic/Module.symvers mqnic/modules.order
\
mqnic/Module.symvers mqnic/modules.order
\
output-ubuntu1804 output-base output-mtcp output-nopaxos
\
output-ubuntu1804 output-base output-mtcp output-nopaxos
\
output-tas
\
kernel/linux-
$(KERNEL_VERSION)
/ kheaders.tar.bz2
kernel/linux-
$(KERNEL_VERSION)
/ kheaders.tar.bz2
################################################
################################################
...
@@ -48,6 +50,11 @@ $(MTCP_IMAGE): mtcp.json packer $(BASE_IMAGE) scripts/install-mtcp.sh
...
@@ -48,6 +50,11 @@ $(MTCP_IMAGE): mtcp.json packer $(BASE_IMAGE) scripts/install-mtcp.sh
./packer-wrap.sh build mtcp.json
./packer-wrap.sh build mtcp.json
touch
$@
touch
$@
$(TAS_IMAGE)
:
tas.json packer $(BASE_IMAGE) scripts/install-tas.sh
rm
-rf
output-tas
./packer-wrap.sh build tas.json
touch
$@
packer
:
packer
:
wget https://releases.hashicorp.com/packer/
$(PACKER_VERSION)
/packer_
$(PACKER_VERSION)
_linux_amd64.zip
wget https://releases.hashicorp.com/packer/
$(PACKER_VERSION)
/packer_
$(PACKER_VERSION)
_linux_amd64.zip
unzip packer_
$(PACKER_VERSION)
_linux_amd64.zip
unzip packer_
$(PACKER_VERSION)
_linux_amd64.zip
...
...
images/scripts/install-tas.sh
0 → 100644
View file @
fdb50e3f
#!/bin/bash -eux
set
-eux
apt-get
-y
install
libnuma-dev libgmp-dev bc python
cd
/root/
wget http://deb.debian.org/debian/pool/main/d/dpdk/dpdk_18.11.8.orig.tar.xz
tar
xf dpdk_18.11.8.orig.tar.xz
cd
dpdk-stable-18.11.8
make
-j4
install
T
=
x86_64-native-linuxapp-gcc
DESTDIR
=
/root/dpdk
cd
..
rm
-rf
dpdk-
*
git clone https://github.com/tcp-acceleration-service/tas.git /root/tas
cd
/root/tas
make
-j4
RTE_SDK
=
/root/dpdk
git clone https://github.com/FreakyPenguin/benchmarks.git /root/tasbench
cd
/root/tasbench/micro_rpc
make echoserver_linux testclient_linux
TAS_CODE
=
"/root/tas"
echo
"blacklist i40e"
>
/etc/modprobe.d/i40e_bl.conf
images/tas.json
0 → 100644
View file @
fdb50e3f
{
"_comment"
:
"Build with `packer build ubuntu.json`"
,
"builders"
:
[
{
"iso_urls"
:
[
"output-base/base"
],
"iso_checksum"
:
"none"
,
"disk_image"
:
"true"
,
"use_backing_file"
:
"true"
,
"headless"
:
"{{ user `headless` }}"
,
"disable_vnc"
:
"false"
,
"output_directory"
:
"output-{{ user `vm_name` }}"
,
"qemuargs"
:
[
[
"-m"
,
"{{ user `memory` }}"
],
[
"-display"
,
"none"
],
[
"-machine"
,
"accel=kvm"
],
[
"-cpu"
,
"host"
],
[
"-smp"
,
"cpus={{ user `cpus`}}"
],
[
"-serial"
,
"mon:stdio"
]
],
"shutdown_command"
:
"echo '{{ user `ssh_password` }}'|sudo -S shutdown -P now"
,
"ssh_password"
:
"{{ user `ssh_password` }}"
,
"ssh_timeout"
:
"10000s"
,
"ssh_username"
:
"{{ user `ssh_username` }}"
,
"type"
:
"qemu"
,
"vm_name"
:
"{{ user `vm_name` }}"
}
],
"provisioners"
:
[
{
"execute_command"
:
"echo '{{ user `ssh_password` }}' | {{.Vars}} sudo -E -S bash '{{.Path}}'"
,
"scripts"
:
[
"scripts/install-tas.sh"
],
"type"
:
"shell"
}
],
"variables"
:
{
"cleanup_pause"
:
""
,
"cpus"
:
"4"
,
"custom_script"
:
"."
,
"desktop"
:
"false"
,
"disk_size"
:
"10000"
,
"headless"
:
""
,
"hostname"
:
"vagrant"
,
"memory"
:
"4096"
,
"preseed"
:
"preseed.cfg"
,
"ssh_fullname"
:
"vagrant"
,
"ssh_password"
:
"ubuntu"
,
"ssh_username"
:
"ubuntu"
,
"vagrantfile_template"
:
""
,
"version"
:
"0.1.0"
,
"vm_name"
:
"tas"
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment