MCP: patches: AArch64: Add initial support
[armband.git] / patches / opnfv-fuel / 0001-mcp-config-AArch64-Use-UEFI-arm64-image.patch
1 From: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2 Date: Tue, 11 Jul 2017 18:24:24 +0200
3 Subject: [PATCH] mcp/config: AArch64: Use UEFI arm64 image
4
5 Also, allow removal of VMs booted via guest UEFI (OVMF or AAVMF).
6 While at it, bump default vCPU number from 2 to 6.
7
8 Signed-off-by: Guillermo Herrero <Guillermo.Herrero@enea.com>
9 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
10 ---
11  mcp/config/defaults.yaml | 4 ++--
12  mcp/scripts/lib.sh       | 4 ++--
13  2 files changed, 4 insertions(+), 4 deletions(-)
14
15 diff --git a/mcp/config/defaults.yaml b/mcp/config/defaults.yaml
16 index b841e88..17fbbfc 100644
17 --- a/mcp/config/defaults.yaml
18 +++ b/mcp/config/defaults.yaml
19 @@ -1,6 +1,6 @@
20 -base_image: https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img
21 +base_image: https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-arm64-uefi1.img
22  virtual:
23    default:
24 -    vcpus: 2
25 +    vcpus: 6
26      ram: 4096
27
28 diff --git a/mcp/scripts/lib.sh b/mcp/scripts/lib.sh
29 index b3abd21..b2998e0 100644
30 --- a/mcp/scripts/lib.sh
31 +++ b/mcp/scripts/lib.sh
32 @@ -18,7 +18,7 @@ cleanup_vms() {
33    # clean up existing nodes
34    for node in $(virsh list --name | grep -P '\w{3}\d{2}'); do
35      virsh destroy $node
36 -    virsh undefine $node
37 +    virsh undefine --nvram $node
38    done
39  }
40
41 @@ -57,7 +57,7 @@ create_vms() {
42
43    # create vms with specified options
44    for node in "${vnodes[@]}"; do
45 -    virt-install --name ${node} --ram ${vnodes_ram[$node]} --vcpus=2 --cpu host --accelerate \
46 +    virt-install --name ${node} --ram ${vnodes_ram[$node]} --vcpus=6 --cpu host --accelerate \
47      --network network:pxe,model=virtio \
48      --network network:mgmt,model=virtio \
49      --network network:internal,model=virtio \