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

Re: [libvirt-users] how to add/remove emulated usb removable devices to guests

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 redhat com

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'/>

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.

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