Comments (9)
To support both Intel and AMD:
if [ -d /sys/module/kvm_intel -a -d /etc/modprobe.d -a ! -f /etc/modprobe.d/kvm-intel.conf ]; then
echo "options kvm-intel nested=1" > /etc/modprobe.d/kvm-intel.conf
rmmod kvm-intel && modprobe kvm-intel || true
fi
if [ -d /sys/module/kvm_amd -a -d /etc/modprobe.d -a ! -f /etc/modprobe.d/kvm-amd.conf ]; then
echo "options kvm-amd nested=1" > /etc/modprobe.d/kvm-amd.conf
rmmod kvm-amd && modprobe kvm-amd || true
fi
To verify:
cat /sys/module/kvm_intel/parameters/nested
from kubevirt-apb.
i'll be a bit picky and suggest modprobe -r instead of rmmod
from kubevirt-apb.
works for me ...
from kubevirt-apb.
i dont get in which container this code should go
from kubevirt-apb.
@karmab can you explain further?
from kubevirt-apb.
@rthallisey sure, you re saying in first comment the following
In order for this to work, the container needs to be a root user and needs to mount in /lib/modules.
and it dont get which container you re talking about:
- the kubevirt ones
- the apb one
from kubevirt-apb.
The kubevirt-apb need to be root and mount /lib/modules.
Switching to Root: https://github.com/ansibleplaybookbundle/kubevirt-apb/pull/19/files#diff-3254677a7917c6c01f55212f86c57fbfL23
from kubevirt-apb.
@rthallisey where is this req coming forom? is it still relevant?
from kubevirt-apb.
closing for now.
from kubevirt-apb.
Related Issues (17)
- Provide RBAC rules for virtualmachines-apb HOT 5
- This APB should consume kubevirt.yaml release HOT 4
- Drop scc creation from the apb HOT 2
- Use an ansible playbook to launch kubevirt-ansible roles HOT 2
- Change storage-cns to storage-glusterfs
- Update Catalog Item Name and Description
- UX Review - minor changes on the configuration step
- change name to kubevirt and display name to virtualization HOT 1
- Fail to deploy kubevirt-apb with ephemeral storage from OCP web console
- Iptables permission denied (you must be root) when provision kubevirt-apb from OCP web console HOT 1
- Don't have interface with glusterfs stroage generated after provisioning kubevirt-apb via web console HOT 3
- Provisioned but no resources found HOT 3
- Apb-base now uses the ansible-running base image HOT 1
- provision fails to create demo-content because of invalid content
- kubevirt-apb need to support CDI deployment as well HOT 1
- Add vmi templates to the apb
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kubevirt-apb.