From ee4f24bbb9760fb524fd5cbac763b8b84b122123 Mon Sep 17 00:00:00 2001 From: Lucas Alvares Gomes Date: Mon, 14 Dec 2015 18:34:54 +0000 Subject: [PATCH] Change the libvirt NIC driver to virtio Change the libvirt NIC driver from e1000 to virtio for performance reasons. Change-Id: Iaa546d60755f4edd77fbcf32b95efce11328e918 --- devstack/tools/ironic/scripts/configure-vm.py | 2 +- devstack/tools/ironic/scripts/create-node.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/devstack/tools/ironic/scripts/configure-vm.py b/devstack/tools/ironic/scripts/configure-vm.py index 2d5a9adf17..4fc2528138 100755 --- a/devstack/tools/ironic/scripts/configure-vm.py +++ b/devstack/tools/ironic/scripts/configure-vm.py @@ -60,7 +60,7 @@ def main(): help="What boot device to use (hd/network).") parser.add_argument('--network', default="brbm", help='The libvirt network name to use') - parser.add_argument('--libvirt-nic-driver', default='e1000', + parser.add_argument('--libvirt-nic-driver', default='virtio', help='The libvirt network driver to use') parser.add_argument('--console-log', help='File to log console') diff --git a/devstack/tools/ironic/scripts/create-node.sh b/devstack/tools/ironic/scripts/create-node.sh index a7c8fce462..9f0c6de6a4 100755 --- a/devstack/tools/ironic/scripts/create-node.sh +++ b/devstack/tools/ironic/scripts/create-node.sh @@ -26,7 +26,7 @@ BRIDGE=$6 EMULATOR=$7 LOGDIR=$8 -LIBVIRT_NIC_DRIVER=${LIBVIRT_NIC_DRIVER:-"e1000"} +LIBVIRT_NIC_DRIVER=${LIBVIRT_NIC_DRIVER:-"virtio"} LIBVIRT_STORAGE_POOL=${LIBVIRT_STORAGE_POOL:-"default"} LIBVIRT_CONNECT_URI=${LIBVIRT_CONNECT_URI:-"qemu:///system"}