Hi Dears.
I just installed cdemu with gcdemu.
Now I can't mount images.
What I do wrong?
Please look next.
[alexey@delllaptop English]$ ls
ENGLISH_WORLD_A.mdx ENGLISH_WORLD_B.mdx ENGLISH_WORLD_C.mdx
[alexey@delllaptop English]$ cdemu load 0 ENGLISH_WORLD_A.mdx
ERROR: Failed to connect to CDEmu daemon: org.freedesktop.DBus.Error.Spawn.ChildExited: Process /usr/local/libexec/cdemu-daemon-session.sh exited with status 127
[alexey@delllaptop English]$
Hey,
since you were manually building cdemu from sources, I guess either the vhba module is not loaded, or you have not properly set the read/write permissions for the user on the /dev/vhba_ctl device. To do both steps automatically, you can use the attached files; copy 99-vhba.rules to /etc/udev/rules.d/99-vhba.rules (and make sure user alexey is part of "users" group), and copy vhba.conf to /etc/modules-load.d/vhba.conf.
Alternatively, since you have mentioned in your previous bug report that you are on Fedora, you can try rebuilding the SRPMs I had made for Fedora 21 (they depend on RPMFusion repository and its akmods infrastructure, though): http://vision.fe.uni-lj.si/~rokm/cdemu-fedora/SRPM/
Finally, as a side note, the .mdx images (and v2 of .mds/.mdf format) are not fully supported by cdemu, so if the image happens to load at all, only basic functionality will be supported.
Regards,
Rok
Thanks.
I'd copy attached files to according path and add alexey to user group but still have a problem.
[alexey@delllaptop English]$ ls -la /etc/udev/rules.d/
total 16
drwxr-xr-x. 2 root root 4096 Oct 19 12:10 .
drwxr-xr-x. 3 root root 4096 Jul 24 11:54 ..
-rw-r--r-- 1 root root 193 Oct 1 13:10 51-android.rules
-rw-r--r-- 1 root root 387 Oct 19 12:10 99-vhba.rules
[alexey@delllaptop English]$ ls -la /etc/modules-load.d/
total 20
drwxr-xr-x. 2 root root 4096 Oct 19 12:10 .
drwxr-xr-x. 136 root root 12288 Oct 19 13:44 ..
-rw-r--r-- 1 root root 379 Oct 19 12:10 vhba.conf
[alexey@delllaptop English]$ groups alexey
alexey : alexey user
[alexey@delllaptop English]$ ls -la
total 1789532
drwxrwxr-x 2 alexey alexey 4096 Oct 8 17:28 .
drwxr-xr-x. 3 alexey alexey 4096 Oct 2 13:06 ..
-rw-rw-r-- 1 alexey alexey 675456240 Oct 2 13:41 ENGLISH_WORLD_A.mdx
-rw-rw-r-- 1 alexey alexey 679407616 Oct 2 13:41 ENGLISH_WORLD_B.mdx
-rw-rw-r-- 1 alexey alexey 477591488 Oct 2 13:34 ENGLISH_WORLD_C.mdx
[alexey@delllaptop English]$ cdemu load 0 ENGLISH_WORLD_A.mdx
ERROR: Failed to connect to CDEmu daemon: org.freedesktop.DBus.Error.Spawn.ChildExited: Process /usr/local/libexec/cdemu-daemon-session.sh exited with status 127
[alexey@delllaptop English]$
[alexey@delllaptop English]$ groups alexey
alexey : alexey user
The 99-vhba.rules file that I attached assumes that the "users" group is used (plural, not singular).
You can verify that the control device exists and that permissions are properly set: ls -l /dev/vhba_ctl
Also, you can try manually running the cdemu daemon with "cdemu-daemon" command in a separate terminal window before trying to load the image with client; in this case, if there is still something wrong and the daemon does not start, it will print the error in the terminal.
May be I did something wrong but I have not the /dev/vhba_ctl file.
And when I manualy run cdemu-daemon I see the next
[alexey@delllaptop pchela5]$ cdemu-daemon
Starting CDEmu daemon with following parameters:
- num devices: 1
- ctl device: /dev/vhba_ctl
- audio driver: null
- bus type: session
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!
[alexey@delllaptop pchela5]$
Missing /dev/vhba_ctl file means that either vhba module has not been built, or that it has not been loaded. If you are sure that the module has been built (you can check via 'sudo modinfo vhba'), you can try manually loading it via 'sudo modprobe vhba'. But I think that the /etc/modules-load.d/vhba.conf file from my original reply should take care of the loading...
Either way, if you are still having problems, you can try installing the RPM packages from our newly-created COPR repository: https://copr.fedoraproject.org/coprs/rok/cdemu/