[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [libvirt] Qemu Monitor
- From: Cole Robinson <crobinso redhat com>
- To: Listen <listen call-of-ktulu de>
- Cc: libvir-list redhat com
- Subject: Re: [libvirt] Qemu Monitor
- Date: Sun, 10 Aug 2008 21:44:41 -0400
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
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]