Skip to content
This repository has been archived by the owner on Sep 18, 2020. It is now read-only.

Commit

Permalink
Merge pull request #813 from bgilbert/qemu
Browse files Browse the repository at this point in the history
build_library: attach virtio-rng-pci; avoid obsolete QEMU syntax
  • Loading branch information
bgilbert committed May 15, 2018
2 parents 72780d8 + 1717709 commit 68af9b0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions build_library/qemu_template.sh
Expand Up @@ -218,8 +218,9 @@ case "${VM_BOARD}" in
qemu-system-x86_64 \
-name "$VM_NAME" \
-m ${VM_MEMORY} \
-net nic,vlan=0,model=virtio \
-net user,vlan=0,hostfwd=tcp::"${SSH_PORT}"-:22,hostname="${VM_NAME}" \
-netdev user,id=eth0,hostfwd=tcp::"${SSH_PORT}"-:22,hostname="${VM_NAME}" \
-device virtio-net-pci,netdev=eth0 \
-object rng-random,filename=/dev/urandom,id=rng0 -device virtio-rng-pci,rng=rng0 \
"$@"
;;
arm64-usr)
Expand All @@ -228,6 +229,7 @@ case "${VM_BOARD}" in
-m ${VM_MEMORY} \
-netdev user,id=eth0,hostfwd=tcp::"${SSH_PORT}"-:22,hostname="${VM_NAME}" \
-device virtio-net-device,netdev=eth0 \
-object rng-random,filename=/dev/urandom,id=rng0 -device virtio-rng-pci,rng=rng0 \
"$@"
;;
*) die "Unsupported arch" ;;
Expand Down

0 comments on commit 68af9b0

Please sign in to comment.