[libvirt] Qemu Monitor
Cole Robinson
crobinso at redhat.com
Mon Aug 11 01:44:41 UTC 2008
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 at 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
More information about the libvir-list
mailing list