Re: [libvirt] OS Eject & Removable Media

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

 



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 :|

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]