[fedora-virt] How To Get Fedora 10 Guest To See USB Device?

Robert L Cochran cochranb at speakeasy.net
Wed Jan 28 03:28:14 UTC 2009

Here is the xml I have for my Fedora 10 guest machine running in my
Fedora 10 host machine.

Question: if I plug a USB flash drive into the host, how do I make that
accessible (as in readable and writable) to the guest machine? Look at
the <hostdev... > ebtry I have coded below. I must be doing something
wrong because when I:

*plug the flash drive in to the host
*verify the drive is mounted on the host
*start the guest

the guest cannot see that flash drive. Is the xml formatted incorrectly?
Or do I have to do something in the guest? Or do I need to plug the
flash drive in after starting the guest?

<domain type='kvm'>
    <type arch='x86_64' machine='pc'>hvm</type>
    <boot dev='hd'/>
  <clock offset="localtime"/>
    <disk type='file' device='disk'>
      <source file='/var/lib/libvirt/images/fedora10x64.img'/>
      <target dev='vda' bus='virtio'/>
    <interface type='bridge'>
      <source bridge='br0'/>
    <serial type='pty'>
      <target port='0'/>
    <console type='pty'>
      <target port='0'/>
    <hostdev mode='subsystem' type='usb'>
            <vendor id='0x067b'/>
            <product id='0x2517'/>
    <input type='mouse' bus='ps2'/>
    <graphics type='vnc' port='-1' autoport='yes' keymap='en-us'/>
    <sound model='es1370'/>


Thanks much!

Bob Cochran

More information about the Fedora-virt mailing list