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
73ef553b
Commit
73ef553b
authored
Sep 09, 2020
by
Antoine Kaufmann
Browse files
experiments: for qemu explicitly specify disk media
For some reason I had a case where it detected the tar as a cdrom
parent
5e061530
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
experiments/common-functions.sh
experiments/common-functions.sh
+2
-2
No files found.
experiments/common-functions.sh
View file @
73ef553b
...
@@ -66,8 +66,8 @@ run_qemu() {
...
@@ -66,8 +66,8 @@ run_qemu() {
#i40e.debug=0x8fffffff
#i40e.debug=0x8fffffff
#hugepages=1024
#hugepages=1024
$QEMU_CMD
-machine
q35
-cpu
host
\
$QEMU_CMD
-machine
q35
-cpu
host
\
-drive
file
=
$img_a
,if
=
ide,index
=
0
\
-drive
file
=
$img_a
,if
=
ide,index
=
0
,media
=
disk
\
-drive
file
=
$img_b
,if
=
ide,index
=
1,driver
=
raw
\
-drive
file
=
$img_b
,if
=
ide,index
=
1,
media
=
disk,
driver
=
raw
\
-kernel
$QEMU_KERNEL
\
-kernel
$QEMU_KERNEL
\
-append
"earlyprintk=ttyS0 console=ttyS0 root=/dev/sda1 init=/home/ubuntu/guestinit.sh rw"
\
-append
"earlyprintk=ttyS0 console=ttyS0 root=/dev/sda1 init=/home/ubuntu/guestinit.sh rw"
\
-serial
mon:stdio
-m
$((
16
*
1024
))
-smp
1
-display
none
-enable-kvm
\
-serial
mon:stdio
-m
$((
16
*
1024
))
-smp
1
-display
none
-enable-kvm
\
...
...
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