allways setuid before virt-install

This commit is contained in:
Carl Suckfuell 2022-06-20 17:09:12 +02:00
parent fcc1a5ab9f
commit 67c9db90a0

View file

@ -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