All of lore.kernel.org
 help / color / mirror / Atom feed
* Fail to attach CDWriter
@ 2010-02-19  8:07 satimis
  2010-02-19  9:47 ` Mark Cave-Ayland
  0 siblings, 1 reply; 3+ messages in thread
From: satimis @ 2010-02-19  8:07 UTC (permalink / raw)
  To: kvm

Hi folks


KVM
Host - Fedora 12 64bit
VM (guest) - Windows Server 2008 64bit


Fail to attach CDWriter.


$ sudo virsh -c qemu:///system start vm06_wser08
Domain vm06_wser08 started


$ cat VM/DEV/cd.xml
<disk type="block" device="cdrom">
<target dev="hdc" bus="ide"/>
<readonly/>
<source dev="/dev/sr0"/>
</disk>


$ sudo virsh attach-device vm06_wser08 VM/DEV/cd.xml
error: Failed to attach device from VM/DEV/cd.xml
error: server closed connection


$ sudo tail /var/log/messages
Feb 19 15:45:36 localhost kernel: br0: port 2(vnet0) entering forwarding state
Feb 19 15:48:31 localhost libvirtd: 15:48:31.574: error :  
qemudDomainChangeEjectableMedia:5186 : internal error No device with  
bus 'ide' and target 'hdc'
Feb 19 15:48:31 localhost kernel: libvirtd[1738]: segfault at 70 ip  
00000000004367e2 sp 00007f210acfc8f0 error 4 in libvirtd[400000+7f000]
Feb 19 15:48:31 localhost abrtd: Directory 'ccpp-1266565711-1639'  
creation detected
Feb 19 15:48:31 localhost abrtd: Lock file  
'/var/cache/abrt/ccpp-1266565711-1639.lock' is locked by process 21223
Feb 19 15:48:32 localhost abrtd: Lock file  
'/var/cache/abrt/ccpp-1266565711-1639.lock' is locked by process 21223
Feb 19 15:48:33 localhost abrt[21223]: saved core dump of pid 1639  
(/usr/sbin/libvirtd) to /var/cache/abrt/ccpp-1266565711-1639/coredump  
(60129280 bytes)
Feb 19 15:48:33 localhost abrtd: Getting local universal unique  
identification...
Feb 19 15:48:33 localhost abrtd: New crash, saving
Feb 19 15:48:33 localhost abrtd:  
RunApp('/var/cache/abrt/ccpp-1266565711-1639','test x"`cat component`"  
= x"xorg-x11-server-Xorg" && cp /var/log/Xorg.0.log .')


If I put following content on vm06_wser08 ; (cd.xml)
<disk type="block" device="cdrom">
<target dev="hdc" bus="ide"/>
<readonly/>
<source dev="/dev/sr0"/>
</disk>


Then it works.  CDWriter can be attached to Vista.  But I must insert  
the CD on the drive before starting vm06_wser08.  Otherwises it  
complains.


Please help.  TIA


B.R.
Stephen L


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Fail to attach CDWriter
  2010-02-19  8:07 Fail to attach CDWriter satimis
@ 2010-02-19  9:47 ` Mark Cave-Ayland
  2010-02-22 15:59   ` Cole Robinson
  0 siblings, 1 reply; 3+ messages in thread
From: Mark Cave-Ayland @ 2010-02-19  9:47 UTC (permalink / raw)
  To: satimis, kvm

satimis@pacific.net.hk wrote:

> Hi folks
> 
> 
> KVM
> Host - Fedora 12 64bit
> VM (guest) - Windows Server 2008 64bit
> 
> 
> Fail to attach CDWriter.
> 
> 
> $ sudo virsh -c qemu:///system start vm06_wser08
> Domain vm06_wser08 started
> 
> 
> $ cat VM/DEV/cd.xml
> <disk type="block" device="cdrom">
> <target dev="hdc" bus="ide"/>
> <readonly/>
> <source dev="/dev/sr0"/>
> </disk>
> 
> 
> $ sudo virsh attach-device vm06_wser08 VM/DEV/cd.xml
> error: Failed to attach device from VM/DEV/cd.xml
> error: server closed connection
> 
> 
> $ sudo tail /var/log/messages
> Feb 19 15:45:36 localhost kernel: br0: port 2(vnet0) entering forwarding 
> state
> Feb 19 15:48:31 localhost libvirtd: 15:48:31.574: error : 
> qemudDomainChangeEjectableMedia:5186 : internal error No device with bus 
> 'ide' and target 'hdc'
> Feb 19 15:48:31 localhost kernel: libvirtd[1738]: segfault at 70 ip 
> 00000000004367e2 sp 00007f210acfc8f0 error 4 in libvirtd[400000+7f000]
> Feb 19 15:48:31 localhost abrtd: Directory 'ccpp-1266565711-1639' 
> creation detected
> Feb 19 15:48:31 localhost abrtd: Lock file 
> '/var/cache/abrt/ccpp-1266565711-1639.lock' is locked by process 21223
> Feb 19 15:48:32 localhost abrtd: Lock file 
> '/var/cache/abrt/ccpp-1266565711-1639.lock' is locked by process 21223
> Feb 19 15:48:33 localhost abrt[21223]: saved core dump of pid 1639 
> (/usr/sbin/libvirtd) to /var/cache/abrt/ccpp-1266565711-1639/coredump 
> (60129280 bytes)
> Feb 19 15:48:33 localhost abrtd: Getting local universal unique 
> identification...
> Feb 19 15:48:33 localhost abrtd: New crash, saving
> Feb 19 15:48:33 localhost abrtd: 
> RunApp('/var/cache/abrt/ccpp-1266565711-1639','test x"`cat component`" = 
> x"xorg-x11-server-Xorg" && cp /var/log/Xorg.0.log .')
> 
> 
> If I put following content on vm06_wser08 ; (cd.xml)
> <disk type="block" device="cdrom">
> <target dev="hdc" bus="ide"/>
> <readonly/>
> <source dev="/dev/sr0"/>
> </disk>
> 
> 
> Then it works.  CDWriter can be attached to Vista.  But I must insert 
> the CD on the drive before starting vm06_wser08.  Otherwises it complains.

I second this bug report. Just yesterday I tried to attach a CDROM to an 
already-running WinXP guest under qemu-0.12.1.2 with libvirt 0.7.5 using 
virt-manager 0.8.2. virt-manager immediately dropped its connection and 
refused to re-connect to the libvirtd socket. Futher investigation 
showed that the libvirtd process had died.

Restarting libvirtd, stopping the VM, attaching the CDROM again, and 
then re-starting the VM from scratch made the CDROM visible within the 
guest, suggesting there is something not quite right with the dynamic 
device attachment mechanism in libvirt.


ATB,

Mark.

-- 
Mark Cave-Ayland - Senior Technical Architect
PostgreSQL - PostGIS
Sirius Corporation plc - control through freedom
http://www.siriusit.co.uk
t: +44 870 608 0063

Sirius Labs: http://www.siriusit.co.uk/labs

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Fail to attach CDWriter
  2010-02-19  9:47 ` Mark Cave-Ayland
@ 2010-02-22 15:59   ` Cole Robinson
  0 siblings, 0 replies; 3+ messages in thread
From: Cole Robinson @ 2010-02-22 15:59 UTC (permalink / raw)
  To: Mark Cave-Ayland; +Cc: satimis, kvm

On 02/19/2010 04:47 AM, Mark Cave-Ayland wrote:
> satimis@pacific.net.hk wrote:
> 
>> Hi folks
>>
>>
>> KVM
>> Host - Fedora 12 64bit
>> VM (guest) - Windows Server 2008 64bit
>>
>>
>> Fail to attach CDWriter.
>>
>>
>> $ sudo virsh -c qemu:///system start vm06_wser08
>> Domain vm06_wser08 started
>>
>>
>> $ cat VM/DEV/cd.xml
>> <disk type="block" device="cdrom">
>> <target dev="hdc" bus="ide"/>
>> <readonly/>
>> <source dev="/dev/sr0"/>
>> </disk>
>>
>>
>> $ sudo virsh attach-device vm06_wser08 VM/DEV/cd.xml
>> error: Failed to attach device from VM/DEV/cd.xml
>> error: server closed connection
>>
>>
>> $ sudo tail /var/log/messages
>> Feb 19 15:45:36 localhost kernel: br0: port 2(vnet0) entering forwarding 
>> state
>> Feb 19 15:48:31 localhost libvirtd: 15:48:31.574: error : 
>> qemudDomainChangeEjectableMedia:5186 : internal error No device with bus 
>> 'ide' and target 'hdc'
>> Feb 19 15:48:31 localhost kernel: libvirtd[1738]: segfault at 70 ip 
>> 00000000004367e2 sp 00007f210acfc8f0 error 4 in libvirtd[400000+7f000]
>> Feb 19 15:48:31 localhost abrtd: Directory 'ccpp-1266565711-1639' 
>> creation detected
>> Feb 19 15:48:31 localhost abrtd: Lock file 
>> '/var/cache/abrt/ccpp-1266565711-1639.lock' is locked by process 21223
>> Feb 19 15:48:32 localhost abrtd: Lock file 
>> '/var/cache/abrt/ccpp-1266565711-1639.lock' is locked by process 21223
>> Feb 19 15:48:33 localhost abrt[21223]: saved core dump of pid 1639 
>> (/usr/sbin/libvirtd) to /var/cache/abrt/ccpp-1266565711-1639/coredump 
>> (60129280 bytes)
>> Feb 19 15:48:33 localhost abrtd: Getting local universal unique 
>> identification...
>> Feb 19 15:48:33 localhost abrtd: New crash, saving
>> Feb 19 15:48:33 localhost abrtd: 
>> RunApp('/var/cache/abrt/ccpp-1266565711-1639','test x"`cat component`" = 
>> x"xorg-x11-server-Xorg" && cp /var/log/Xorg.0.log .')
>>
>>
>> If I put following content on vm06_wser08 ; (cd.xml)
>> <disk type="block" device="cdrom">
>> <target dev="hdc" bus="ide"/>
>> <readonly/>
>> <source dev="/dev/sr0"/>
>> </disk>
>>
>>
>> Then it works.  CDWriter can be attached to Vista.  But I must insert 
>> the CD on the drive before starting vm06_wser08.  Otherwises it complains.
> 
> I second this bug report. Just yesterday I tried to attach a CDROM to an 
> already-running WinXP guest under qemu-0.12.1.2 with libvirt 0.7.5 using 
> virt-manager 0.8.2. virt-manager immediately dropped its connection and 
> refused to re-connect to the libvirtd socket. Futher investigation 
> showed that the libvirtd process had died.
> 
> Restarting libvirtd, stopping the VM, attaching the CDROM again, and 
> then re-starting the VM from scratch made the CDROM visible within the 
> guest, suggesting there is something not quite right with the dynamic 
> device attachment mechanism in libvirt.
> 

FYI, libvirt issues shouldn't be reported here: libvirt-list@redhat.com
is better.

I can't reproduce with libvirt 0.7.6. If either of you can still
reproduce, can you run libvirtd under gdb, reproduce the crash, and
report a backtrace? More info here:

http://fedoraproject.org/wiki/StackTraces

Thanks,
Cole

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-02-22 15:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-19  8:07 Fail to attach CDWriter satimis
2010-02-19  9:47 ` Mark Cave-Ayland
2010-02-22 15:59   ` Cole Robinson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.