Merge "Allow VMs to access internet"
authorRodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
Thu, 8 Mar 2018 09:54:35 +0000 (09:54 +0000)
committerGerrit Code Review <gerrit@opnfv.org>
Thu, 8 Mar 2018 09:54:35 +0000 (09:54 +0000)
1  2 
ansible/roles/infra_create_vms/tasks/configure_vm.yml

    shell: >
      qemu-img convert -O qcow2 {{ node_item.image }} {{ image_dir+node_item.hostname+'.qcow2' }}
  
- - name: Copy and convert the ubuntu image
+ - name: Resize image
    shell: >
 -    qemu-img resize {{ image_dir+node_item.hostname+'.qcow2' }} {{ node_item.disk }}MB
 +    qemu-img resize {{ image_dir+node_item.hostname+'.qcow2' }} {{ node_item.disk }}M
  
  - name: Define the VMs
    virt: