1
0
Fork 0

enable nested virtualization

This commit is contained in:
Massaki Archambault 2021-11-21 02:14:25 -05:00
parent c12bdd4855
commit 7fe8780f87
3 changed files with 9 additions and 2 deletions

View File

@ -0,0 +1 @@
options kvm_intel nested=1

View File

@ -47,9 +47,15 @@
line: 'MODULES=(vfio_pci vfio vfio_iommu_type1 vfio_virqfd i915)' line: 'MODULES=(vfio_pci vfio vfio_iommu_type1 vfio_virqfd i915)'
notify: regenerate linux initramfs notify: regenerate linux initramfs
- name: configure vfio-pci device ids - name: configure kvm kernel module
copy:
src: modprobe/kvm.conf
dest: /etc/modprobe.d/kvm.conf
notify: regenerate linux initramfs
- name: configure vfio-pci kernel module
template: template:
src: vfio.conf.j2 src: modprobe/vfio.conf.j2
dest: /etc/modprobe.d/vfio.conf dest: /etc/modprobe.d/vfio.conf
notify: regenerate linux initramfs notify: regenerate linux initramfs