allways setuid before virt-install
This commit is contained in:
parent
fcc1a5ab9f
commit
67c9db90a0
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue