diff --git a/roles/create-vm/tasks/main.yml b/roles/create-vm/tasks/main.yml index 946994c..1494433 100644 --- a/roles/create-vm/tasks/main.yml +++ b/roles/create-vm/tasks/main.yml @@ -69,5 +69,12 @@ command: genisoimage -output {{ images_dir }}/{{ vmname }}-cidata.iso -V cidata -r -J {{ images_dir }}/user-data {{ images_dir }}/meta-data become: true +- name: make sure setuid for qemu-bridge-helper is set + file: + path: /usr/lib/qemu/qemu-bridge-helper + mode: 04755 + become: true + + - name: Create the VM command: virt-install --name={{ vmname }} --ram={{ ram }} --vcpus={{ vcpus }} --import --disk path={{ images_dir }}{{ vmname }}.img,format=qcow2 --disk path={{ images_dir }}{{ vmname }}-cidata.iso,device=cdrom --os-variant {{ os }} --network bridge=br0,model=virtio --graphics vnc,listen=0.0.0.0 --noautoconsole