xci: scripts: vm: Use virtio for disk and network I/O 49/48949/1
authorMarkos Chandras <mchandras@suse.de>
Thu, 14 Dec 2017 11:12:18 +0000 (11:12 +0000)
committerMarkos Chandras <mchandras@suse.de>
Thu, 14 Dec 2017 11:45:48 +0000 (11:45 +0000)
This ensures that the virtio paravirtualization driver is used for both
disk and network I/O which should provide the best performance since we
no longer need to emulate a real bus or driver.

Change-Id: Ic46a38f51b06cb4b848d87d890d23fec022b2f15
Signed-off-by: Markos Chandras <mchandras@suse.de>
xci/scripts/vm/start-new-vm.sh

index 1b5ab03..9b3ee3a 100755 (executable)
@@ -208,7 +208,7 @@ sudo virsh net-list --inactive | grep -q ${NETWORK} && sudo virsh net-start ${NE
 
 echo "Installing virtual machine '${VM_NAME}'..."
 sudo virt-install -n ${VM_NAME} --memory ${MEMORY} --vcpus ${NCPUS} --cpu ${CPU} \
-       --import --disk=${OS_IMAGE_FILE},cache=unsafe --network network=${NETWORK} \
+       --import --disk=${OS_IMAGE_FILE},cache=unsafe,bus=virtio --network network=${NETWORK},model=virtio \
        --graphics none --hvm --noautoconsole
 
 trap destroy_vm_on_failures EXIT