|
|
@ -27,13 +27,9 @@ trap cleanup INT TERM EXIT
|
|
|
|
# the path to debian-$DEFAULT_DIST.qcow must be absolute or otherwise qemu will
|
|
|
|
# the path to debian-$DEFAULT_DIST.qcow must be absolute or otherwise qemu will
|
|
|
|
# look for the path relative to debian-$DEFAULT_DIST-overlay.qcow
|
|
|
|
# look for the path relative to debian-$DEFAULT_DIST-overlay.qcow
|
|
|
|
qemu-img create -f qcow2 -b "$(realpath $cachedir)/debian-$DEFAULT_DIST.qcow" "$tmpdir/debian-$DEFAULT_DIST-overlay.qcow"
|
|
|
|
qemu-img create -f qcow2 -b "$(realpath $cachedir)/debian-$DEFAULT_DIST.qcow" "$tmpdir/debian-$DEFAULT_DIST-overlay.qcow"
|
|
|
|
KVM=
|
|
|
|
|
|
|
|
if [ -e /dev/kvm ]; then
|
|
|
|
|
|
|
|
KVM="-enable-kvm"
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
# to connect to serial use:
|
|
|
|
# to connect to serial use:
|
|
|
|
# minicom -D 'unix#/tmp/ttyS0'
|
|
|
|
# minicom -D 'unix#/tmp/ttyS0'
|
|
|
|
qemu-system-x86_64 $KVM -m 1G -nographic \
|
|
|
|
qemu-system-x86_64 -M accel=kvm:tcg -m 1G -nographic \
|
|
|
|
-monitor unix:/tmp/monitor,server,nowait \
|
|
|
|
-monitor unix:/tmp/monitor,server,nowait \
|
|
|
|
-serial unix:/tmp/ttyS0,server,nowait \
|
|
|
|
-serial unix:/tmp/ttyS0,server,nowait \
|
|
|
|
-serial unix:/tmp/ttyS1,server,nowait \
|
|
|
|
-serial unix:/tmp/ttyS1,server,nowait \
|
|
|
|