Install cdemu/vhba

Hello,

  • OpenMandriva Lx version:
    ROME

  • Desktop environment (KDE, LXQT…):
    KDE

  • Description of the issue (screenshots if relevant):
    I used dnfdragora to install gcdemu, but the required kernel module doesn’t seem to built after reboot

$ cdemu-daemon
Starting CDEmu daemon with following parameters:
 - config file: (null) (exists: 0)
 - num devices: 1
 - control device: /dev/vhba_ctl
 - audio driver: null
 - bus type: session
 - default CDEmu debug mask: 0x0
 - default libMirage debug mask: 0x0

Using cross-namespace EXTERNAL authentication (this will deadlock if server is GDBus < 2.73.3)cdemu0: Kernel I/O: failed to open control device /dev/vhba_ctl: No such file or directory!
cdemu: Daemon: failed to start device #0!
cdemu: Daemon: failed to create device!
Daemon initialization and start failed!
$ sudo modprobe dkms-vhba
modprobe: FATAL: Module dkms-vhba not found in directory /lib/modules/6.14.0-desktop-0.rc3.1omv2590
$ sudo modprobe vhba
modprobe: FATAL: Module vhba not found in directory /lib/modules/6.14.0-desktop-0.rc3.1omv2590
$ sudo dnf install dkms-vhba
Last metadata expiration check: 21:29:26 ago on Sun 02 Mar 2025 04:12:04 PM PST.
Package dkms-vhba-20240917-1.noarch is already installed.
Dependencies resolved.
Nothing to do.
Complete!
$ rpm -ql dkms-vhba.noarch
/usr/src/vhba-20240917-1
/usr/src/vhba-20240917-1/AUTHORS
/usr/src/vhba-20240917-1/COPYING
/usr/src/vhba-20240917-1/ChangeLog
/usr/src/vhba-20240917-1/INSTALL
/usr/src/vhba-20240917-1/Makefile
/usr/src/vhba-20240917-1/NEWS
/usr/src/vhba-20240917-1/README
/usr/src/vhba-20240917-1/dkms.conf
/usr/src/vhba-20240917-1/vhba.c
  • Relevant informations (hardware involved, software version, logs or output…):

I would recommend uninstalling it using dnf

sudo dnf remove dkms-vhba

Then re-install the package using dnf

sudo dnf install dkms-vhba

If that doesn’t fix your issue, let me know and I’ll look into it further.

1 Like

I should’ve though of trying that, it gave me more info.

Downloading Packages:
dkms-vhba-20240917-1-omv2490.noarch.rpm                          19 kB/s |  23 kB     00:01    
------------------------------------------------------------------------------------------------
Total                                                            19 kB/s |  23 kB     00:01     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                        1/1 
  Installing       : dkms-vhba-20240917-1.noarch                                            1/1 
  Running scriptlet: dkms-vhba-20240917-1.noarch                                            1/1 
Creating symlink /var/lib/dkms/vhba/20240917-1/source -> /usr/src/vhba-20240917-1

Sign command: /lib/modules/6.14.0-desktop-0.rc3.1omv2590/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub

Cleaning build area... done.
Building module(s)...(bad exit status: 2)
Failed command:
make -j14 KERNELRELEASE=6.14.0-desktop-0.rc3.1omv2590 KDIR=/lib/modules/6.14.0-desktop-0.rc3.1omv2590/build LLVM=1

Error! Bad return status for module build on kernel: 6.14.0-desktop-0.rc3.1omv2590 (x86_64)
Consult /var/lib/dkms/vhba/20240917-1/build/make.log for more information.


Installed:
  dkms-vhba-20240917-1.noarch                                                                   

Complete!
$ cat /var/lib/dkms/vhba/20240917-1/build/make.log
DKMS make.log for vhba/20240917-1 for kernel 6.14.0-desktop-0.rc3.1omv2590 (x86_64)
Tue Mar  4 11:49:54 AM PST 2025
make -C /lib/modules/6.14.0-desktop-0.rc3.1omv2590/build M=/var/lib/dkms/vhba/20240917-1/build modules
make[1]: Entering directory '/usr/src/linux-6.14.0-desktop-0.rc3.1omv2590'
make[2]: Entering directory '/var/lib/dkms/vhba/20240917-1/build'
  CC [M]  vhba.o
vhba.c:541:25: error: use of undeclared identifier 'BLK_TAG_ALLOC_RR'
  541 |     .tag_alloc_policy = BLK_TAG_ALLOC_RR,
      |                         ^
1 error generated.
make[4]: *** [/usr/src/linux-6.14.0-desktop-0.rc3.1omv2590/scripts/Makefile.build:207: vhba.o] Error 1
make[3]: *** [/usr/src/linux-6.14.0-desktop-0.rc3.1omv2590/Makefile:1989: .] Error 2
make[2]: *** [/usr/src/linux-6.14.0-desktop-0.rc3.1omv2590/Makefile:251: __sub-make] Error 2
make[2]: Leaving directory '/var/lib/dkms/vhba/20240917-1/build'
make[1]: *** [Makefile:251: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-6.14.0-desktop-0.rc3.1omv2590'
make: *** [Makefile:14: modules] Error 2

The problem was that vhba does not yet officially support the new 6.14rc kernel.

I added a patch from upstream and as soon as the updated version of vhba ( 20240917-3) appears in the rolling repository you will be able to install it

3 Likes

The joys of running a rolling release