Skip to content

Commit

Permalink
test_env.sh: set initrd and be able to append kernel params
Browse files Browse the repository at this point in the history
  • Loading branch information
domenkozar committed Apr 30, 2016
1 parent 38d4585 commit e78b8b2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/program/snabbnfv/test_env/test_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,15 @@ function launch_qemu {
if [ ! -n $QUEUES ]; then
export mqueues=",queues=$QUEUES"
fi
if [ -e $assets/initrd ]; then
export QEMU_ARGS="-initrd $assets/initrd $QEMU_ARGS"
fi
tmux_launch \
"qemu$qemu_n" \
"numactl --cpunodebind=$(pci_node $1) --membind=$(pci_node $1) \
$QEMU \
$QEMU $QEMU_ARGS \
-kernel $assets/$4 \
-append \"earlyprintk root=/dev/vda rw console=ttyS0 ip=$(ip $qemu_n)\" \
-append \"earlyprintk root=/dev/vda $SNABB_KERNEL_PARAMS rw console=ttyS0 ip=$(ip $qemu_n)\" \
-m $GUEST_MEM -numa node,memdev=mem -object memory-backend-file,id=mem,size=${GUEST_MEM}M,mem-path=$HUGETLBFS,share=on \
-netdev type=vhost-user,id=net0,chardev=char0${mqueues} -chardev socket,id=char0,path=$2,server \
-device virtio-net-pci,netdev=net0,mac=$(mac $qemu_n),mq=$qemu_mq,vectors=$qemu_vectors \
Expand Down

0 comments on commit e78b8b2

Please sign in to comment.