Enable nested virtualization by default

* Add configure kernel parameter `kvm-intel nested=y`
* Configure nova to use kvm host-passthrough libvirt driver.

Change-Id: I8e3b6c6adedb4db481981e2ce4f4721b9f30f511
This commit is contained in:
Evgeny L 2019-04-12 19:38:08 +00:00 committed by Kaspars Skels
parent 2ed2a37124
commit 160c04ebb3
2 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,23 @@
---
schema: 'drydock/BootAction/v1'
metadata:
schema: 'metadata/Document/v1'
name: nested-virt
labels:
name: nested-virt-global
application: 'drydock'
layeringDefinition:
abstract: false
layer: global
storagePolicy: 'cleartext'
data:
signaling: false
assets:
- path: /etc/modprobe.d/nested-virt.conf
type: file
permissions: '644'
data_pipeline:
- utf8_decode
data: |
options kvm-intel nested=y
...

View File

@ -337,6 +337,10 @@ data:
configmap: tenant-ceph-etc
user_secret_name: pvc-tceph-client-key
conf:
nova:
libvirt:
cpu_mode: 'host-passthrough'
virt_type: kvm
logging:
loggers:
keys: