CD access Ubuntu 8.04 / vmware player / Visduh

Eric Shubert ejs at shubes.net
Mon Jun 22 19:56:15 MST 2009


Eric Shubert wrote:
> Eric Shubert wrote:
>> Eric Shubert wrote:
>>> I have a Ubuntu 8.04 host, running a Visduh guest using vmware player 
>>> 2.5.1. It's working pretty well, but I don't really use Visduh much.
>>>
>>> I'm trying to use the Windoze media player to rip a CD, accessing the 
>>> CDrom directly. The Vista VM is connected to the /dev/scd0 device, but 
>>> when I insert the CD, Ubuntu delightfully and magically puts the Audio 
>>> CD icon on my desktop, and launches the Sound Juicer. Ubuntu takes 
>>> possession of the CD device, and Visduh waits for access.
>>>
>>> I can't seem to figure out how to get Ubuntu to release the device so 
>>> that VMware/Visduh can access it. Once I eject the disc from Ubuntu, 
>>> Visduh stops waiting for the device. When Ubuntu has access to the CDrom 
>>> device, there's no entry in /etc/mtab, so the device isn't mounted by 
>>> conventional means.
>>>
>>> Can someone fill me in on where to look to find out what Ubuntu's using 
>>> to access the CDrom, and how I can get it to release (umount?) the da*m 
>>> thing without ejecting it?
>>>
>>> TIA.
>>>
>> To disable:
>> # hal-disable-polling --device /dev/scd0
>> This allows the VM guest to access/control the device directly.
>>
>> To re-enable:
>> # hal-disable-polling --device /dev/scd0 --enable-polling
>>
>> Kind of a screwy command if you ask me.
>>
>> FWIW, does anyone know of a gnome way to turn device polling off/on?
> 
> That helps, but still no dice.
> 
> Visduh (running under VMware Player 2.5.2) accesses a (commercial) data 
> disk flawlessly, regardless of hal polling (on the Ubuntu host) being 
> enabled or not. I suppose that's because Ubuntu doesn't know what to do 
> with it, so it does nothing with/to it.
> 
> I'm unable to access a (commercial) audio CD though. I tried stopping 
> hal on the Ubuntu host, and that made things worse, as Visduh would 
> hang. With hal running and polling disabled, Visduh acts as though 
> there's nothing in the drive.
> 
> /var/log/messages gives this hint (repeatedly) when trying to recognize 
> the audio CD:
> 
> Jun 22 17:51:44 edwin kernel: [268573.761485] sr 0:0:0:0: [sr0] Device 
> not ready: Sense Key : Not Ready [current]
> Jun 22 17:51:44 edwin kernel: [268573.761496] sr 0:0:0:0: [sr0] Device 
> not ready: Add. Sense: No reference position found
> Jun 22 17:51:44 edwin kernel: [268573.761506] end_request: I/O error, 
> dev sr0, sector 0
> Jun 22 17:51:44 edwin kernel: [268573.761508] printk: 93 messages 
> suppressed.
> Jun 22 17:51:44 edwin kernel: [268573.766526] sr 0:0:0:0: [sr0] Device 
> not ready: Sense Key : Not Ready [current]
> Jun 22 17:51:44 edwin kernel: [268573.766535] sr 0:0:0:0: [sr0] Device 
> not ready: Add. Sense: No reference position found
> Jun 22 17:51:44 edwin kernel: [268573.766541] end_request: I/O error, 
> dev sr0, sector 0
> 
> I've tried various audio CDs with the same result.
> 
> Anyone have an idea? I've googled and found this error in other 
> situations, but none so far with VMware player (which works fine with 
> data, just not with audio CDs).
> 

Here are some other hints from the VMware log.

Jun 22 17:49:29.552: vcpu-0| CDROM ide0:0: Allowing unknown command 
*UNKNOWN (0xac)* (0xac). --ok
Jun 22 17:49:29.552: vcpu-0| CDROM: Unknown command 0xAC.
Jun 22 17:49:29.552: vcpu-0| CDROM ide0:0: CMD 0xac (*UNKNOWN (0xac)*) 
FAILED (key 0x5 asc 0x20 ascq 0)
Jun 22 17:49:29.552: vcpu-0| CDROM ide0:0: Allowing unknown command 
*UNKNOWN (0xac)* (0xac). --ok
Jun 22 17:49:29.552: vcpu-0| CDROM: Unknown command 0xAC.
Jun 22 17:49:29.552: vcpu-0| CDROM ide0:0: CMD 0xac (*UNKNOWN (0xac)*) 
FAILED (key 0x5 asc 0x20 ascq 0)
Jun 22 17:49:29.558: mks| MKS switching absolute mouse on
Jun 22 17:49:29.563: vcpu-0| CDROM: Emulate GET CONFIGURATION RT 0 start 
feature 0
Jun 22 17:49:29.563: vcpu-0| CDROM: Emulate GET CONFIGURATION RT 0 start 
feature 30
Jun 22 17:49:29.563: vcpu-0| CDROM: Emulate GET CONFIGURATION RT 0 start 
feature 31
Jun 22 17:49:29.564: vcpu-0| CDROM: Emulate GET CONFIGURATION RT 0 start 
feature 32
Jun 22 17:49:29.564: vcpu-0| CDROM: Emulate GET CONFIGURATION RT 0 start 
feature 33
Jun 22 17:49:29.564: vcpu-0| CDROM: Emulate GET CONFIGURATION RT 0 start 
feature 35
Jun 22 17:49:29.564: vcpu-0| CDROM: Emulate GET CONFIGURATION RT 0 start 
feature 36
Jun 22 17:49:29.564: vcpu-0| CDROM: Emulate GET CONFIGURATION RT 0 start 
feature 38
Jun 22 17:49:29.564: vcpu-0| CDROM: Emulate GET CONFIGURATION RT 0 start 
feature 42
Jun 22 17:49:29.564: vcpu-0| CDROM: Emulate GET CONFIGURATION RT 0 start 
feature 43
Jun 22 17:49:29.564: vcpu-0| CDROM: Emulate GET CONFIGURATION RT 0 start 
feature 45
Jun 22 17:49:29.564: vcpu-0| CDROM: Emulate GET CONFIGURATION RT 0 start 
feature 46
Jun 22 17:49:29.564: vcpu-0| CDROM: Emulate GET CONFIGURATION RT 0 start 
feature 47
Jun 22 17:49:29.564: vcpu-0| CDROM: Emulate GET CONFIGURATION RT 0 start 
feature 64
Jun 22 17:49:29.565: vcpu-0| CDROM: Emulate GET CONFIGURATION RT 0 start 
feature 65
Jun 22 17:49:29.565: vcpu-0| CDROM: Emulate GET CONFIGURATION RT 0 start 
feature 80
Jun 22 17:49:29.565: vcpu-0| CDROM: Emulate GET CONFIGURATION RT 0 start 
feature 81
Jun 22 17:49:29.565: vcpu-0| CDROM: Emulate GET CONFIGURATION RT 0 start 
feature 259
Jun 22 17:49:29.594: vcpu-0| CDROM: Accepting Event Status Notification 0x2
Jun 22 17:49:29.594: vcpu-0| CDROM: Failed on unsupported 0x4a event 0x2
Jun 22 17:49:29.594: vcpu-0| CDROM ide0:0: CMD 0x4a (*UNKNOWN (0x4a)*) 
FAILED (key 0x5 asc 0x24 ascq 0)
Jun 22 17:49:29.629: vcpu-0| CDROM ide0:0: CMD 0xad (*UNKNOWN (0xad)*) 
FAILED (key 0x5 asc 0x24 ascq 0)
Jun 22 17:49:29.640: vcpu-0| CDROM: Emulate GET CONFIGURATION RT 2 start 
feature 31
Jun 22 17:49:29.641: vcpu-0| CDROM: Emulate GET CONFIGURATION RT 2 start 
feature 64
Jun 22 17:49:29.641: vcpu-0| CDROM: Emulate GET CONFIGURATION RT 2 start 
feature 80
Jun 22 17:49:29.641: vcpu-0| CDROM ide0:0: CMD 0xad (*UNKNOWN (0xad)*) 
FAILED (key 0x5 asc 0x24 ascq 0)
Jun 22 17:49:29.829: vmx| CDROM-LIN:  readv(/dev/scd0) failed: 
Input/output error (1282).
Jun 22 17:49:29.830: vmx| CDROM ide0:0: CMD 0x28 (READ(10)) FAILED (key 
0x2 asc 0x30 ascq 0)
Jun 22 17:49:29.830: vmx| VIDE: ATAPI DMA 0x28 Failed: key 0x2, asc 
0x30, ascq 0x0
Jun 22 17:49:29.840: vcpu-0| CDROM: Emulate GET CONFIGURATION RT 2 start 
feature 31
Jun 22 17:49:29.840: vcpu-0| CDROM: Emulate GET CONFIGURATION RT 2 start 
feature 64
Jun 22 17:49:29.840: vcpu-0| CDROM: Emulate GET CONFIGURATION RT 2 start 
feature 80
Jun 22 17:49:29.840: vcpu-0| CDROM ide0:0: CMD 0xad (*UNKNOWN (0xad)*) 
FAILED (key 0x5 asc 0x24 ascq 0)
Jun 22 17:49:29.860: vcpu-0| CDROM ide0:0: CMD 0xad (*UNKNOWN (0xad)*) 
FAILED (key 0x5 asc 0x24 ascq 0)
Jun 22 17:49:29.933: vcpu-0| CDROM ide0:0: CMD 0xad (*UNKNOWN (0xad)*) 
FAILED (key 0x5 asc 0x24 ascq 0)
Jun 22 17:49:29.940: vcpu-0| CDROM ide0:0: CMD 0xad (*UNKNOWN (0xad)*) 
FAILED (key 0x5 asc 0x24 ascq 0)
Jun 22 17:49:29.953: vmx| CDROM-LIN:  readv(/dev/scd0) failed: 
Input/output error (1282).
Jun 22 17:49:29.954: vmx| CDROM ide0:0: CMD 0x28 (READ(10)) FAILED (key 
0x2 asc 0x30 ascq 0)
Jun 22 17:49:29.954: vmx| VIDE: ATAPI DMA 0x28 Failed: key 0x2, asc 
0x30, ascq 0x0
Jun 22 17:49:29.958: vmx| CDROM-LIN:  readv(/dev/scd0) failed: 
Input/output error (1282).
Jun 22 17:49:29.959: vmx| CDROM ide0:0: CMD 0x28 (READ(10)) FAILED (key 
0x2 asc 0x30 ascq 0)
Jun 22 17:49:29.959: vmx| VIDE: ATAPI DMA 0x28 Failed: key 0x2, asc 
0x30, ascq 0x0

So, any guesses as to the root cause?

The cd plays fine in Ubuntu's Rhythmbox. CD artwork/contents are more up 
to date than what Windoze Media Player too. Sweet.

-- 
-Eric 'shubes'



More information about the PLUG-discuss mailing list