Re: how to add/remove emulated usb removable devices to guests

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

 



Alexandr писал 2013-12-04 04:38:
Good day, i was not able to find api to add/remove usb removable
devices to guest, i have windows machines and need to plug usb stick
with some fs (fat or ntfs) which is image on host, i was found what it
is possible and implemented in libvirt
https://bugzilla.redhat.com/show_bug.cgi?id=922495, but i can't find
how to use this.

_______________________________________________
libvirt-users mailing list
libvirt-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvirt-users

Ok, i have found needed info, i can do what i need with following xml
<disk type='file' device='disk'>
  <source file='/path/to/file'/>
  <target dev='sda' removable='on' bus='usb'/>
  <readonly/>
</disk>

but image required to be valid disk with mbr, i have implemented code to create it for me from files, but it's another story.

_______________________________________________
libvirt-users mailing list
libvirt-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvirt-users





[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux