[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] OS Eject & Removable Media



On Mon, Aug 24, 2009 at 11:21:14AM -0700, Jacob Leaver wrote:
> Greetings all,
> 
> First, I'd like to thank everyone that's working on the libvirt project, 
> it's certainly making my life a better place.
> 
> Second, (there's always a second, eh?) I am using libvirtd 0.6.4 and KVM 
> qemu-kvm-0.10.5, and when a guest OS ejects media, libvirtd doesn't seem 
> to pick up the change.
> 
> Looking through the API, I don't see a provision to probe for a list of 
> block devices, so although qemu and kvm know about media changes, I 
> don't think there's a way for libvirtd to know about them.

Yeah, that's pretty much the problem in a nutshell. No notificatons
from QEMU

The only immediate option i see is to run 'info block' every time we
invoke virDomainGetXMLDesc(), in order to check if the CDROM media has
been ejected. Mildly disgusting, but probably doable.

> Also, I have a couple of minor and hackish patches for the ruby bindings 
> for attaching and removing devices, if someone's interested.

By all means send them to this list & we'll take a look & commit them
if reasonable.

Daniel
-- 
|: Red Hat, Engineering, London   -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org  -o-  http://virt-manager.org  -o-  http://ovirt.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-  F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]