Re: [libvirt] Qemu Monitor

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

 



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@xxxxxxxxxx
> 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

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