-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathgenimages.sh
executable file
·48 lines (35 loc) · 1.48 KB
/
genimages.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/bash
set -x
IMAGES=$(pwd)/images
source ../common/build.sh
rm -rf $IMAGES
mkdir -p $IMAGES
# ========================================================================
# Firecracker binary
# ========================================================================
CONTAINER=instvmm-tmp
# kill zombies
docker container stop $CONTAINER
docker rm -f $CONTAINER
sleep 3
docker pull hlefeuvre/instrumented-vmms:latest
docker run --rm --privileged --name=$CONTAINER \
-dt hlefeuvre/instrumented-vmms
docker cp ${CONTAINER}:/root/firecracker ${IMAGES}/firecracker
docker cp ${CONTAINER}:/root/qemu ${IMAGES}/qemu
docker container stop $CONTAINER
docker rm -f $CONTAINER
# ========================================================================
# Generate KVM images
# ========================================================================
unikraft_eurosys21_build helloworld stat $IMAGES
mv $IMAGES/unikraft+stat.kernel $IMAGES/unikraft+qemu.kernel
unikraft_eurosys21_build helloworld qemu1nic $IMAGES
# ========================================================================
# Generate Solo5 images
# ========================================================================
unikraft_eurosys21_build_wvmm helloworld solo5 $IMAGES solo5
# ========================================================================
# Generate Firecracker images
# ========================================================================
unikraft_eurosys21_build_wvmm helloworld-boottime-fc firecracker $IMAGES kvmfc