CDEmu how to start?

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

CDEmu how to start?

Postby arelatensis » Feb 12th, '12, 16:11

Hi all! I installed CDEmu? but I can not start it. CDEmu applet in GNOME panel indicates that CDEmu daemon is inactive.
By attempting to start this daemon through command line mode in console, the output is as such:
$ /usr/bin/cdemud
Starting daemon in local mode with following parameters:
- num devices: 1
- ctl device: /dev/vhba_ctl
- audio driver: null
- bus type: session

cdemu0: Device: failed to open control device /dev/vhba_ctl!
cdemud: Daemon: failed to initialize device 0!
Daemon initialization failed: Device initialization failed.

And in su mode:

# /usr/bin/cdemud
Starting daemon in local mode with following parameters:
- num devices: 1
- ctl device: /dev/vhba_ctl
- audio driver: null
- bus type: session

cdemud: Daemon: failed to get session bus!
Daemon initialization failed: Failed to connect to D-BUS bus.

More over by starting GNOME I get such notification:

Failed to connect: org.freedesktop.DBus.Error.Spawn.ChildExited: Process /usr/lib/cdemud-dbus-service exited with status 1.

Thanks
User avatar
arelatensis
 
Posts: 18
Joined: Feb 12th, '12, 15:42

Re: CDEmu how to start?

Postby djennings » Feb 12th, '12, 16:16

I do not know anything about CDEmu, but I know why it did not work in su mode.

Instead of su use
Code: Select all
su -

That will enable you to start graphical applications as root.

If that works then you need to sort out the permissions to allow a standard user to use it.
User avatar
djennings
 
Posts: 613
Joined: Jun 2nd, '11, 23:51
Location: Wokingham, UK

Re: CDEmu how to start?

Postby djennings » Feb 12th, '12, 17:32

cdemu0: Device: failed to open control device /dev/vhba_ctl!
cdemud: Daemon: failed to initialize device 0!
Daemon initialization failed: Device initialization failed.


One other point:- Did you remember to reboot or insert the vhba module into the kernel?
Code: Select all
modprobe vhba

(You only need this command if you have not rebooted)
User avatar
djennings
 
Posts: 613
Joined: Jun 2nd, '11, 23:51
Location: Wokingham, UK

Re: CDEmu how to start?

Postby arelatensis » Feb 12th, '12, 18:14

djennings wrote:
cdemu0: Device: failed to open control device /dev/vhba_ctl!
cdemud: Daemon: failed to initialize device 0!
Daemon initialization failed: Device initialization failed.


One other point:- Did you remember to reboot or insert the vhba module into the kernel?
Code: Select all
modprobe vhba

(You only need this command if you have not rebooted)


I made the reboot some times, it is no result.

modprobe vhba have such output
Code: Select all
FATAL: Module vhba not found.
User avatar
arelatensis
 
Posts: 18
Joined: Feb 12th, '12, 15:42

Re: CDEmu how to start?

Postby djennings » Feb 12th, '12, 18:29

FATAL: Module vhba not found.

Well there is your problem.

Installing cdemu-daemon should pull in the package dkms-vhba which should compile a vhba kernel module for you
Code: Select all
# urpmi cdemu-daemon
To satisfy dependencies, the following packages are going to be installed:
   Package                        Version      Release       Arch   
(medium "Core Release")
  cdemu-daemon                   1.3.0        1.mga1        x86_64 
  lib64mirage3                   1.3.0        2.mga1        x86_64 
(medium "Core 32bit Updates")
  dkms-vhba                      1.2.1        4.20100822.1> noarch 
657KB of additional disk space will be used.
190KB of packages will be retrieved.
Proceed with the installation of the 3 packages? (Y/n) y


    $MIRRORLIST: media/core/release/lib64mirage3-1.3.0-2.mga1.x86_64.rpm
    $MIRRORLIST: media/core/release/cdemu-daemon-1.3.0-1.mga1.x86_64.rpm                                                                   
    $MIRRORLIST: media/core/updates/dkms-vhba-1.2.1-4.20100822.1.1.mga1.noarch.rpm
installing lib64mirage3-1.3.0-2.mga1.x86_64.rpm cdemu-daemon-1.3.0-1.mga1.x86_64.rpm dkms-vhba-1.2.1-4.20100822.1.1.mga1.noarch.rpm from /var/cache/urpmi/rpms
Preparing...                     ##########################################################################################################
      1/3: dkms-vhba             ##########################################################################################################

Creating symlink /var/lib/dkms/vhba/1.2.1-4.20100822.1.1.mga1/source ->
                 /usr/src/vhba-1.2.1-4.20100822.1.1.mga1

DKMS: add Completed.

Preparing kernel 2.6.38.8-desktop-9.mga for module build:
(This is not compiling a kernel, just preparing kernel symbols)
Storing current .config to be restored when complete
Running Generic preparation routine
make mrproper....
using /proc/config.gz
make oldconfig....
make prepare....

Building module:
cleaning build area....
make KERNELRELEASE=2.6.38.8-desktop-9.mga KDIR=/lib/modules/2.6.38.8-desktop-9.mga/build....
cleaning build area....
cleaning kernel tree (make mrproper)....

DKMS: build Completed.

vhba.ko.gz:
 - Installation
   - Installing to /lib/modules/2.6.38.8-desktop-9.mga/dkms/vhba/

depmod....

DKMS: install Completed.
      2/3: lib64mirage3          ##########################################################################################################
      3/3: cdemu-daemon          ##########################################################################################################


If this does not work then it is likely you do not have the kernel-desktop-devel-latest and kernel-desktop-latest packages installed
(kernel-desktop-latest ensures you always have the newest kernel and kernel-desktop-devel-latest ensures you always have the kernel headers to go with it. )
User avatar
djennings
 
Posts: 613
Joined: Jun 2nd, '11, 23:51
Location: Wokingham, UK

Re: CDEmu how to start?

Postby arelatensis » Feb 14th, '12, 10:44

Yes, I indeed, had not kernel-desktop-devel-latest and kernel-desktop-latest. Now they are installed, all other packages already ware present. But the result is the same:

modprobe vhba
FATAL: Module vhba not found.
Restart of the system also does not help.
User avatar
arelatensis
 
Posts: 18
Joined: Feb 12th, '12, 15:42

Re: CDEmu how to start?

Postby djennings » Feb 14th, '12, 11:45

To check if the vhba module has been built and is available for the kernel you are running
Code: Select all
# dkms -m vhba status
vhba, 1.2.1-4.20100822.1.1.mga1, 2.6.38.8-desktop-9.mga, x86_64: installed
[root@derek sysconfig]# uname -r
2.6.38.8-desktop-9.mga

If the kernel version for the module and the running kernel version differ then it is not going to work.
(Also check the dkms-vhba package is actually installed )

If the module is not built, then you can force it to build with
Code: Select all
# dkms -m vhba -v 1.2.1-4.20100822.1.1.mga1 -k 2.6.38.8-desktop-9.mga add

Creating symlink /var/lib/dkms/vhba/1.2.1-4.20100822.1.1.mga1/source ->
                 /usr/src/vhba-1.2.1-4.20100822.1.1.mga1

DKMS: add Completed.
[root@derek sysconfig]# dkms -m vhba -v 1.2.1-4.20100822.1.1.mga1 -k 2.6.38.8-desktop-9.mga build

Preparing kernel 2.6.38.8-desktop-9.mga for module build:
(This is not compiling a kernel, just preparing kernel symbols)
Storing current .config to be restored when complete
Running Generic preparation routine
make mrproper....
using /proc/config.gz
make oldconfig.....
make prepare....

Building module:
cleaning build area....
make KERNELRELEASE=2.6.38.8-desktop-9.mga KDIR=/lib/modules/2.6.38.8-desktop-9.mga/build....
cleaning build area....
cleaning kernel tree (make mrproper)....

DKMS: build Completed.
[root@derek sysconfig]# dkms -m vhba -v 1.2.1-4.20100822.1.1.mga1 -k 2.6.38.8-desktop-9.mga install
Running module version sanity check.

vhba.ko.gz:
 - Installation
   - Installing to /lib/modules/2.6.38.8-desktop-9.mga/dkms/vhba/

depmod....

DKMS: install Completed.


If it does not build then there will be an error message
User avatar
djennings
 
Posts: 613
Joined: Jun 2nd, '11, 23:51
Location: Wokingham, UK

Re: CDEmu how to start?

Postby doktor5000 » Feb 14th, '12, 14:05

djennings wrote:If the module is not built, then you can force it to build with
Code: Select all
...


Or simple remove the package and reinstall, which is less to type, and it will also tell you if an error occurred and the location of the error log.
Code: Select all
urpme dkms-vhba && urpmi dkms-vhba
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18055
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: CDEmu how to start?

Postby arelatensis » Feb 15th, '12, 22:56

Yes. It seem, that kernel version and that of dkms-vhba differ
Code: Select all
# dkms -m vhba status
vhba, 1.2.1-4.20100822.1.1.mga1, 2.6.38.8-desktop-9.mga, i586: installed  (WARNING! Missing some built modules!)
vhba, 1.2.1-4.20100822.1.1.mga1, 2.6.38.8-desktop-8.mga, i586: installed  (WARNING! Diff between built and installed module!)

Now I try to do according the doltor5000's advice. In Mandriva 2010 such procedure often was helpful
User avatar
arelatensis
 
Posts: 18
Joined: Feb 12th, '12, 15:42

Re: CDEmu how to start?

Postby doktor5000 » Feb 15th, '12, 23:26

Then watch the build process, it gives normally the path to the build log if something goes wrong, you might want to attach that here in case, or just paste the output of said
Code: Select all
urpme dkms-vhba && urpmi dkms-vhba
here, that would make it easier to see what's going wrong.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18055
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: CDEmu how to start?

Postby arelatensis » Feb 27th, '12, 17:50

No goes wrong! I made reinstall dkms-vhba
Code: Select all
urpme dkms-vhba && urpmi dkms-vhba
. The log didn't show any error. Also did so with CDEmu packages (Cdemu-daemon, CDEmu-client, gCDEmu), to be sure did upgrade of Kernel to kernel-desktop-2.6.38.8-10.mga. By reboot I got notification about installing dkms-vhba modul. It is present and built
Code: Select all
# dkms -m vhba status
vhba, 1.2.1-4.20100822.1.1.mga1, 2.6.38.8-desktop-10.mga, i586: installed
[root@localhost atrelatensis]# uname -r
2.6.38.8-desktop-10.mga

Code: Select all
# dkms -m vhba -v 1.2.1-4.20100822.1.1.mga1 -k 2.6.38.8-desktop-10.mga build

Error! This module/version has already been built on: 2.6.38.8-desktop-10.mga
Directory: /var/lib/dkms/vhba/1.2.1-4.20100822.1.1.mga1/2.6.38.8-desktop-10.mga/i586
already exists.  Use the dkms remove function before trying to build again.

It seems like there is not any problem with dkms-vhba, but with CDEmu packages, because CDEmu daemon does not start any way. I use this application also under OpenSuse with KDE fronted Gui manipulator kde_cdemu. I didn't find it in Mageia repositories. kde_cdemu needs libqt4-x11, which is not also there.
User avatar
arelatensis
 
Posts: 18
Joined: Feb 12th, '12, 15:42

Re: CDEmu how to start?

Postby doktor5000 » Feb 27th, '12, 20:23

arelatensis wrote:
Code: Select all
# dkms -m vhba -v 1.2.1-4.20100822.1.1.mga1 -k 2.6.38.8-desktop-10.mga build

Error! This module/version has already been built on: 2.6.38.8-desktop-10.mga
Directory: /var/lib/dkms/vhba/1.2.1-4.20100822.1.1.mga1/2.6.38.8-desktop-10.mga/i586
already exists.  Use the dkms remove function before trying to build again.


So far everything is ok, it just told you that it had already built the module and detected that.

What's the output (as root) of
Code: Select all
modprobe vhba


Also, what's the problem/error message for cdemu daemon?
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18055
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: CDEmu how to start?

Postby arelatensis » Feb 28th, '12, 19:16

1. "modprobe vhba" gives none explicit output.
2. gCDEmu applet is gray, that means, that CDEmu-daemon is not running, as it is written in help to this applet.
3 Attempting to start this daemon executable through console has output, as such:
# /usr/bin/cdemud
Starting daemon in local mode with following parameters:
- num devices: 1
- ctl device: /dev/vhba_ctl
- audio driver: null
- bus type: session

cdemud: Daemon: failed to get session bus!
Daemon initialization failed: Failed to connect to D-BUS bus.

In Open Suse i started it through YaST, so analogy is less helpful.
User avatar
arelatensis
 
Posts: 18
Joined: Feb 12th, '12, 15:42


Return to Basic support

Who is online

Users browsing this forum: Google Adsense [Bot] and 1 guest

cron