
Hi all, A simple question, I hope ;) Is it possible to enable the qemu monitor in libvirt's xml? It need the monitor, to dynamically add a usb device to a windows vm. Regards, Eric

Listen wrote:
Hi all,
A simple question, I hope ;) Is it possible to enable the qemu monitor in libvirt's xml? It need the monitor, to dynamically add a usb device to a windows vm.
Regards,
Eric
-- Libvir-list mailing list Libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list Nope, the monitor is redirected so that libvirt can send commands to it directly.
However, support for usb device attach/detach was just added to libvirt, so you won't need to directly talk to the monitor to do this. You should be able to do something like the following for a usb disk: cat << __eof__ > disk.xml <disk type='file' device='disk'> <source file='/path/to/diskfile'/> <target bus='usb'/> </disk> __eof__ virsh attach-device some-active-domain disk.xml I haven't tested this so no guarantees, and you'll need current upstream libvirt. Hopefully this will be in virt-manager soon though so it will be nice and easy :) - Cole

On Mon, Aug 11, 2008 at 10:52:59AM -0500, Duzenbury, Rich wrote:
Nope, the monitor is redirected so that libvirt can send commands to it directly.
Hi,
How are we to ask the monitor to eject a CD-ROM?
Use the 'virsh attach-disk' command - it you give it the name of an existing CDROM device, it will perform a media change operation. 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 :|

-----Original Message----- From: Daniel P. Berrange [mailto:berrange@redhat.com] Sent: Tuesday, August 12, 2008 4:14 AM To: Duzenbury, Rich Cc: libvir-list@redhat.com Subject: Re: [libvirt] Qemu Monitor
On Mon, Aug 11, 2008 at 10:52:59AM -0500, Duzenbury, Rich wrote:
Nope, the monitor is redirected so that libvirt can send commands to it directly.
Hi,
How are we to ask the monitor to eject a CD-ROM?
Use the 'virsh attach-disk' command - it you give it the name of an existing CDROM device, it will perform a media change operation.
Thank you! I couldn't find that bit of info. Regards, Rich
participants (4)
-
Cole Robinson
-
Daniel P. Berrange
-
Duzenbury, Rich
-
Listen