Ask Your Question
0

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
3

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/config.py and nova/virt/libvirt/driver.py are responsible for generating libvirt.xml
when nova boots the instance. You may see samples here :-
http://www.slideshare.net/YukihiroKaw...
and here :-
http://bderzhavets.blogspot.com/2015/...
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" :-
https://review.openstack.org/#/c/89834/

edit flag offensive delete link more
1

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: https://ask.openstack.org/en/question/5415/customize-libvirtxml-for-an-instance/

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

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

Seen: 1,451 times

Last updated: Jul 30 '15