Commit 9c5f096d authored by Thomas Gambier's avatar Thomas Gambier 🚴🏼 Committed by Rafael Monnerat

create tap = True and allow nested VMs on all vifib servers

this is needed for all servers hosting VMs. As we don't really know which server are hosting VM, we do it on all vifib servers.

/cc @alain.takoudjou @rafael @guillaume.hervier

/reviewed-on !82
parent 1e75f6b9
--- ---
- modprobe: name=kvm_intel state=present - modprobe: name=kvm_intel state=present params='nested=Y'
ignore_errors: True ignore_errors: True
- pause: seconds=2 - pause: seconds=2
...@@ -24,3 +24,11 @@ ...@@ -24,3 +24,11 @@
- name: Set 666 on /dev/vhost-net - name: Set 666 on /dev/vhost-net
shell: chmod 666 /dev/vhost-net shell: chmod 666 /dev/vhost-net
when: dev_vhost.stat.exists == True when: dev_vhost.stat.exists == True
- name: Check if configuration exists already
stat: path=/etc/opt/slapos/slapos.cfg
register: xslapos_cfg
- name: Force create_tap to be true
shell: sed -i 's/^create_tap =.*/create_tap = True/' /etc/opt/slapos/slapos.cfg
when: xslapos_cfg.stat.exists == True
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment