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
360bfc3f
Commit
360bfc3f
authored
Sep 13, 2020
by
Antoine Kaufmann
Browse files
experiments: use qemu-img from our compiled qemu
parent
81636e5f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
experiments/common-functions.sh
experiments/common-functions.sh
+4
-3
No files found.
experiments/common-functions.sh
View file @
360bfc3f
...
...
@@ -2,6 +2,7 @@
EHSIM_BASE
=
"
$(
readlink
-f
$(
dirname
${
BASH_SOURCE
[0]
}
)
/..
)
"
QEMU_CMD
=
"
$EHSIM_BASE
/qemu/x86_64-softmmu/qemu-system-x86_64"
QEMU_IMG
=
"
$EHSIM_BASE
/qemu/qemu-img"
GEM5_BASE
=
"
$EHSIM_BASE
/gem5"
NS3_BASE
=
"
$EHSIM_BASE
/ns-3"
...
...
@@ -57,9 +58,9 @@ run_qemu() {
rm
-f
$img_a
$img_b
echo
Creating disk
for
qemu
$1
if
[
-z
"
$4
"
]
;
then
qemu-img
create
-f
qcow2
-o
backing_file
=
$QEMU_IMAGE
$img_a
$QEMU_IMG
create
-f
qcow2
-o
backing_file
=
$QEMU_IMAGE
$img_a
else
qemu-img
create
-f
qcow2
-o
backing_file
=
"
$EHSIM_BASE
/images/output-
$4
/
$4
"
$img_a
$QEMU_IMG
create
-f
qcow2
-o
backing_file
=
"
$EHSIM_BASE
/images/output-
$4
/
$4
"
$img_a
fi
cp
$3
$img_b
echo
Starting qemu
$1
...
...
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