Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

/etc/modprobe.d/kvm.conf options

Featured Replies

Hi,

 

I am trying to add the following options to the kvm.conf file in /etc/modprobe.d so that I can enable nested virutalization. 

 

Quote

options kvm_intel nested=1 enable_apicv=n

options kvm ignore_msrs=1

 

It appears the kvm.conf file is overwritten at start-up, and I am having trouble finding where to set these options to be persistent.  Can anyone help me?

 

I am looking to do this so that I am able to deploy three ESXi hosts within KVM on Unraid to create an NSX-T lab.

Edited by xilo

unRaid runs from RAM, and there is no persistent folders anywhere (except for /boot)  You would need to make those changes via appropriate commands within /config/go on the flash drive.

  • Author
3 minutes ago, Squid said:

unRaid runs from RAM, and there is no persistent folders anywhere (except for /boot)  You would need to make those changes via appropriate commands within /config/go on the flash drive.

Thank you for the quick reply!  Could you elaborate a bit on how to make these changes in /config/go?  I'm a bit new to unraid.  I modified the syslinux.cfg file and that seems to be working, but is there a cleaner way to do what i'm looking for?

The go file is a simple bash script that is executed every time you boot the server.  You can add whatever you need to it.  The "preferred" way to however run scripts at startup would be via the user scripts plugin, but I took a wild guess that what you needed would have to be run earlier in the bootup sequence than when user scripts would execute it.

  • Author
4 minutes ago, Squid said:

The go file is a simple bash script that is executed every time you boot the server.  You can add whatever you need to it.  The "preferred" way to however run scripts at startup would be via the user scripts plugin, but I took a wild guess that what you needed would have to be run earlier in the bootup sequence than when user scripts would execute it.

You're right.  I think using syslinux.cfg is probably the easiest way to get what I want.   Thanks for the help and knowledge.

 

For future reference / to aid those ever in this situation, this is my modified statement:

 

Quote

kernel /bzimage
append initrd=/bzroot ixgbe.allow_unsupported_sfp=1 kvm-intel.nested=1 kvm-intel.enable_apicv=0

 

Edited by xilo

  • 2 years later...

Hi,

 

i tried to adopt the suggestions for AMD and apply it at boot time but not working for me:

kernel /bzimage
append initrd=/bzroot kvm-amd.nested=0 kvm-amd.enable_avic=1 kvm-amd.enable_npt=1

 

In unraid avic is always 0 or disabled when checking the features using: "grep -RHE '*' /sys/module/kvm_amd/parameters/"

I would like to enable it and try it.

Any suggestions would be welcome.

Thanks.

13 hours ago, xPliZit_xs said:

kvm-amd.nested=0 kvm-amd.enable_avic=1 kvm-amd.enable_npt=1

Are you sure the names are correct?

From what I found they should be:

kvm-amd.avic=
kvm-amd.npt=
kvm-amd.nested=

 

Check your syslog when booting with your arguments and if they are wrong you should see some logged messages about invalid parameters or something similar; if parameters are wrong they are simply ignored by the kernel.

Edited by ghost82

On 7/22/2022 at 2:49 AM, ghost82 said:

Are you sure the names are correct?

From what I found they should be:

kvm-amd.avic=
kvm-amd.npt=
kvm-amd.nested=

 

Check your syslog when booting with your arguments and if they are wrong you should see some logged messages about invalid parameters or something similar; if parameters are wrong they are simply ignored by the kernel.

 

That was it!!

Thanks so much.

Now running VM's with avic enabled.

  • 10 months later...
On 7/23/2022 at 8:53 AM, xPliZit_xs said:

 

That was it!!

Thanks so much.

Now running VM's with avic enabled.

 

Just for later and reference for others.

Here is the line in UNRAID Syslinux configuration:

 

kernel /bzimage
append initrd=/bzroot kvm-amd.nested=1 kvm-amd.avic=1 kvm-amd.npt=1

 

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.