Adjust start-qemu to use scsi explicitly (and virtio-net)
This commit is contained in:
parent
c82ccf92b6
commit
103efc2fc8
11
start-qemu
11
start-qemu
|
@ -47,7 +47,12 @@ if [ -n "${QEMU_HDA:-}" ]; then
|
|||
fi
|
||||
# http://wiki.qemu.org/download/qemu-doc.html#Invocation
|
||||
#qemuArgs+=( -hda "$QEMU_HDA" )
|
||||
qemuArgs+=( -drive file="$QEMU_HDA",index=0,media=disk,discard=unmap )
|
||||
#qemuArgs+=( -drive file="$QEMU_HDA",index=0,media=disk,discard=unmap )
|
||||
qemuArgs+=(
|
||||
-drive file=arm32v7.qcow2,index=0,media=disk,discard=unmap,detect-zeroes=unmap,if=none,id=hda
|
||||
-device virtio-scsi-device
|
||||
-device scsi-hd,drive=hda
|
||||
)
|
||||
fi
|
||||
|
||||
if [ -n "${QEMU_CDROM:-}" ]; then
|
||||
|
@ -69,8 +74,8 @@ for port in "${qemuPorts[@]}"; do
|
|||
done
|
||||
|
||||
qemuArgs+=(
|
||||
-net nic
|
||||
-net "$netArg"
|
||||
-netdev "$netArg,id=net"
|
||||
-device virtio-net-device,netdev=net
|
||||
-vnc ':0'
|
||||
)
|
||||
if [ -z "${QEMU_NO_SERIAL:-}" ]; then
|
||||
|
|
Loading…
Reference in New Issue
Block a user