Connecting VMs to external usb device

asked 2015-07-30 03:20:51 -0600

Openstackuser2013 gravatar image

Does Openstack support connecting external usb devices with virtual machines?

I am using Icehouse and hypervisor used is KVM. I assume usb drive should be physically connected to the compute host.

Example: If I have external usb hard drive and want to move data from it to VM how can this be done?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2015-07-30 06:20:36 -0600

dbaxps gravatar image

Manual modifying libvirt.xml is completely useless at least on Kilo and Juno. Not sure about IceHouse .
Two files nova/virt/libvirt/ and nova/virt/libvirt/ are responsible for generating libvirt.xml
when nova boots the instance. You may see samples here :-
and here :-
Any manual updates to libvirt.xml are supposed to be removed. I would guess Havana was the last release
where it was still possible.
Also you may take a look at abandoned blueprint "Support function of USB-redirection" :-

edit flag offensive delete link more

answered 2015-07-30 04:34:19 -0600

You can use a SCP tool to move data from your computer to the vm through network. If you want to attach an usb directly to the VM, maybe you can do it modifying libvirt.xml of the VM.

See how to do that here:

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2015-07-30 03:20:51 -0600

Seen: 1,838 times

Last updated: Jul 30 '15