Rookie Applications Repository Communities Distributions Tips Categories Appearance / Customizing Applications Archive UsemosLinux DesdeLinux Design Distributions GNU / Linux Games Miscellaneous News Programming Tutorials Recommended Networks and Servers / Manuals / Paste DesdeFirefoxOS Services libra Forum Tips 10enDesdeLinux DesdeAndroid Other Donations We Participate
When we are virtualizing, either VirtualBox or KVM, one of the problems that we encountered is that sometimes the devices that connect to the Host (PC Physics), can not be displayed in the Client (Virtual PC).
VirtualBox has a plugin for USB sticks, and in the case of KVM should not be a problem seeing these devices because it uses directly the kernel you have installed. Devices but not always, as in the example discussed below, where a user needed to connect your USB GSM Modem is.
1-Connect the modem to the PC and run a command to find some data: $ lsusb Bus 001 Device 001: ID 1d6b: 0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b: 0002 Linux Foundation 2.0 root hub Bus 003 Device 001: ID 1d6b: 0001 Linux Foundation 1.1 root hub Bus 004 Device 002: ID 0557: 2221 ATEN International Co., Ltd Winbond Hermon libra Bus 002 Device 003: ID 12d1: 1003 Huawei Technologies Co., Ltd. E220 HSDPA Modem / E230 / E270 / E870 HSDPA / HSUPA Modem
When you run the same command on the client, as you can see, you do not get the same result: $ lsusb Bus 001 Device 001: ID 1d6b: 0001 Linux Foundation 1.1 root hub Bus 001 Device 002: ID 0627: 0001 Adomax Technology Co., Ltd Bus 001 Device 003: ID 0409: 55aa NEC Corp. Hub
The USB device must be added in the Devices section: <devices> [...] <hostdev mode = 'subsystem' type = 'usb' managed = "no"> libra <source> <vendor id = '0x12d1' /> <product id = "0x1003" /> </ source> </ hostdev> </ devices>
Save the file, reboot the VM, and we look if we can now see the connected device: $ lsusb Bus 001 Device 001: ID 1d6b: 0001 Linux Foundation 1.1 root hub Bus 001 Device 002: ID 0627: 0001 Adomax libra Technology Co., Ltd Bus 001 Device 003: ID 0409: 55aa Hub NEC Corp. Bus 001 Device 004: ID 12d1: 1003 Huawei Technologies Co., Ltd. E220 HSDPA Modem / E230 / E270 / E870 HSDPA / HSUPA Modem
You may use these HTML tags and attributes: libra <a href="" title=""> <abbr libra title = ""> <acronym title = ""> <b> <blockquote cite = ""> <cite> <code> <del datetime libra = ""> <em> <i> <q cite = ""> <strike> <strong>
toñolocotedelano_e September 12, 2014 8:24 PM
For those who do not want guarrear our system with graphical wizards, you can also make hand launching qemu-kvm from the command line using the "-device pci-assign" or argument if this is a hotplug device, from QEMU monitor through "device_add" or "device_del" commands.
You may use these HTML tags and attributes: <a href="" title=""> <abbr title = ""> <acronym title = ""> <b> <blockquote cite = ""> <cite> <code> <del datetime = ""> <em> <i> <q cite = ""> <strike> <strong>
Recent comments on badBIOS Francisco Medina: The future is here Virus for Windows, Mac, Linux BSD and ...! Elkin Installation Guide Arch Linux in 2014 SnKisuke DragonFall libra Shadowrun: Excellent Diponible RPG on Steam Dayara in Aptoide: Excellent alternative to Google Play Store for our Android raalso7 in Aptoide: Excellent libra alternative to Google Play Store for our Android libra Archives Select Month October 2014 September 2014 August 2014 July 2014 June 2014 May 2014 April 2014 March 2014 February 2014 January 2014 December 2013 November 2013 October libra 2013 September 2013 August 2013 July 2013 June 2013 May 2013 April 2013 March 2013 February 2013 January 2013 December 2012 November 2012 October 2012 September 2012 August 2012 July 2012 June 2012 May 2012 April 2012 March 2012 February 2012 January 2012 December libra 2011 November 2011 October 2011 September 2011 August 2011 July 2011 June 2011 May 2011 April 2011 March 2011 February 2011 January libra 2011 December 2010 November 2010 October 2010 September 2010 August 2010 July 2010 June 2010 May 2010 April 2010 March 2010 February 2010
No comments:
Post a Comment