Skip to content

Commit d49930f

Browse files
committed
add script to test launching an image in a vm
1 parent 8253948 commit d49930f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test_image.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
image_file="${1}"
4+
5+
qemu-system-x86_64 \
6+
-nographic \
7+
-enable-kvm \
8+
-cpu host \
9+
-smp 4 \
10+
-m 4096 \
11+
-drive "file=${image_file},snapshot=on,cache=none,if=virtio"

0 commit comments

Comments
 (0)