diff options
author | Alexandru Avadanii <Alexandru.Avadanii@enea.com> | 2017-07-21 20:02:14 +0200 |
---|---|---|
committer | Alexandru Avadanii <Alexandru.Avadanii@enea.com> | 2017-07-21 20:03:23 +0200 |
commit | 5f29466a9eece85c13b53100ca4ef980f9e7660c (patch) | |
tree | 3fd21389dc3c601207ea05dee71b829094071a7a /patches/opnfv-fuel | |
parent | 28b86f89f750d93a4e7c995f4b931ad004f11f8e (diff) |
p/fuel: lib.sh: Use host-passthrough CPU model
Fix libvirt 3.x compatibility issues by explicitly setting the CPU
model to host-passthrough via virt-install.
Change-Id: I0e52cbabb0bf42b36dd2b9b5045dc18878e21884
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
Diffstat (limited to 'patches/opnfv-fuel')
4 files changed, 32 insertions, 3 deletions
diff --git a/patches/opnfv-fuel/0001-mcp-config-AArch64-Use-UEFI-arm64-image.patch b/patches/opnfv-fuel/0001-mcp-config-AArch64-Use-UEFI-arm64-image.patch index 48981c3c..bd647e0c 100644 --- a/patches/opnfv-fuel/0001-mcp-config-AArch64-Use-UEFI-arm64-image.patch +++ b/patches/opnfv-fuel/0001-mcp-config-AArch64-Use-UEFI-arm64-image.patch @@ -26,7 +26,7 @@ index b841e88..17fbbfc 100644 ram: 4096 diff --git a/mcp/scripts/lib.sh b/mcp/scripts/lib.sh -index 679b997..af57dcc 100644 +index 1848c70..c315323 100644 --- a/mcp/scripts/lib.sh +++ b/mcp/scripts/lib.sh @@ -18,7 +18,7 @@ cleanup_vms() { diff --git a/patches/opnfv-fuel/0002-lib.sh-AArch64-Use-VGA-video-mode-for-guests.patch b/patches/opnfv-fuel/0002-lib.sh-AArch64-Use-VGA-video-mode-for-guests.patch index 8c6e8f57..4ab98b5f 100644 --- a/patches/opnfv-fuel/0002-lib.sh-AArch64-Use-VGA-video-mode-for-guests.patch +++ b/patches/opnfv-fuel/0002-lib.sh-AArch64-Use-VGA-video-mode-for-guests.patch @@ -35,7 +35,7 @@ index a1f5e38..92c7947 100755 # Check scenario file existence if [[ ! -f ../config/${DEPLOY_SCENARIO}.yaml ]]; then diff --git a/mcp/scripts/lib.sh b/mcp/scripts/lib.sh -index af57dcc..245a8f4 100644 +index c315323..862fdcc 100644 --- a/mcp/scripts/lib.sh +++ b/mcp/scripts/lib.sh @@ -56,6 +56,13 @@ create_vms() { diff --git a/patches/opnfv-fuel/0003-lib.sh-AArch64-virt-install-Use-virtio-net-pci.patch b/patches/opnfv-fuel/0003-lib.sh-AArch64-virt-install-Use-virtio-net-pci.patch index 6c32aa14..c49bddec 100644 --- a/patches/opnfv-fuel/0003-lib.sh-AArch64-virt-install-Use-virtio-net-pci.patch +++ b/patches/opnfv-fuel/0003-lib.sh-AArch64-virt-install-Use-virtio-net-pci.patch @@ -34,7 +34,7 @@ Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com> 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/mcp/scripts/lib.sh b/mcp/scripts/lib.sh -index 245a8f4..5fcecbd 100644 +index 862fdcc..7c4c46f 100644 --- a/mcp/scripts/lib.sh +++ b/mcp/scripts/lib.sh @@ -58,24 +58,36 @@ create_vms() { diff --git a/patches/opnfv-fuel/0008-lib.sh-Use-host-passthrough-when-spawning-VMs.patch b/patches/opnfv-fuel/0008-lib.sh-Use-host-passthrough-when-spawning-VMs.patch new file mode 100644 index 00000000..88793337 --- /dev/null +++ b/patches/opnfv-fuel/0008-lib.sh-Use-host-passthrough-when-spawning-VMs.patch @@ -0,0 +1,29 @@ +From: Alexandru Avadanii <Alexandru.Avadanii@enea.com> +Date: Fri, 21 Jul 2017 19:59:33 +0200 +Subject: [PATCH] lib.sh: Use host-passthrough when spawning VMs + +virsh defaults to using "host-model" instead of "host-passthrough", +which not only might lead to a small performance hit on x86, it is +also causing compatibility issues with libvirt 3.x. + +Address this by explicitly requesting "host-passthrough" as the +CPU model for virt-install. + +Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com> +--- + mcp/scripts/lib.sh | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/mcp/scripts/lib.sh b/mcp/scripts/lib.sh +index 7c4c46f..2be3e65 100644 +--- a/mcp/scripts/lib.sh ++++ b/mcp/scripts/lib.sh +@@ -69,7 +69,7 @@ create_vms() { + + # create vms with specified options + for node in "${vnodes[@]}"; do +- virt-install --name ${node} --ram ${vnodes_ram[$node]} --vcpus ${vnodes_vcpus[$node]} --cpu host --accelerate \ ++ virt-install --name ${node} --ram ${vnodes_ram[$node]} --vcpus ${vnodes_vcpus[$node]} --cpu host-passthrough --accelerate \ + --network network:pxe,model=${virt_pxe_net_model} \ + --network network:mgmt,model=${virt_net_model} \ + --network network:internal,model=${virt_net_model} \ |