#1108738 virtualbox: bugs 1105784, 1082157 not solved. Folder is created in /etc/modprobe.d and .conf file not used by system

#1108738#5
Date:
2025-07-04 10:22:22 UTC
From:
To:
Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?

        - Install new virtualbox packages from Sid
        - Got error while creating initramfs :

                update-initramfs: Generating /boot/initrd.img-6.12.27-amd64
                libkmod: ERROR: conf_files_filter_out: Directories inside
directories are not supported: /etc/modprobe.d/virtualbox-dkms.conf

   * What exactly did you do (or not do) that was effective (or
     ineffective)?

        - The package create the path with the file /etc/modprobe.d/virtualbox-
dkms.conf/etc/modprobe.d/virtualbox-dkms.conf
        - .conf files have to be in /etc/modprobe.d/*.conf but not in a
subfolder
        - Also, /etc is for user configurations, not system packages. .conf
file have to be installed in /usr/lib/modprobe.d while installed from a
package.

        - I manualy did : mv /etc/modprobe.d/virtualbox-dkms.conf/virtualbox-
dkms.conf /etc/modprobe.d/virtualbox-dkms.conf && rmdir
/etc/modprobe.d/virtualbox-dkms.conf
          as workaround.

   * What was the outcome of this action?

        - My action was successful

   * What outcome did you expect instead?

        - I expect new virtualbox-dkms.conf file installed in
/usr/lib/modprobe.d folder

*** End of the template - remove these template lines ***

#1108738#10
Date:
2026-02-28 18:47:22 UTC
From:
To:
Right, it seems there is a duplicate installed in etc:

```
# dpkg -S /usr/lib/modprobe.d/virtualbox-dkms.conf
virtualbox-dkms: /usr/lib/modprobe.d/virtualbox-dkms.conf
```

```
# cat /usr/lib/modprobe.d/virtualbox-dkms.conf
#
# In kernel 6.12, KVM initializes virtualization on module loading by
# default. This prevents VirtualBox VMs from starting. In order to
# avoid this, block loading kvm module by default.
# (No need to do manually execute modprobe -r kvm_xxx and so on)
# See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1082157
#
options kvm     enable_virt_at_load=0
```

Also:

```
# dpkg -S /etc/modprobe.d/virtualbox-dkms.conf/virtualbox-dkms.modprobe.conf
virtualbox-dkms: /etc/modprobe.d/virtualbox-dkms.conf/virtualbox-dkms.modprobe.conf
```

```
# cat /etc/modprobe.d/virtualbox-dkms.conf/virtualbox-dkms.modprobe.conf
#
# In kernel 6.12, KVM initializes virtualization on module loading by
# default. This prevents VirtualBox VMs from starting. In order to
# avoid this, block loading kvm module by default.
# (No need to do manually execute modprobe -r kvm_xxx and so on)
# See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1082157
#
options kvm     enable_virt_at_load=0
```