Git Product home page Git Product logo

Comments (9)

mareklibra avatar mareklibra commented on July 22, 2024

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.

karmab avatar karmab commented on July 22, 2024

i'll be a bit picky and suggest modprobe -r instead of rmmod

from kubevirt-apb.

mareklibra avatar mareklibra commented on July 22, 2024

works for me ...

from kubevirt-apb.

karmab avatar karmab commented on July 22, 2024

i dont get in which container this code should go

from kubevirt-apb.

rthallisey avatar rthallisey commented on July 22, 2024

@karmab can you explain further?

from kubevirt-apb.

karmab avatar karmab commented on July 22, 2024

@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.

rthallisey avatar rthallisey commented on July 22, 2024

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.

nellyc avatar nellyc commented on July 22, 2024

@rthallisey where is this req coming forom? is it still relevant?

from kubevirt-apb.

rthallisey avatar rthallisey commented on July 22, 2024

closing for now.

from kubevirt-apb.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.