Alexandr
2013-Dec-04 02:38 UTC
[libvirt-users] how to add/remove emulated usb removable devices to guests
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.
Alexandr Gluzskiy
2013-Dec-05 20:06 UTC
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 > https://www.redhat.com/mailman/listinfo/libvirt-usersOk, 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.