rmohr / qemu-dockerized

test
Apache License 2.0
2 stars 2 forks source link

I want to have possibility to send QEMU parameters via CLI #3

Closed cynepco3hahue closed 6 years ago

cynepco3hahue commented 6 years ago

For example it possible that you need more that 3Gi of memory, but to change it you need to edit QEMU command.

rmohr commented 6 years ago

Definitely. I guess I can make memory and cpu configurable, keep a static part and allow adding arbitrary extra qemu arguments.

rmohr commented 6 years ago

To illustrate the principle:

qemu-kvm -drive format=qcow2,file=${DISK}  \
  -device e1000,netdev=network0,mac=52:55:00:d1:55:${n} \
  -netdev tap,id=network0,ifname=tap${n},script=no,downscript=no \
  -vnc :${n} -enable-kvm -cpu host -m ${MEMORY} "$@"

Memory would be supplyable fia an env, the rest would go to qemu via "$@" after the static/generated part

cynepco3hahue commented 6 years ago

I think the additional useful item can be disk size.